lkml.org 
[lkml]   [2010]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] acpi: Fix unused variable warning in sbs.c
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
\
 
 \ /
  Last update: 2010-01-16 22:05    [W:0.073 / U:0.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site