linux-stable/include/acpi
Mark Langsdorf 78cc8a7530 ACPICA: actypes.h: Expand the ACPI_ACCESS_ definitions
[ Upstream commit f81bdeaf81 ]

ACPICA commit bc02c76d518135531483dfc276ed28b7ee632ce1

The current ACPI_ACCESS_*_WIDTH defines do not provide a way to
test that size is small enough to not cause an overflow when
applied to a 32-bit integer.

Rather than adding more magic numbers, add ACPI_ACCESS_*_SHIFT,
ACPI_ACCESS_*_MAX, and ACPI_ACCESS_*_DEFAULT #defines and
redefine ACPI_ACCESS_*_WIDTH in terms of the new #defines.

This was inititally reported on Linux where a size of 102 in
ACPI_ACCESS_BIT_WIDTH caused an overflow error in the SPCR
initialization code.

Link: https://github.com/acpica/acpica/commit/bc02c76d
Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 11:04:49 +01:00
..
platform ACPI: tools: fix compilation error 2021-10-07 19:18:19 +02:00
acbuffer.h
acconfig.h
acexcep.h
acnames.h ACPICA: Add method name "_DIS" For use with aslmethod.c 2021-08-16 16:47:02 +02:00
acoutput.h ACPICA: Macros should not use a trailing semicolon 2021-08-16 16:47:02 +02:00
acpi.h
acpi_bus.h ACPI: Change acpi_device_always_present() into acpi_device_override_status() 2022-01-27 11:04:33 +01:00
acpi_drivers.h
acpi_io.h Revert "ACPI: Add memory semantics to acpi_os_map_memory()" 2021-09-23 20:39:36 +02:00
acpi_lpat.h
acpi_numa.h
acpiosxf.h
acpixf.h ACPICA: Update version to 20210730 2021-08-16 16:47:02 +02:00
acrestyp.h
actbl.h
actbl1.h ACPICA: Headers: Add new DBG2 Serial Port Subtypes 2021-08-16 16:47:02 +02:00
actbl2.h ACPICA: iASL: Add support for the AEST table (data compiler) 2021-08-16 16:47:01 +02:00
actbl3.h ACPICA: iASL: Fix for WPBT table with no command-line arguments 2021-08-16 16:47:02 +02:00
actypes.h ACPICA: actypes.h: Expand the ACPI_ACCESS_ definitions 2022-01-27 11:04:49 +01:00
acuuid.h
apei.h
battery.h
button.h
cppc_acpi.h ACPI: CPPC: Introduce cppc_get_nominal_perf() 2021-09-07 21:15:16 +02:00
ghes.h
hed.h
nfit.h
pcc.h
pdc_intel.h
processor.h
reboot.h
video.h