From: chris@basementcode.com (Christopher Harvey)
To: kernelnewbies@lists.kernelnewbies.org
Subject: adding preprocessor defines in module makefiles
Date: Thu, 08 Sep 2011 09:29:22 -0500 [thread overview]
Message-ID: <1446fdf130ff6118b2c776094dd4155f@basementcode.com> (raw)
Hi,
I'm trying to build a kernel module for fun, and I can't figure out a
clean way to add preprocessor defines that correspond to Kconfig values.
I'm trying to set CONFIG_SND_DEBUG specifically. My module has only one
file, and I've tried adding #define CONFIG_SND_DEBUG as the first line
in the .c file, but now I'm getting the following warning:
WARNING: "__snd_printk" [/home/chris/snd/snd-foo.ko] undefined!
I haven't compiled the kernel running on my system with the
CONFIG_SND_DEBUG option but I haven't been able to see a reason why that
should change anything for my module.
thanks,
Chris
next reply other threads:[~2011-09-08 14:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-08 14:29 Christopher Harvey [this message]
2011-09-08 15:49 ` adding preprocessor defines in module makefiles Mulyadi Santosa
2011-09-08 15:52 ` PLEASE REMOVE ME FROM YOUR LIST Shehata, Shereef
2011-09-09 2:43 ` Pei Lin
2011-09-09 5:01 ` adding preprocessor defines in module makefiles Dave Hylands
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=1446fdf130ff6118b2c776094dd4155f@basementcode.com \
--to=chris@basementcode.com \
--cc=kernelnewbies@lists.kernelnewbies.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.