WSL2-Linux-Kernel/include/acpi/platform
Rafael J. Wysocki ae57857b9b ACPICA: Use uintptr_t and offsetof() in Linux kernel builds
To avoid "performing pointer subtraction with a null pointer has
undefined behavior" compiler warnings, use uintptr_t and offsetof()
that are always available during Linux kernel builds to define
acpi_uintptr_t and the ACPI_TO_INTEGER() and ACPI_OFFSET() macros.

Based on earlier proposal from Arnd Bergmann.

Link: https://lore.kernel.org/linux-acpi/20210927121338.938994-1-arnd@kernel.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
2022-01-25 18:41:23 +01: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: Drop ACPI_USE_BUILTIN_STDARG ifdef from acgcc.h 2021-11-05 15:51:13 +01: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: Use uintptr_t and offsetof() in Linux kernel builds 2022-01-25 18:41:23 +01:00
aclinuxex.h ACPICA: Updated all copyrights to 2021 2021-01-22 15:51:53 +01:00