Skip to contentSkip to conversation

hwmon: (asus_atk0110) Fix incorrect placement of __initconst

PATCH Applied Sachin Kamat 2 participants 3 messages Aug 12, 2013 – Aug 27, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: (asus_atk0110) Fix incorrect placement of __initconst

__initconst should be placed between the variable name and equal sign for the variable to be placed in the intended section.

Cc Luca Tettamanti <[email protected]>
---
 drivers/hwmon/asus_atk0110.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/asus_atk0110.c +1 -1
index b25c643..9ddadb3 100644
@@ -29,7 +29,7 @@ static bool new_if;
 module_param(new_if, bool, 0);
 MODULE_PARM_DESC(new_if, "Override detection heuristic and force the use of the new ATK0110 interface");
 
-static const struct dmi_system_id __initconst atk_force_new_if[] = {
+static const struct dmi_system_id atk_force_new_if[] __initconst = {
 	{
 		/* Old interface has broken MCH temp monitoring */
 		.ident = "Asus Sabertooth X58",
Signature · 7 lines
1.7.9.5


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
maintainer
#2 lore raw
In reply to Sachin Kamat
Quoted 14 lines · Sachin Kamat

__initconst should be placed between the variable name and equal sign for the variable to be placed in the intended section.

Cc Luca Tettamanti <[email protected]>
---
 drivers/hwmon/asus_atk0110.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/asus_atk0110.c +0 -0
index b25c643..9ddadb3 100644

drivers/hwmon/asus_atk0110.c static bool new_if; · line 35

Quoted 8 lines
drivers/hwmon/asus_atk0110.c +1 -1
@@ -29,7 +29,7 @@ static bool new_if;
 module_param(new_if, bool, 0);
 MODULE_PARM_DESC(new_if, "Override detection heuristic and force the use of the new ATK0110 interface");
 
-static const struct dmi_system_id __initconst atk_force_new_if[] = {
+static const struct dmi_system_id atk_force_new_if[] __initconst = {
 	{
 		/* Old interface has broken MCH temp monitoring */
 		.ident = "Asus Sabertooth X58",

Based on the other discussion we just had, this patch is unnecessary. I will therefore drop it from my queue.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors