aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2018-08-06 15:34:21 -0700
committerPetr Mladek <[email protected]>2018-08-07 09:20:18 +0200
commit554ec508653688c21d9b8024af73a1ffaa0164b9 (patch)
tree4e03580a008d12457bf63e49e6aa981cede9e730
parentffaa619af1b062d5a37871df6363aa52356007a7 (diff)
lib/vsprintf: Do not handle %pO[^F] as %px
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/[email protected] Cc: [email protected] Cc: Bart Van Assche <[email protected]> Cc: Pantelis Antoniou <[email protected]> Cc: Joe Perches <[email protected]> Cc: Rob Herring <[email protected]> Cc: v4.15+ <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Petr Mladek <[email protected]>
-rw-r--r--lib/vsprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index a48aaa79d352..cda186230287 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -1942,6 +1942,7 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
case 'F':
return device_node_string(buf, end, ptr, spec, fmt + 1);
}
+ break;
case 'x':
return pointer_string(buf, end, ptr, spec);
}