[PATCH] ACPI: APEI: EINJ: make einj_initialized static
From: Padmashree S S
Date: Tue Mar 24 2026 - 23:47:20 EST
Sparse reports a warning for einj_initialized being a global symbol
that is not declared static. The variable is only used within
einj-core.c, so mark it static to limit its scope and resolve the warning.
Signed-off-by: Padmashree S S <padmashreess2006@xxxxxxxxx>
---
drivers/acpi/apei/einj-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/apei/einj-core.c b/drivers/acpi/apei/einj-core.c
index a9248af078f6..4a16c4b85a03 100644
--- a/drivers/acpi/apei/einj-core.c
+++ b/drivers/acpi/apei/einj-core.c
@@ -178,7 +178,7 @@ static DEFINE_MUTEX(einj_mutex);
/*
* Exported APIs use this flag to exit early if einj_probe() failed.
*/
-bool einj_initialized __ro_after_init;
+static bool einj_initialized __ro_after_init;
static void __iomem *einj_param;
static u32 v5param_size;
--
2.43.0