SMP Makefile errors

"Srinivas G." <[email protected]>
Newsgroups org.kernel.vger.linux-smp
Message-ID <1118873EE1755348B4812EA29C55A9721768E6@esnmail.esntechnologies.co.in>
Hi,

I compiled a Device Driver in uni-processor environment under Linux
kernel 2.4.18-3. It was working fine. The same driver code I compiled in
SMP environment under Linux kernel 2.4.18-3smp. Then, it has given the
following errors.



In file included from /usr/src/linux-2.4/include/linux/irq.h:69,
                 from /usr/src/linux-2.4/include/asm/hardirq.h:6,
                 from /usr/src/linux-2.4/include/linux/interrupt.h:45,
                 from tiisr.c:13:
/usr/src/linux-2.4/include/asm/hw_irq.h: In function `x86_do_profile':
/usr/src/linux-2.4/include/asm/hw_irq.h:202: `current' undeclared (first
use in this function)
/usr/src/linux-2.4/include/asm/hw_irq.h:202: (Each undeclared identifier
is reported only once
/usr/src/linux-2.4/include/asm/hw_irq.h:202: for each function it
appears in.)
make: *** [tiisr.o] Error 1




Help me in this regard. What can I do to the existing driver code OR
What modifications I have to do in the Makefile.

Thanks in advance.
---Srinivas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.