mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
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>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
9ace4753a5
commit
cae444e0e2
@@ -679,7 +679,7 @@ static bool is_allowed_range(u64 base_addr, u64 size)
|
||||
* region intersects with known resource. So do an allow list check for
|
||||
* IORES_DESCs that definitely or most likely not MMIO.
|
||||
*/
|
||||
int non_mmio_desc[] = {
|
||||
static const int non_mmio_desc[] = {
|
||||
IORES_DESC_CRASH_KERNEL,
|
||||
IORES_DESC_ACPI_TABLES,
|
||||
IORES_DESC_ACPI_NV_STORAGE,
|
||||
|
||||
Reference in New Issue
Block a user