From: Trent Piepho <xyzzy@speakeasy.org>
To: Jan Engelhardt <jengelh@computergmbh.de>
Cc: Adrian Bunk <bunk@kernel.org>,
Mauro Carvalho Chehab <mchehab@infradead.org>,
Hans Verkuil <hverkuil@xs4all.nl>,
v4l-dvb-maintainer@linuxtv.org,
Marcin Slusarz <marcin.slusarz@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [v4l-dvb-maintainer] 2.6.25 regression: VIDEO_DEV=y/m, I2C=n compile error
Date: Fri, 1 Feb 2008 11:24:09 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.58.0802011117120.5488@shell2.speakeasy.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0801281314450.1185@fbirervta.pbzchgretzou.qr>
On Mon, 28 Jan 2008, Jan Engelhardt wrote:
> On Jan 28 2008 01:05, Trent Piepho wrote:
>
> >Maybe the kernel headers should provide a couple macros for testing
> >configs, since people get it wrong over and over again?
> >
> >#define CONFIG_ON(x) (defined(CONFIG_##x) || defined(CONFIG_##x##_MODULE))
> >#define CONFIG_AVAIABLE(x) (defined(CONFIG_##x) || (defined(MODULE) && defined(CONFIG_##x##_MODULE)))
> ^AVAILABLE(x)
>
> What's the difference between these two?
>
> CONFIG_x_MODULE will never be defined if MODULE is not, so defined(MODULE)
> seems redundant.
You're probably thinking of CONFIG_MODULES, which indicates the kernel
supports module loading. MODULE indicates the current code is being
compiled as a module. The idea is that code compiled in the kernel can't
call modules. Generally what you would see is:
#if CONFIG_ON(x)
code that will be _used by_ x
probably want x to depend on us in Kconfig
#endif
#if CONFIG_AVAILABLE(x)
code that wants _to use_ x
#endif
next prev parent reply other threads:[~2008-02-01 19:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-27 18:52 Adrian Bunk
2008-01-28 0:33 ` Mauro Carvalho Chehab
2008-01-28 8:40 ` Adrian Bunk
2008-01-28 9:05 ` [v4l-dvb-maintainer] " Trent Piepho
2008-01-28 11:49 ` Mauro Carvalho Chehab
2008-01-28 12:12 ` Adrian Bunk
2008-01-28 12:22 ` Mauro Carvalho Chehab
2008-01-28 12:25 ` Mauro Carvalho Chehab
2008-01-29 16:38 ` Mauro Carvalho Chehab
2008-01-28 12:17 ` Jan Engelhardt
2008-01-28 12:25 ` Adrian Bunk
2008-02-01 19:24 ` Trent Piepho [this message]
2008-01-29 18:42 ` Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.58.0802011117120.5488@shell2.speakeasy.net \
--to=xyzzy@speakeasy.org \
--cc=bunk@kernel.org \
--cc=hverkuil@xs4all.nl \
--cc=jengelh@computergmbh.de \
--cc=linux-kernel@vger.kernel.org \
--cc=marcin.slusarz@gmail.com \
--cc=mchehab@infradead.org \
--cc=v4l-dvb-maintainer@linuxtv.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome