gcc -D__KERNEL__ -DMODULE -O -Wall -Wstrict-prototypes -I/usr/src/linux/include -DUSE_IO_OPS -D_COMPAT_WITH_OLD_KERNEL -c -o sundance_main.o sundance_main.c
In file included from /usr/src/linux/include/linux/sched.h:20,
from /usr/src/linux/include/linux/module.h:10,
from sundance_main.c:168:
/usr/src/linux/include/asm/semaphore.h: In function down:
/usr/src/linux/include/asm/semaphore.h:112: error: expected : or ) before KBUILD_BASENAME
/usr/src/linux/include/asm/semaphore.h: In function down_interruptible:
/usr/src/linux/include/asm/semaphore.h:137: error: expected : or ) before KBUILD_BASENAME
/usr/src/linux/include/asm/semaphore.h: In function down_trylock:
/usr/src/linux/include/asm/semaphore.h:161: error: expected : or ) before KBUILD_BASENAME
/usr/src/linux/include/asm/semaphore.h: In function up:
/usr/src/linux/include/asm/semaphore.h:184: error: expected : or ) before KBUILD_BASENAME
In file included from /usr/src/linux/include/linux/if_ether.h:110,
from /usr/src/linux/include/linux/netdevice.h:29,
from sundance_main.c:177:
/usr/src/linux/include/linux/skbuff.h: In function skb_add_data:
/usr/src/linux/include/linux/skbuff.h:1127: warning: pointer targets in passing argument 1 of csum_partial_copy_from_user differ in signedness
sundance_main.c: In function netdev_open:
sundance_main.c:873: warning: passing argument 2 of request_irq from incompatible pointer type
sundance_main.c: In function tx_timeout:
sundance_main.c:1004: warning: format %08x expects type unsigned int, but argument 3 has type long long unsigned int
sundance_main.c: In function rx_poll:
sundance_main.c:1347: warning: implicit declaration of function pci_dma_sync_single
sundance_main.c: In function netdev_ethtool_ioctl:
sundance_main.c:1600: error: struct pci_dev has no member named slot_name
sundance_main.c: In function netdev_ioctl:
sundance_main.c:1695: warning: format %08x expects type unsigned int, but argument 3 has type long long unsigned int
make: *** [sundance_main.o] Error 1