ARM: 9135/1: kprobes: address gcc -Wempty-body warning
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 Oct 2021 14:30:05 +0000 (15:30 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 25 Oct 2021 12:12:32 +0000 (13:12 +0100)
commit3583ab228a30b7c3fc8dd76ae45af7e25436b587
treeb517bd9153600a8ad2a176eaeb5f73091246adcb
parent20a451f8db4a81f0d94b8fa0bba82d1fc8dbf2d9
ARM: 9135/1: kprobes: address gcc -Wempty-body warning

Building with 'make W=1' shows a warning in some configurations
when 'verbose()' is defined to be empty.

arch/arm/probes/kprobes/test-core.c: In function 'kprobes_test_case_start':
arch/arm/probes/kprobes/test-core.c:1367:26: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body]
 1367 |      current_instruction);
      |                          ^

Change the definition of verbose() to use no_printk(), allowing format
string checking and avoiding the warning.

Link: https://lore.kernel.org/all/20210322114600.3528031-1-arnd@kernel.org/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/probes/kprobes/test-core.h