Skip to contentSkip to conversation

ifdef only module

DISCUSSION James 2 participants 2 messages Aug 26, 2012

lore
Share & tools
lore

James

author
#0 lore raw

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.

#1 lore raw
Quoted 6 lines · James

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

Signature · 1 line
~Randy