Skip to content

Commit bda7d3a

Browse files
committed
kgdb: fix gcc-11 warnings harder
40cc3a8 ("kgdb: fix gcc-11 warning on indentation") tried to fix up the gcc-11 complaints in this file by just reformatting the #defines. That worked for gcc 11.1.0, but in gcc 11.1.1 as shipped by Fedora 34, the warning came back for one of the #defines. Fix this up again by putting { } around the if statement, now it is quiet again. Fixes: 40cc3a8 ("kgdb: fix gcc-11 warning on indentation") Cc: Arnd Bergmann <[email protected]> Cc: Daniel Thompson <[email protected]> Cc: Jason Wessel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 02625c9 commit bda7d3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/misc/kgdbts.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@
101101
printk(KERN_INFO a); \
102102
} while (0)
103103
#define v2printk(a...) do { \
104-
if (verbose > 1) \
104+
if (verbose > 1) { \
105105
printk(KERN_INFO a); \
106+
} \
106107
touch_nmi_watchdog(); \
107108
} while (0)
108109
#define eprintk(a...) do { \

0 commit comments

Comments
 (0)