On Thu, Jan 12, 2006 at 06:18:48PM -0800, Sanjay Acharya wrote: > Hi, > > I am building a character device driver on 2.6.11 kernel. I have used > in one of my function "spin_lock_bh()". Now when I try to compile the > code I get an error "*** Warning: "local_bh_disable" <my .ko path> > undefined! > > I am including the file <linux/spinlock.h>. Any hints? Not sure why this happens, but including linux/interrupt.h before spinlock.h should fix it. Jeff. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/