]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.19-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 May 2021 18:20:45 +0000 (20:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 May 2021 18:20:45 +0000 (20:20 +0200)
added patches:
kgdb-fix-gcc-11-warnings-harder.patch

queue-4.19/kgdb-fix-gcc-11-warnings-harder.patch [new file with mode: 0644]
queue-4.19/series

diff --git a/queue-4.19/kgdb-fix-gcc-11-warnings-harder.patch b/queue-4.19/kgdb-fix-gcc-11-warnings-harder.patch
new file mode 100644 (file)
index 0000000..faab8e6
--- /dev/null
@@ -0,0 +1,40 @@
+From bda7d3ab06f19c02dcef61fefcb9dd954dfd5e4f Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Thu, 20 May 2021 15:08:39 +0200
+Subject: kgdb: fix gcc-11 warnings harder
+
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+commit bda7d3ab06f19c02dcef61fefcb9dd954dfd5e4f upstream.
+
+40cc3a80bb42 ("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: 40cc3a80bb42 ("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 |    3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- a/drivers/misc/kgdbts.c
++++ b/drivers/misc/kgdbts.c
+@@ -112,8 +112,9 @@
+               printk(KERN_INFO a);    \
+ } while (0)
+ #define v2printk(a...) do {           \
+-      if (verbose > 1)                \
++      if (verbose > 1) {              \
+               printk(KERN_INFO a);    \
++      }                               \
+       touch_nmi_watchdog();           \
+ } while (0)
+ #define eprintk(a...) do {            \
index 3ff788e7e0032d66c0d18082e0c8dbd0c86efac8..9c06d38f9e34d497872de64c27b7d7e27c2a11c1 100644 (file)
@@ -20,3 +20,4 @@ mac80211-do-not-accept-forward-invalid-eapol-frames.patch
 mac80211-extend-protection-against-mixed-key-and-fragment-cache-attacks.patch
 ath10k-validate-first-subframe-of-a-msdu-before-processing-the-list.patch
 dm-snapshot-properly-fix-a-crash-when-an-origin-has-no-snapshots.patch
+kgdb-fix-gcc-11-warnings-harder.patch