Skip to contentSkip to conversation

asus_atk0110: fix compiler warning

PATCH In review Luca Tettamanti 2 participants 2 messages Apr 29, 2009 – Apr 30, 2009

Subsystems (2)
lore
Share & tools
lore

Luca Tettamanti

author maintainer
#0 lore raw

PATCH 1/1 asus_atk0110: fix compiler warning

atk_sensor_type is only used when DEBUG is defined.

---
Jean can you pick this up?

 drivers/hwmon/asus_atk0110.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/hwmon/asus_atk0110.c +2 -0
index 0897ede..bff0103 100644
@@ -348,6 +348,7 @@ static int validate_hwmon_pack(struct atk_data *data, union acpi_object *obj)
 	return 0;
 }
 
+#ifdef DEBUG
 static char const *atk_sensor_type(union acpi_object *flags)
 {
 	u64 type = flags->integer.value & ATK_TYPE_MASK;
@@ -370,6 +371,7 @@ static char const *atk_sensor_type(union acpi_object *flags)
 
 	return what;
 }
+#endif
 
 static void atk_print_sensor(struct atk_data *data, union acpi_object *obj)
 {

Luca

Signature · 3 lines
Se il  destino di un uomo  e` annegare, anneghera` anche  in un bicchier
d'acqua.
Proverbio yddish
#1 lore raw

Hi Luca,

Quoted 23 lines · Luca Tettamanti

atk_sensor_type is only used when DEBUG is defined.

---
Jean can you pick this up?

 drivers/hwmon/asus_atk0110.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/hwmon/asus_atk0110.c +1 -0
index 0897ede..bff0103 100644
@@ -348,6 +348,7 @@ static int validate_hwmon_pack(struct atk_data *data, union acpi_object *obj)
 	return 0;
 }
 
+#ifdef DEBUG
 static char const *atk_sensor_type(union acpi_object *flags)
 {
 	u64 type = flags->integer.value & ATK_TYPE_MASK;

drivers/hwmon/asus_atk0110.c static char const *atk_sensor_type(union acpi_object *flags) · line 377

Quoted 7 lines
drivers/hwmon/asus_atk0110.c +1 -0
@@ -370,6 +371,7 @@ static char const *atk_sensor_type(union acpi_object *flags)
 
 	return what;
 }
+#endif
 
 static void atk_print_sensor(struct atk_data *data, union acpi_object *obj)
 {

Thanks for the fix, I've just applied it.

Signature · 6 lines
Jean Delvare

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