linux/include/acpi/platform
Miguel Bernal Marin 136f282028 ACPI: tools: fix compilation error
When ACPI tools are compiled, the following error is showed:

   $ cd tools/power/acpi
   $ make
     DESCEND tools/acpidbg
     MKDIR    include
     CP       include
     CC       tools/acpidbg/acpidbg.o
   In file included from /home/linux/tools/power/acpi/include/acpi/platform/acenv.h:152,
                    from /home/linux/tools/power/acpi/include/acpi/acpi.h:22,
                    from acpidbg.c:9:
   /home/linux/tools/power/acpi/include/acpi/platform/acgcc.h:25:10: fatal error: linux/stdarg.h: No such file or directory
      29 | #include <linux/stdarg.h>
         |          ^~~~~~~~~~~~~~~~
   compilation terminated.

Use the ACPICA logic: just identify when it is used inside the kernel
or by an ACPI tool.

Fixes: c0891ac15f ("isystem: ship and use stdarg.h")
Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2021-10-07 19:18:19 +02:00
..
acenv.h ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00
acenvex.h ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00
acgcc.h ACPI: tools: fix compilation error 2021-10-07 19:18:19 +02:00
acgccex.h ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00
acintel.h ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00
aclinux.h ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00
aclinuxex.h ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00