* [PATCH] firmware: dmi: Mark dmi_memdev_populated_nr __initdata
@ 2024-05-07 9:38 Jean Delvare
0 siblings, 0 replies; only message in thread
From: Jean Delvare @ 2024-05-07 9:38 UTC (permalink / raw)
To: LKML; +Cc: Heiner Kallweit
Static variable dmi_memdev_populated_nr is only used in __init
functions, so it can be marked __initdata.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
---
I could also squash this change in the commit which introduced
dmi_memdev_populated_nr, as it's not upstream yet, if Heiner is OK with
it.
drivers/firmware/dmi_scan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-6.8.orig/drivers/firmware/dmi_scan.c
+++ linux-6.8/drivers/firmware/dmi_scan.c
@@ -42,7 +42,7 @@ static struct dmi_memdev_info {
u8 type; /* DDR2, DDR3, DDR4 etc */
} *dmi_memdev;
static int dmi_memdev_nr;
-static int dmi_memdev_populated_nr;
+static int dmi_memdev_populated_nr __initdata;
static const char * __init dmi_string_nosave(const struct dmi_header *dm, u8 s)
{
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-07 9:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-07 9:38 [PATCH] firmware: dmi: Mark dmi_memdev_populated_nr __initdata Jean Delvare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®