Re: [PATCH] bogus #if (acpi/blacklist)

viro
2005-09-09T17:31:40Z

On Fri, Sep 09, 2005 at 06:55:52PM +0200, Roman Zippel wrote:
> Hi,
>
> On Fri, 9 Sep 2005 viro@ZenIV.linux.org.uk wrote:
>
> > Sigh... It should be left as #if, of course, but I suspect that cleaner way to
> > deal with that would be (in Kconfig)
> >
> > config ACPI_BLACKLIST_YEAR
> > int "Disable ACPI for systems before Jan 1st this year" if X86
> > default 0
>
> That would be indeed the better fix.
>
> bye, Roman

There we go, then (replacement for original variant, _not_ an incremental):

diff -urN RC13-git8-base/drivers/acpi/Kconfig current/drivers/acpi/Kconfig
--- RC13-git8-base/drivers/acpi/Kconfig 2005-09-08 23:42:49.000000000 -0400
+++ current/drivers/acpi/Kconfig 2005-09-09 12:41:37.000000000 -0400
@@ -250,8 +250,7 @@
Enter the full path name to the file wich includes the AmlCode declaration.

config ACPI_BLACKLIST_YEAR
- int "Disable ACPI for systems before Jan 1st this year"
- depends on X86
+ int "Disable ACPI for systems before Jan 1st this year" if X86
default 0
help
enter a 4-digit year, eg. 2001 to disable ACPI by default