]> git.baikalelectronics.ru Git - kernel.git/commit
lib/vsprintf: Do not handle %pO[^F] as %px
authorBart Van Assche <bart.vanassche@wdc.com>
Mon, 6 Aug 2018 22:34:21 +0000 (15:34 -0700)
committerPetr Mladek <pmladek@suse.com>
Tue, 7 Aug 2018 07:20:18 +0000 (09:20 +0200)
commitf10233d969f8ddd64323902df7760cd5d6aaafec
tree4e03580a008d12457bf63e49e6aa981cede9e730
parent53c709a42588d32d42de67ff58c73bae385292d1
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: 47c8fc7be244b69 ("vsprintf: add printk specifier %px")
Link: http://lkml.kernel.org/r/20180806223421.11995-1-bart.vanassche@wdc.com
Cc: linux-kernel@vger.kernel.org
Cc: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Cc: Joe Perches <joe@perches.com>
Cc: Rob Herring <robh@kernel.org>
Cc: v4.15+ <stable@vger.kernel.org>
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
lib/vsprintf.c