Skip to contentSkip to conversation

scsi_dev_flags must be __initdata, not __init

PATCH New Christoph Hellwig 1 participant 1 message Jun 2, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi_dev_flags must be __initdata, not __init

__init is only for functions

drivers/scsi/scsi_devinfo.c +1 -1
@@ -27,7 +27,7 @@
 static const char spaces[] = "                "; /* 16 of them */
 static unsigned scsi_default_dev_flags;
 static LIST_HEAD(scsi_dev_info_list);
-static __init char scsi_dev_flags[256];
+static __initdata char scsi_dev_flags[256];
 
 /*
  * scsi_static_device_list: deprecated list of devices that require