mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 06:56:08 +07:00
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>
This commit is contained in:
parent
634b847b6d
commit
9120cf4fd9
@ -25,7 +25,8 @@
|
|||||||
* @fmt: format string.
|
* @fmt: format string.
|
||||||
* ... variadic argument list.
|
* ... variadic argument list.
|
||||||
*/
|
*/
|
||||||
static void __init imr_self_test_result(int res, const char *fmt, ...)
|
static __printf(2, 3)
|
||||||
|
void __init imr_self_test_result(int res, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list vlist;
|
va_list vlist;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user