[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180903165722.191405615@linuxfoundation.org>
Date: Mon, 3 Sep 2018 18:56:49 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Bart Van Assche <bart.vanassche@....com>,
Pantelis Antoniou <pantelis.antoniou@...sulko.com>,
Joe Perches <joe@...ches.com>, Rob Herring <robh@...nel.org>,
Petr Mladek <pmladek@...e.com>
Subject: [PATCH 4.18 065/123] lib/vsprintf: Do not handle %pO[^F] as %px
4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bart Van Assche <bart.vanassche@....com>
commit 554ec508653688c21d9b8024af73a1ffaa0164b9 upstream.
This patch avoids that gcc reports the following when building with W=1:
lib/vsprintf.c:1941:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
switch (fmt[1]) {
^~~~~~
Fixes: 7b1924a1d930eb2 ("vsprintf: add printk specifier %px")
Link: http://lkml.kernel.org/r/20180806223421.11995-1-bart.vanassche@wdc.com
Cc: linux-kernel@...r.kernel.org
Cc: Bart Van Assche <bart.vanassche@....com>
Cc: Pantelis Antoniou <pantelis.antoniou@...sulko.com>
Cc: Joe Perches <joe@...ches.com>
Cc: Rob Herring <robh@...nel.org>
Cc: v4.15+ <stable@...r.kernel.org>
Signed-off-by: Bart Van Assche <bart.vanassche@....com>
Signed-off-by: Petr Mladek <pmladek@...e.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
lib/vsprintf.c | 1 +
1 file changed, 1 insertion(+)
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -1942,6 +1942,7 @@ char *pointer(const char *fmt, char *buf
case 'F':
return device_node_string(buf, end, ptr, spec, fmt + 1);
}
+ break;
case 'x':
return pointer_string(buf, end, ptr, spec);
}
Powered by blists - more mailing lists