# make
gcc -DMODULE -D__KERNEL__ -O2 -Wall -Wstrict-prototypes -c tc902x.c -o tc902x.o
In file included from tc902x.h:102,
from tc902x.c:106:
/usr/include/linux/version.h:2:2: error: #error "======================================================="
/usr/include/linux/version.h:3:2: error: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: error: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: error: #error ""
/usr/include/linux/version.h:6:2: error: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: error: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: error: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: error: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: error: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: error: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: error: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: error: #error ""
/usr/include/linux/version.h:14:2: error: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: error: #error ""
/usr/include/linux/version.h:16:2: error: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: error: #error ""
/usr/include/linux/version.h:18:2: error: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: error: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: error: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: error: #error ""
/usr/include/linux/version.h:22:2: error: #error " o Configure kernel sources:"
/usr/include/linux/version.h:23:2: error: #error " - cd /usr/src/linux"
/usr/include/linux/version.h:24:2: error: #error " - make mrproper"
/usr/include/linux/version.h:25:2: error: #error " - make cloneconfig"
/usr/include/linux/version.h:26:2: error: #error " - make dep"
/usr/include/linux/version.h:27:2: error: #error ""
/usr/include/linux/version.h:28:2: error: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:29:2: error: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:30:2: error: #error ""
/usr/include/linux/version.h:31:2: error: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:32:2: error: #error ""
/usr/include/linux/version.h:33:2: error: #error " instead of"
/usr/include/linux/version.h:34:2: error: #error ""
/usr/include/linux/version.h:35:2: error: #error " -I/usr/include/linux"
/usr/include/linux/version.h:36:2: error: #error ""
/usr/include/linux/version.h:37:2: error: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:38:2: error: #error "======================================================="
In file included from /usr/include/asm/percpu.h:4,
from /usr/include/asm/processor.h:24,
from /usr/include/asm/thread_info.h:17,
from /usr/include/linux/thread_info.h:21,
from /usr/include/linux/preempt.h:10,
from /usr/include/linux/spinlock.h:52,
from /usr/include/linux/capability.h:45,
from /usr/include/linux/sched.h:7,
from /usr/include/linux/module.h:10,
from tc902x.h:103,
from tc902x.c:106:
/usr/include/asm-generic/percpu.h:8: error: ‘CONFIG_NR_CPUS’ undeclared here (not in a function)
In file included from /usr/include/linux/sched.h:12,
from /usr/include/linux/module.h:10,
from tc902x.h:103,
from tc902x.c:106:
/usr/include/linux/jiffies.h:33:3: error: #error You lose.
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:204:31: error: division by zero in #if
/usr/include/linux/jiffies.h:248:46: error: division by zero in #if
In file included from /usr/include/linux/sched.h:12,
from /usr/include/linux/module.h:10,
from tc902x.h:103,
from tc902x.c:106:
/usr/include/linux/jiffies.h: In function ‘jiffies_to_msecs’:
/usr/include/linux/jiffies.h:253: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/usr/include/linux/jiffies.h:253: error: (Each undeclared identifier is reported only once
/usr/include/linux/jiffies.h:253: error: for each function it appears in.)
/usr/include/linux/jiffies.h:259:46: error: division by zero in #if
/usr/include/linux/jiffies.h: In function ‘jiffies_to_usecs’:
/usr/include/linux/jiffies.h:264: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/usr/include/linux/jiffies.h:272:46: error: division by zero in #if
/usr/include/linux/jiffies.h: In function ‘msecs_to_jiffies’:
/usr/include/linux/jiffies.h:277: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/usr/include/linux/jiffies.h:285:46: error: division by zero in #if
/usr/include/linux/jiffies.h: In function ‘usecs_to_jiffies’:
/usr/include/linux/jiffies.h:290: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/usr/include/linux/jiffies.h: In function ‘timespec_to_jiffies’:
/usr/include/linux/jiffies.h:309: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/usr/include/linux/jiffies.h:315: error: ‘SHIFT_HZ’ undeclared (first use in this function)
/usr/include/linux/jiffies.h: In function ‘jiffies_to_timespec’:
/usr/include/linux/jiffies.h:328: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/usr/include/linux/jiffies.h: In function ‘timeval_to_jiffies’:
/usr/include/linux/jiffies.h:350: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/usr/include/linux/jiffies.h:354: error: ‘SHIFT_HZ’ undeclared (first use in this function)
/usr/include/linux/jiffies.h: In function ‘jiffies_to_timeval’:
/usr/include/linux/jiffies.h:366: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h:379:6: error: division by zero in #if
/usr/include/linux/jiffies.h: In function ‘jiffies_to_clock_t’:
/usr/include/linux/jiffies.h:380: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/usr/include/linux/jiffies.h: In function ‘clock_t_to_jiffies’:
/usr/include/linux/jiffies.h:391: error: ‘CONFIG_HZ’ undeclared (first use in this function)
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h:410:6: error: division by zero in #if
/usr/include/linux/jiffies.h: In function ‘jiffies_64_to_clock_t’:
/usr/include/linux/jiffies.h:411: error: ‘CONFIG_HZ’ undeclared (first use in this function)
In file included from /usr/include/linux/list.h:7,
from /usr/include/linux/wait.h:23,
from /usr/include/asm/semaphore.h:41,
from /usr/include/linux/sched.h:20,
from /usr/include/linux/module.h:10,
from tc902x.h:103,
from tc902x.c:106:
/usr/include/linux/prefetch.h: In function ‘prefetch_range’:
/usr/include/linux/prefetch.h:64: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared (first use in this function)
In file included from /usr/include/linux/rwsem.h:27,
from /usr/include/asm/semaphore.h:42,
from /usr/include/linux/sched.h:20,
from /usr/include/linux/module.h:10,
from tc902x.h:103,
from tc902x.c:106:
/usr/include/asm/rwsem.h: In function ‘__down_read’:
/usr/include/asm/rwsem.h:105: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’
/usr/include/asm/rwsem.h: In function ‘__down_write’:
/usr/include/asm/rwsem.h:157: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’
/usr/include/asm/rwsem.h: In function ‘__up_read’:
/usr/include/asm/rwsem.h:194: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’
/usr/include/asm/rwsem.h: In function ‘__up_write’:
/usr/include/asm/rwsem.h:220: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’
/usr/include/asm/rwsem.h: In function ‘__downgrade_write’:
/usr/include/asm/rwsem.h:245: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’
In file included from /usr/include/linux/sched.h:20,
from /usr/include/linux/module.h:10,
from tc902x.h:103,
from tc902x.c:106:
/usr/include/asm/semaphore.h: In function ‘down’:
/usr/include/asm/semaphore.h:105: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’
/usr/include/asm/semaphore.h: In function ‘down_interruptible’:
/usr/include/asm/semaphore.h:130: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’
/usr/include/asm/semaphore.h: In function ‘down_trylock’:
/usr/include/asm/semaphore.h:155: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’
/usr/include/asm/semaphore.h: In function ‘up’:
/usr/include/asm/semaphore.h:179: error: expected ‘:’ or ‘)’ before ‘KBUILD_BASENAME’
In file included from /usr/include/linux/gfp.h:4,
from /usr/include/linux/slab.h:15,
from /usr/include/linux/percpu.h:5,
from /usr/include/linux/sched.h:34,
from /usr/include/linux/module.h:10,
from tc902x.h:103,
from tc902x.c:106:
/usr/include/linux/mmzone.h: At top level:
/usr/include/linux/mmzone.h:41: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function)
/usr/include/linux/mmzone.h:41: error: requested alignment is not a constant
/usr/include/linux/mmzone.h:64: error: requested alignment is not a constant
/usr/include/linux/mmzone.h:249: error: requested alignment is not a constant
In file included from /usr/include/linux/sched.h:37,
from /usr/include/linux/module.h:10,
from tc902x.h:103,
from tc902x.c:106:
/usr/include/linux/rcupdate.h:69: error: requested alignment is not a constant
/usr/include/linux/rcupdate.h:72: error: requested alignment is not a constant
In file included from /usr/include/linux/module.h:23,
from tc902x.h:103,
from tc902x.c:106:
/usr/include/asm/module.h:62:2: error: #error unknown processor family
In file included from tc902x.c:106:
tc902x.h:105:42: error: missing binary operator before token "("
In file included from /usr/include/asm/fixmap.h:27,
from /usr/include/asm/pgtable.h:17,
from /usr/include/linux/mm.h:38,
from /usr/include/asm/pci.h:7,
from /usr/include/linux/pci.h:650,
from tc902x.h:110,
from tc902x.c:106:
/usr/include/asm/acpi.h:31:28: error: acpi/pdc_intel.h: No such file or directory
In file included from /usr/include/asm/pci.h:7,
from /usr/include/linux/pci.h:650,
from tc902x.h:110,
from tc902x.c:106:
/usr/include/linux/mm.h: In function ‘lowmem_page_address’:
/usr/include/linux/mm.h:517: error: ‘CONFIG_PAGE_OFFSET’ undeclared (first use in this function)
In file included from /usr/include/asm/pci.h:42,
from /usr/include/linux/pci.h:650,
from tc902x.h:110,
from tc902x.c:106:
/usr/include/asm/io.h: In function ‘virt_to_phys’:
/usr/include/asm/io.h:78: error: ‘CONFIG_PAGE_OFFSET’ undeclared (first use in this function)
/usr/include/asm/io.h: In function ‘phys_to_virt’:
/usr/include/asm/io.h:96: error: ‘CONFIG_PAGE_OFFSET’ undeclared (first use in this function)
In file included from /usr/include/linux/if_ether.h:110,
from /usr/include/linux/netdevice.h:29,
from tc902x.h:116,
from tc902x.c:106:
/usr/include/linux/skbuff.h:31:26: error: net/checksum.h: No such file or directory
In file included from tc902x.h:116,
from tc902x.c:106:
/usr/include/linux/netdevice.h: At top level:
/usr/include/linux/netdevice.h:374: error: requested alignment is not a constant
/usr/include/linux/netdevice.h:391: error: requested alignment is not a constant
/usr/include/linux/netdevice.h:405: error: requested alignment is not a constant
/usr/include/linux/netdevice.h:423: error: requested alignment is not a constant
In file included from /usr/include/linux/irq.h:22,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/hardirq.h:7,
from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:534,
from tc902x.h:116,
from tc902x.c:106:
/usr/include/asm/irq.h:16:25: error: irq_vectors.h: No such file or directory
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/hardirq.h:7,
from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:534,
from tc902x.h:116,
from tc902x.c:106:
/usr/include/linux/irq.h:83: error: requested alignment is not a constant
/usr/include/linux/irq.h:85: error: ‘NR_IRQS’ undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:94,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/hardirq.h:7,
from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:534,
from tc902x.h:116,
from tc902x.c:106:
/usr/include/asm/hw_irq.h:30: error: ‘NR_IRQ_VECTORS’ undeclared here (not in a function)
In file included from /usr/include/linux/hardirq.h:7,
from /usr/include/linux/interrupt.h:11,
from /usr/include/linux/netdevice.h:534,
from tc902x.h:116,
from tc902x.c:106:
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from tc902x.c:106:
tc902x.h:126:42: error: missing binary operator before token "("
tc902x.h:130:61: error: missing binary operator before token "("
tc902x.h:135:41: error: missing binary operator before token "("
tc902x.c: In function ‘read_phy_register’:
tc902x.c:289: warning: passing argument 1 of ‘readb’ makes pointer from integer without a cast
tc902x.c:316: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c:322: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c:335: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c:356: warning: passing argument 1 of ‘readb’ makes pointer from integer without a cast
tc902x.c:360: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c: In function ‘write_phy_register’:
tc902x.c:421: warning: passing argument 1 of ‘readb’ makes pointer from integer without a cast
tc902x.c:448: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c:454: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c:466: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c:471: warning: passing argument 1 of ‘readb’ makes pointer from integer without a cast
tc902x.c:475: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c: In function ‘tc902x_reset’:
tc902x.c:494: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:494: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:503: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c: In function ‘tc902x_config_autoneg’:
tc902x.c:541: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:665: warning: passing argument 1 of ‘readb’ makes pointer from integer without a cast
tc902x.c:886: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:886: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:892: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:892: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:897: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:897: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:904: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:904: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:909: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:909: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:919: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:919: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c: In function ‘tc902x_io_config’:
tc902x.c:948: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:980: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:986: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:991: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast
tc902x.c:992: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast
tc902x.c:993: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:994: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:1001: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c:1002: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c:1004: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c:1006: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c:1008: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c:1010: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c:1012: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast
tc902x.c:1013: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast
tc902x.c:1023: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast
tc902x.c:1024: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast
tc902x.c:1027: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:1027: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast
tc902x.c:1031: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:1034: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:1037: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c: In function ‘tc902x_interrupt_handler’:
tc902x.c:1103: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:1205: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast
tc902x.c: In function ‘tc902x_nic_txcleanup’:
tc902x.c:1257: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:1286: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:1286: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:1295: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:1295: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:1318: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:1318: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c: In function ‘tc902x_nic_open’:
tc902x.c:1470: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:1491: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast
tc902x.c:1500: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
tc902x.c:1582: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:1584: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:1586: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:1588: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:1590: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:1592: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:1615: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:1615: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:1629: error: ‘MOD_INC_USE_COUNT’ undeclared (first use in this function)
tc902x.c: In function ‘init_rfdlist’:
tc902x.c:1679: error: missing terminating " character
tc902x.c:1680: error: expected ‘)’ before ‘RFD’
tc902x.c:1680: error: stray ‘\’ in program
tc902x.c:1680: error: missing terminating " character
tc902x.c:1713: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:1714: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c: In function ‘init_tfdlist’:
tc902x.c:1766: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:1767: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c: In function ‘tc902x_get_rxbuff’:
tc902x.c:1826: warning: integer constant is too large for ‘long’ type
tc902x.c: In function ‘tc902x_nic_stop’:
tc902x.c:1848: error: ‘MOD_DEC_USE_COUNT’ undeclared (first use in this function)
tc902x.c:1851: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:1851: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c: In function ‘tc902x_nic_hard_start_xmit’:
tc902x.c:2065: warning: integer constant is too large for ‘long’ type
tc902x.c:2087: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c: In function ‘tc902x_nic_rx’:
tc902x.c:2135: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:2135: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c: In function ‘tc902x_nic_get_stats’:
tc902x.c:2402: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:2403: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:2404: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:2405: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:2406: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:2409: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:2410: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:2411: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:2412: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:2414: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:2415: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:2416: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:2418: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:2424: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:2425: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:2426: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:2429: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c: In function ‘tc902x_nic_set_multicast_list’:
tc902x.c:2544: warning: passing argument 2 of ‘set_bit’ from incompatible pointer type
tc902x.c:2550: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:2551: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c:2553: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c: In function ‘tc902x_nic_init’:
tc902x.c:2602: warning: implicit declaration of function ‘init_etherdev’
tc902x.c:2603: warning: assignment makes pointer from integer without a cast
tc902x.c: In function ‘tc902x_nic_do_ioctl’:
tc902x.c:2697: warning: dereferencing type-punned pointer will break strict-aliasing rules
tc902x.c:2709: warning: passing argument 1 of ‘readb’ makes pointer from integer without a cast
tc902x.c:2713: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast
tc902x.c:2717: warning: passing argument 1 of ‘readl’ makes pointer from integer without a cast
tc902x.c:2729: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast
tc902x.c:2733: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast
tc902x.c:2737: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast
tc902x.c: In function ‘init_module’:
tc902x.c:3135: error: ‘EXPORT_NO_SYMBOLS’ undeclared (first use in this function)
tc902x.c:3126: warning: unused variable ‘foundtc902xnic’
tc902x.c: In function ‘virt_to_phys’:
/usr/include/asm/io.h:79: warning: control reaches end of non-void function
make: *** [tc902x.o] Error 1