diff options
author | Nicolas Iooss <nicolas.iooss_linux@m4x.org> | 2016-12-19 08:21:44 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-12-20 03:37:24 -0500 |
commit | 9120cf4fd9ae77245ce9137869bcbd16575cc633 (patch) | |
tree | 216f3ea5eb9077356c1d8320bd0279ba2b7847e3 | |
parent | 634b847b6d232f861abd5a03a1f75677f541b156 (diff) |
x86/platform/intel/quark: Add printf attribute to imr_self_test_result()
__printf() attributes help detecting issues in printf() format strings at
compile time.
Even though imr_selftest.c is only compiled with
CONFIG_DEBUG_IMR_SELFTEST=y, GCC complains about a missing format
attribute when compiling allmodconfig with -Wmissing-format-attribute.
Silence this warning by adding the attribute.
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Acked-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20161219132144.4108-1-nicolas.iooss_linux@m4x.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/platform/intel-quark/imr_selftest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/platform/intel-quark/imr_selftest.c b/arch/x86/platform/intel-quark/imr_selftest.c index f5bad40936ac..b8f562049cad 100644 --- a/arch/x86/platform/intel-quark/imr_selftest.c +++ b/arch/x86/platform/intel-quark/imr_selftest.c | |||
@@ -25,7 +25,8 @@ | |||
25 | * @fmt: format string. | 25 | * @fmt: format string. |
26 | * ... variadic argument list. | 26 | * ... variadic argument list. |
27 | */ | 27 | */ |
28 | static void __init imr_self_test_result(int res, const char *fmt, ...) | 28 | static __printf(2, 3) |
29 | void __init imr_self_test_result(int res, const char *fmt, ...) | ||
29 | { | 30 | { |
30 | va_list vlist; | 31 | va_list vlist; |
31 | 32 | ||