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

From: Rakib Mullick
Date: Fri Jan 08 2010 - 02:11:25 EST


On 1/8/10, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:

>
> 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. Making it depend on CONFIG_ACPI_SYSFS_POWER ||
CONFIG_ACPI_PROCFS_POWER, doesn't make sense too.
What about wrapping around acpi_battery_remove with #ifdef from
it's calling point.
--
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/