From 0d183076401d6314664f1eb0b69d7fefa9afda52 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Mon, 26 Jan 2026 09:47:11 -0600 Subject: [PATCH] device/pciexp: Make aspm_type_str pointer const Fix checkpatch warning by changing aspm_type_str array to use 'static const char * const' instead of 'static const char *'. Change-Id: Id1082447e309b840c965326a74c4ab00f3a1536c Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/90914 Tested-by: build bot (Jenkins) Reviewed-by: Sean Rhodes --- src/device/pciexp_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/pciexp_device.c b/src/device/pciexp_device.c index 1b8f8ad79b..ec90a22b74 100644 --- a/src/device/pciexp_device.c +++ b/src/device/pciexp_device.c @@ -569,7 +569,7 @@ static int pciexp_aspm_latency(struct device *root, unsigned int root_cap, static void pciexp_enable_aspm(struct device *root, unsigned int root_cap, struct device *endp, unsigned int endp_cap) { - const char *aspm_type_str[] = { "None", "L0s", "L1", "L0s and L1" }; + static const char * const aspm_type_str[] = { "None", "L0s", "L1", "L0s and L1" }; enum aspm_type apmc = PCIE_ASPM_NONE; int exit_latency, ok_latency; u16 lnkctl;