mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@xenotime.net>
To: James <bjlockie@lockie.ca>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: ifdef only module
Date: Sun, 26 Aug 2012 08:06:36 -0700	[thread overview]
Message-ID: <503A3B7C.4040005@xenotime.net> (raw)
In-Reply-To: <50399D1A.9080000@lockie.ca>

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

      reply	other threads:[~2012-08-26 15:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-26  3:50 James
2012-08-26 15:06 ` Randy Dunlap [this message]

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=503A3B7C.4040005@xenotime.net \
    --to=rdunlap@xenotime.net \
    --cc=bjlockie@lockie.ca \
    --cc=linux-kernel@vger.kernel.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