mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00

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/20250721173754.42865913@canb.auug.org.au
Fixes: 39ced19b9e
("lib/vsprintf: split out sprintf() and friends")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Andriy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Petr Mladek <pmladek@suse.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
32 lines
1.3 KiB
C
32 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_KERNEL_SPRINTF_H_
|
|
#define _LINUX_KERNEL_SPRINTF_H_
|
|
|
|
#include <linux/compiler_attributes.h>
|
|
#include <linux/types.h>
|
|
#include <linux/stdarg.h>
|
|
|
|
int num_to_str(char *buf, int size, unsigned long long num, unsigned int width);
|
|
|
|
__printf(2, 3) int sprintf(char *buf, const char * fmt, ...);
|
|
__printf(2, 0) int vsprintf(char *buf, const char *, va_list);
|
|
__printf(3, 4) int snprintf(char *buf, size_t size, const char *fmt, ...);
|
|
__printf(3, 0) int vsnprintf(char *buf, size_t size, const char *fmt, va_list args);
|
|
__printf(3, 4) int scnprintf(char *buf, size_t size, const char *fmt, ...);
|
|
__printf(3, 0) int vscnprintf(char *buf, size_t size, const char *fmt, va_list args);
|
|
__printf(2, 3) __malloc char *kasprintf(gfp_t gfp, const char *fmt, ...);
|
|
__printf(2, 0) __malloc char *kvasprintf(gfp_t gfp, const char *fmt, va_list args);
|
|
__printf(2, 0) const char *kvasprintf_const(gfp_t gfp, const char *fmt, va_list args);
|
|
|
|
__scanf(2, 3) int sscanf(const char *, const char *, ...);
|
|
__scanf(2, 0) int vsscanf(const char *, const char *, va_list);
|
|
|
|
/* These are for specific cases, do not use without real need */
|
|
extern bool no_hash_pointers;
|
|
int no_hash_pointers_enable(char *str);
|
|
|
|
/* Used for Rust formatting ('%pA') */
|
|
char *rust_fmt_argument(char *buf, char *end, const void *ptr);
|
|
|
|
#endif /* _LINUX_KERNEL_SPRINTF_H */
|