public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI: APEI: EINJ: make einj_initialized static
@ 2026-03-25  3:46 Padmashree S S
  2026-03-25 15:41 ` Luck, Tony
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Padmashree S S @ 2026-03-25  3:46 UTC (permalink / raw)
  To: rafael, tony.luck
  Cc: bp, guohanjun, mchehab, xueshuai, linux-acpi, linux-kernel,
	Padmashree S S

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@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-03-28 13:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-25  3:46 [PATCH] ACPI: APEI: EINJ: make einj_initialized static Padmashree S S
2026-03-25 15:41 ` Luck, Tony
2026-03-25 16:02   ` Cheatham, Benjamin
2026-03-28  9:29 ` kernel test robot
2026-03-28 13:37 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox