asus_atk0110: fix compiler warning
Subsystems (2)
Luca Tettamanti
maintainerPATCH 1/1 asus_atk0110: fix compiler warning
atk_sensor_type is only used when DEBUG is defined.
Signed-off-by Luca Tettamanti <[email protected]>
---
Jean can you pick this up?
drivers/hwmon/asus_atk0110.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/hwmon/asus_atk0110.c +2 -0
@@ -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
Hi Luca,
Quoted 23 lines · Luca Tettamanti
atk_sensor_typeis only used when DEBUG is defined.Signed-off-by Luca Tettamanti <[email protected]>---
Jean can you pick this up?drivers/hwmon/asus_atk0110.c | 2 ++ 1 file changed, 2 insertions(+)drivers/hwmon/asus_atk0110.c +1
-0@@ -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