Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ACPI: APEI: EINJ: make read-only array non_mmio_desc static const

Don't populate the read-only array non_mmio_desc on the stack at run
time, instead make it static const.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://patch.msgid.link/20251219215900.494211-1-colin.i.king@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Colin Ian King and committed by
Rafael J. Wysocki
cae444e0 9ace4753

+1 -1
+1 -1
drivers/acpi/apei/einj-core.c
··· 679 679 * region intersects with known resource. So do an allow list check for 680 680 * IORES_DESCs that definitely or most likely not MMIO. 681 681 */ 682 - int non_mmio_desc[] = { 682 + static const int non_mmio_desc[] = { 683 683 IORES_DESC_CRASH_KERNEL, 684 684 IORES_DESC_ACPI_TABLES, 685 685 IORES_DESC_ACPI_NV_STORAGE,