]> git.baikalelectronics.ru Git - kernel.git/commit
kgdb: fix gcc-11 warnings harder
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 May 2021 13:08:39 +0000 (15:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 May 2021 13:05:08 +0000 (15:05 +0200)
commit158628ddc32c42ad935dba13a0314cb17a6ea575
tree41ba79d49c9906cb3766f4fb22be7f5e742f597e
parent2880ece0dc28ac43fe755bfd4f0536e734b1fddc
kgdb: fix gcc-11 warnings harder

bdcf7f72de7b ("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: bdcf7f72de7b ("kgdb: fix gcc-11 warning on indentation")
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Jason Wessel <jason.wessel@windriver.com>
Link: https://lore.kernel.org/r/20210520130839.51987-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/kgdbts.c