Re: adding preprocessor defines in module makefiles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi :)

On Thu, Sep 8, 2011 at 21:29, Christopher Harvey <chris@xxxxxxxxxxxxxxxx> wrote:
> 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!


Without looking at your modules' course, I think that's due to you
were using unexported symbol (in this case, kernel function)

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux