diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-01-11 16:55:25 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-01-25 18:41:23 +0100 |
commit | ae57857b9b6341096ddfd9c0cf26fb640c561160 (patch) | |
tree | 91295591eaeefcd5a5fa0c0198a859fa87c3e3e2 /scripts | |
parent | e783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff) | |
download | linux-next-ae57857b9b6341096ddfd9c0cf26fb640c561160.tar.gz |
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions