* ifdef only module
@ 2012-08-26 3:50 James
2012-08-26 15:06 ` Randy Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: James @ 2012-08-26 3:50 UTC (permalink / raw)
To: Kernel Mailing List
I want to only run code if a module is being built.
drivers/media/video/cx25840/cx25840-core.c: 394
If it is built into kernel it causes a timeout because it relies on udev which is not initialized yet.
The code is only needed to provide analog reception.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ifdef only module
2012-08-26 3:50 ifdef only module James
@ 2012-08-26 15:06 ` Randy Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2012-08-26 15:06 UTC (permalink / raw)
To: James; +Cc: Kernel Mailing List
On 08/25/2012 08:50 PM, James wrote:
> I want to only run code if a module is being built.
>
> drivers/media/video/cx25840/cx25840-core.c: 394
> If it is built into kernel it causes a timeout because it relies on udev which is not initialized yet.
> The code is only needed to provide analog reception.
> --
#ifdef MODULE
<that code>
#endif
--
~Randy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-26 15:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-26 3:50 ifdef only module James
2012-08-26 15:06 ` Randy Dunlap
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