Re: [PATCH] acpi: Fix unused variable warning in sbs.c

From: Len Brown
Date: Sat Jan 16 2010 - 16:03:19 EST


On Sat, 9 Jan 2010, Alexey Starikovskiy wrote:

> Andrew Morton ÐÐÑÐÑ:
> > I wonder if it can be fixed in Kconfig. Is there any sane use of
> > this code when CONFIG_ACPI_SYSFS_POWER=n && CONFIG_ACPI_PROCFS_POWER=n?

> No, this driver is useless in such a case. It can not output any info (and this is all it does).


Hi Alex,
Probably the code can lose some ifdefs by doing things
like making acpi_battery_remove_fs() a static inline when
!CONFIG_ACPI_PROCFS_POWER.

cheers,
-Len