All of lore.kernel.org
 help / color / mirror / Atom feed
* adding preprocessor defines in module makefiles
@ 2011-09-08 14:29 Christopher Harvey
  2011-09-08 15:49 ` Mulyadi Santosa
  2011-09-09  5:01 ` adding preprocessor defines in module makefiles Dave Hylands
  0 siblings, 2 replies; 5+ messages in thread
From: Christopher Harvey @ 2011-09-08 14:29 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-09  5:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-08 14:29 adding preprocessor defines in module makefiles Christopher Harvey
2011-09-08 15:49 ` 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

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.