[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090711215343.GC31925@bombadil.infradead.org>
Date: Sat, 11 Jul 2009 17:53:43 -0400
From: Kyle McMartin <kyle@...artin.ca>
To: Pekka Paalanen <pq@....fi>
Cc: linux-kernel@...r.kernel.org
Subject: Re: Kconfig, Makefile and ifdef: mod as yes vs. no?
On Sun, Jul 12, 2009 at 12:06:25AM +0300, Pekka Paalanen wrote:
> +#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE
>
You need to test _MODULE for the symbol too... since it's necessary to
be able to distinguish between symbols which exist in the vmlinux, and
symbols which require a module to be loaded.
#if defined(CONFIG_BACKLIGHT_CLASS_DEVICE) &&
defined(CONFIG_BACKLIGHT_CLASS_DEVICE_MODULE)
should work.
regards, Kyle
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists