]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bootconfig: Fix wrong __VA_ARGS__ usage
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 7 Feb 2020 13:55:01 +0000 (22:55 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 10 Feb 2020 17:06:43 +0000 (12:06 -0500)
commit8e12e27f70f66c1c576a0899bfbc51a6064cc6f1
treec7660aae292dc8616d8c2fbc160d8b32a77c4c8c
parent5f4034968fcaab531408fd97900a8e39941642bf
tools/bootconfig: Fix wrong __VA_ARGS__ usage

Since printk() wrapper macro uses __VA_ARGS__ without "##" prefix, it causes
a build error if there is no variable arguments (e.g. only fmt is
specified.) To fix this error, use ##__VA_ARGS__ instead of __VAR_ARGS__.

Link: http://lkml.kernel.org/r/158108370130.2758.10893830923800978011.stgit@devnote2
Fixes: 5840f552600b ("tools: bootconfig: Add bootconfig command")
Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Tested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/bootconfig/include/linux/printk.h