make -C /usr/src/linux-2.6.22-rc2 M=`pwd` modules ARCH=um make: Entering directory `/usr/src/linux-2.6.22-rc2' WARNING: Symbol version dump /usr/src/linux-2.6.22-rc2/Module.symvers is missing; modules will have no dependencies and modversions. CC [M] /root/home/mayur/cardread/sbull.o In file included from include/asm/smp.h:15, from include/linux/smp.h:19, from include/asm/desc.h:10, from include/asm/elf.h:50, from include/linux/elf.h:7, from include/linux/module.h:15, from /root/home/mayur/cardread/sbull.c:6: include/asm/mpspec.h:6:25: error: mach_mpspec.h: No such file or directory In file included from include/asm/smp.h:15, from include/linux/smp.h:19, from include/asm/desc.h:10, from include/asm/elf.h:50, from include/linux/elf.h:7, from include/linux/module.h:15, from /root/home/mayur/cardread/sbull.c:6: 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) In file included from include/linux/smp.h:19, from include/asm/desc.h:10, from include/asm/elf.h:50, from include/linux/elf.h:7, from include/linux/module.h:15, from /root/home/mayur/cardread/sbull.c:6: include/asm/smp.h:150:26: error: mach_apicdef.h: No such file or directory In file included from include/linux/smp.h:19, from include/asm/desc.h:10, from include/asm/elf.h:50, from include/linux/elf.h:7, from include/linux/module.h:15, from /root/home/mayur/cardread/sbull.c:6: include/asm/smp.h: In function 'hard_smp_processor_id': include/asm/smp.h:154: warning: implicit declaration of function 'GET_APIC_ID' In file included from include/linux/irq.h:23, from include/asm/hardirq.h:5, from include/linux/hardirq.h:7, from include/linux/interrupt.h:11, from include/asm/highmem.h:23, from include/linux/highmem.h:24, from include/linux/pagemap.h:10, from include/linux/blkdev.h:10, from /root/home/mayur/cardread/sbull.c:22: include/asm/irq.h:15:25: error: irq_vectors.h: No such file or directory In file included from include/asm/hardirq.h:5, from include/linux/hardirq.h:7, from include/linux/interrupt.h:11, from include/asm/highmem.h:23, from include/linux/highmem.h:24, from include/linux/pagemap.h:10, from include/linux/blkdev.h:10, from /root/home/mayur/cardread/sbull.c:22: include/linux/irq.h: At top level: include/linux/irq.h:178: error: 'NR_IRQS' undeclared here (not in a function) In file included from include/asm/hardirq.h:5, from include/linux/hardirq.h:7, from include/linux/interrupt.h:11, from include/asm/highmem.h:23, from include/linux/highmem.h:24, from include/linux/pagemap.h:10, from include/linux/blkdev.h:10, from /root/home/mayur/cardread/sbull.c:22: include/linux/irq.h: In function 'irq_balancing_disabled': include/linux/irq.h:268: warning: control reaches end of non-void function In file included from include/linux/interrupt.h:11, from include/asm/highmem.h:23, from include/linux/highmem.h:24, from include/linux/pagemap.h:10, from include/linux/blkdev.h:10, from /root/home/mayur/cardread/sbull.c:22: include/linux/hardirq.h:40:27: warning: "NR_IRQS" is not defined make[1]: *** [/root/home/mayur/cardread/sbull.o] Error 1 make: *** [_module_/root/home/mayur/cardread] Error 2 make: Leaving directory `/usr/src/linux-2.6.22-rc2' [root@localhost cardread]#