Re: [PATCH] asus_atk0110: fix compiler warning

From: Jean Delvare
Date: Thu Apr 30 2009 - 13:01:26 EST


Hi Luca,

On Wed, 29 Apr 2009 21:22:55 +0200, Luca Tettamanti wrote:
> atk_sensor_type is only used when DEBUG is defined.
>
> Signed-off-by: Luca Tettamanti <kronos.it@xxxxxxxxx>
>
> ---
> Jean can you pick this up?
>
> drivers/hwmon/asus_atk0110.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/hwmon/asus_atk0110.c b/drivers/hwmon/asus_atk0110.c
> index 0897ede..bff0103 100644
> --- a/drivers/hwmon/asus_atk0110.c
> +++ b/drivers/hwmon/asus_atk0110.c
> @@ -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)
> {

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

--
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/