diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2021-08-02 23:40:32 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-08-19 03:02:55 +0300 |
commit | c0891ac15f0428ffa81b2e818d416bdf3cb74ab6 (patch) | |
tree | 833890b141b8e53fdd20d2c9f96b7216dad224b4 /include/linux/stdarg.h | |
parent | 39f75da7bcc829ddc4d40bb60d0e95520de7898b (diff) | |
download | linux-c0891ac15f0428ffa81b2e818d416bdf3cb74ab6.tar.xz |
isystem: ship and use stdarg.h
Ship minimal stdarg.h (1 type, 4 macros) as <linux/stdarg.h>.
stdarg.h is the only userspace header commonly used in the kernel.
GPL 2 version of <stdarg.h> can be extracted from
http://archive.debian.org/debian/pool/main/g/gcc-4.2/gcc-4.2_4.2.4.orig.tar.gz
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'include/linux/stdarg.h')
-rw-r--r-- | include/linux/stdarg.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/stdarg.h b/include/linux/stdarg.h new file mode 100644 index 000000000000..c8dc7f4f390c --- /dev/null +++ b/include/linux/stdarg.h @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +#ifndef _LINUX_STDARG_H +#define _LINUX_STDARG_H + +typedef __builtin_va_list va_list; +#define va_start(v, l) __builtin_va_start(v, l) +#define va_end(v) __builtin_va_end(v) +#define va_arg(v, T) __builtin_va_arg(v, T) +#define va_copy(d, s) __builtin_va_copy(d, s) + +#endif |