Skip to content

Commit cae444e

Browse files
ColinIanKingrafaeljw
authored andcommitted
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>
1 parent 9ace475 commit cae444e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/acpi/apei/einj-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ static bool is_allowed_range(u64 base_addr, u64 size)
679679
* region intersects with known resource. So do an allow list check for
680680
* IORES_DESCs that definitely or most likely not MMIO.
681681
*/
682-
int non_mmio_desc[] = {
682+
static const int non_mmio_desc[] = {
683683
IORES_DESC_CRASH_KERNEL,
684684
IORES_DESC_ACPI_TABLES,
685685
IORES_DESC_ACPI_NV_STORAGE,

0 commit comments

Comments
 (0)