Skip to content

Commit 0dec720

Browse files
sfrothwellakpm00
authored andcommitted
sprintf.h requires stdarg.h
In file included from drivers/crypto/intel/qat/qat_common/adf_pm_dbgfs_utils.c:4: include/linux/sprintf.h:11:54: error: unknown type name 'va_list' 11 | __printf(2, 0) int vsprintf(char *buf, const char *, va_list); | ^~~~~~~ include/linux/sprintf.h:1:1: note: 'va_list' is defined in header '<stdarg.h>'; this is probably fixable by adding '#include <stdarg.h>' Link: https://lkml.kernel.org/r/[email protected] Fixes: 39ced19 ("lib/vsprintf: split out sprintf() and friends") Signed-off-by: Stephen Rothwell <[email protected]> Cc: Andriy Shevchenko <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Petr Mladek <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Rasmus Villemoes <[email protected]> Cc: Sergey Senozhatsky <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 91a229b commit 0dec720

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/sprintf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include <linux/compiler_attributes.h>
66
#include <linux/types.h>
7+
#include <linux/stdarg.h>
78

89
int num_to_str(char *buf, int size, unsigned long long num, unsigned int width);
910

0 commit comments

Comments
 (0)