diff options
| author | 2022-01-11 16:55:25 +0100 | |
|---|---|---|
| committer | 2022-01-25 18:41:23 +0100 | |
| commit | ae57857b9b6341096ddfd9c0cf26fb640c561160 (patch) | |
| tree | 91295591eaeefcd5a5fa0c0198a859fa87c3e3e2 /tools/scripts/ssh:/git@git.zx2c4.com/git: | |
| parent | Linux 5.17-rc1 (diff) | |
| download | linux-dev-ae57857b9b6341096ddfd9c0cf26fb640c561160.tar.xz linux-dev-ae57857b9b6341096ddfd9c0cf26fb640c561160.zip | |
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 'tools/scripts/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
