Driver porting: hello world
Driver porting: hello world
Posted Dec 18, 2004 5:22 UTC (Sat) by sockie (guest, #26758)In reply to: Driver porting: hello world by prakash07
Parent article: Driver porting: hello world
I am getting the following errors when trying to compile the above example on Kernel 2.6.9
**************************************************************************
make -C /lib/modules/2.6.9-1.667smp/build SUBDIRS=/root/ppm/client modules
make[1]: Entering directory `/lib/modules/2.6.9-1.667smp/build'
CC [M] /root/ppm/client/test.o
In file included from include/asm/smp.h:18,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
from /root/ppm/client/test.c:2:
include/asm/mpspec.h:6:38: mach-generic/mach_mpspec.h: No such file or directory
In file included from include/asm/smp.h:18,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
from /root/ppm/client/test.c:2:
include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
make[2]: *** [/root/ppm/client/test.o] Error 1
make[1]: *** [_module_/root/ppm/client] Error 2
make[1]: Leaving directory `/lib/modules/2.6.9-1.667smp/build'
make: *** [default] Error 2
**************************************************************************
Any help is appreciated.
Y.W.
