Skip to content

Commit 63b0a7b

Browse files
committed
ACPI: Drop ACPI_USE_BUILTIN_STDARG ifdef from acgcc.h
The ACPI_USE_BUILTIN_STDARG symbol is never set in the kernel build, so stop checking it in include/acpi/platform/acgcc.h and drop all of the macros depending on it (which appear to duplicate the analogous macros from linux/stdarg.h, but in fact are never used). Link: https://lore.kernel.org/linux-acpi/CAHk-=whCammRsz8PEbrft3M6vGjF506gkxtyGw81uGOUUvD51g@mail.gmail.com/ Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Linus Torvalds <[email protected]>
1 parent c0d6586 commit 63b0a7b

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

include/acpi/platform/acgcc.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,12 @@
1010
#ifndef __ACGCC_H__
1111
#define __ACGCC_H__
1212

13-
/*
14-
* Use compiler specific <stdarg.h> is a good practice for even when
15-
* -nostdinc is specified (i.e., ACPI_USE_STANDARD_HEADERS undefined.
16-
*/
1713
#ifndef va_arg
18-
#ifdef ACPI_USE_BUILTIN_STDARG
19-
typedef __builtin_va_list va_list;
20-
#define va_start(v, l) __builtin_va_start(v, l)
21-
#define va_end(v) __builtin_va_end(v)
22-
#define va_arg(v, l) __builtin_va_arg(v, l)
23-
#define va_copy(d, s) __builtin_va_copy(d, s)
24-
#else
2514
#ifdef __KERNEL__
2615
#include <linux/stdarg.h>
2716
#else
28-
/* Used to build acpi tools */
2917
#include <stdarg.h>
3018
#endif /* __KERNEL__ */
31-
#endif /* ACPI_USE_BUILTIN_STDARG */
3219
#endif /* ! va_arg */
3320

3421
#define ACPI_INLINE __inline__

0 commit comments

Comments
 (0)