Re: Compilation issue with spin_lock_bh

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

 



Josef Sipek wrote:

Try it with:

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>

It most definitely should compile (I have a module that has those
three and and linux/errno.h and it compiles flawlessly).

Jeff.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/

Thanks Joseph. I tried every possible way and I finally got it compiled. Its kind of strange. In my makefile I changed CFLAGS = I. to CFLAGS += I. and it worked. Basically, after the above statement I have a series of "CFLAGS +=" statements. I don't know how changing from = to += would compile in a different way. Need to do some research on this :). If someone can shed some light on this it would be great.

Sanjay Acharya



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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