Static variable dmi_memdev_populated_nr is only used in __init
functions, so it can be marked __initdata.
Signed-off-by: Jean Delvare <[email protected]>
Cc: Heiner Kallweit <[email protected]>
---
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