[netdrivers] 3c515 on SuSE8.2 - 2.4.20 kernel
Kaj Kandler
KajKandler@yahoo.com
Fri Nov 21 10:17:02 2003
Hi there,
foregive me if I'm in the wrong list, but I try to compile the 3c515.c
driver in the 2.4.20 kernel (SuSE 8.2 stock except a patch in USB
code).
But I get the following compiler errors. Any idea what to do about it?
Thanks
K<o>
p.s.: please CC me on any reply
---------------
ns:/usr/src/linux # gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes
-I/lib/modules/`uname -r`/build/include -O6 -c drivers/net/3c515.c
In file included from drivers/net/3c515.c:112:
/lib/modules/2.4.20-1/build/include/linux/malloc.h:4:2: warning:
#warning linux/malloc.h is deprecated, use linux/slab.h instead.
In file included from
/lib/modules/2.4.20-1/build/include/linux/tqueue.h:19,
from
/lib/modules/2.4.20-1/build/include/linux/aio.h:4,
from
/lib/modules/2.4.20-1/build/include/linux/fs.h:201,
from
/lib/modules/2.4.20-1/build/include/linux/capability.h:17,
from
/lib/modules/2.4.20-1/build/include/linux/binfmts.h:5,
from
/lib/modules/2.4.20-1/build/include/linux/sched.h:10,
from /lib/modules/2.4.20-1/build/include/linux/mm.h:4,
from
/lib/modules/2.4.20-1/build/include/linux/slab.h:14,
from
/lib/modules/2.4.20-1/build/include/linux/malloc.h:6,
from drivers/net/3c515.c:112:
/lib/modules/2.4.20-1/build/include/asm/system.h: In function
`__set_64bit_var':
/lib/modules/2.4.20-1/build/include/asm/system.h:189: warning:
dereferencing type-punned pointer will break strict-aliasing rules
/lib/modules/2.4.20-1/build/include/asm/system.h:189: warning:
dereferencing type-punned pointer will break strict-aliasing rules
In file included from
/lib/modules/2.4.20-1/build/include/linux/netdevice.h:147,
from drivers/net/3c515.c:115:
/lib/modules/2.4.20-1/build/include/linux/skbuff.h: In function
`__pskb_pull':
/lib/modules/2.4.20-1/build/include/linux/skbuff.h:856: warning:
comparison between signed and unsigned
/lib/modules/2.4.20-1/build/include/linux/skbuff.h: In function
`pskb_may_pull':
/lib/modules/2.4.20-1/build/include/linux/skbuff.h:872: warning:
comparison between signed and unsigned
drivers/net/3c515.c: At top level:
drivers/net/3c515.c:353: error: field `stats' has incomplete type
drivers/net/3c515.c: In function `vortex_scan':
drivers/net/3c515.c:477: warning: signed and unsigned type in
conditional expression
drivers/net/3c515.c: In function `vortex_found_device':
drivers/net/3c515.c:504: error: incompatible types in assignment
drivers/net/3c515.c:520: error: `find_cnt' undeclared (first use in
this function)
drivers/net/3c515.c:520: error: (Each undeclared identifier is reported
only once
drivers/net/3c515.c:520: error: for each function it appears in.)
drivers/net/3c515.c:492: warning: unused variable `priv_mem'
drivers/net/3c515.c: In function `vortex_probe1':
drivers/net/3c515.c:641: warning: assignment from incompatible pointer
type
drivers/net/3c515.c: In function `vortex_open':
drivers/net/3c515.c:671: error: `XCVR_100baseTx' undeclared (first use
in this function)
drivers/net/3c515.c:793: error: structure has no member named `tbusy'
drivers/net/3c515.c:794: error: structure has no member named
`interrupt'
drivers/net/3c515.c:795: error: structure has no member named `start'
drivers/net/3c515.c: In function `vortex_start_xmit':
drivers/net/3c515.c:897: error: structure has no member named `tbusy'
drivers/net/3c515.c:938: error: structure has no member named `tbusy'
drivers/net/3c515.c:987: error: structure has no member named `tbusy'
drivers/net/3c515.c:1007: error: structure has no member named `tbusy'
drivers/net/3c515.c: In function `vortex_interrupt':
drivers/net/3c515.c:1062: error: structure has no member named
`interrupt'
drivers/net/3c515.c:1064: error: structure has no member named
`interrupt'
drivers/net/3c515.c:1080: error: structure has no member named `start'
drivers/net/3c515.c:1097: error: structure has no member named `tbusy'
drivers/net/3c515.c:1098: error: `NET_BH' undeclared (first use in this
function)
drivers/net/3c515.c:1120: error: structure has no member named `tbusy'
drivers/net/3c515.c:1127: error: structure has no member named `tbusy'
drivers/net/3c515.c:1133: warning: implicit declaration of function
`boomerang_rx'
drivers/net/3c515.c:1200: error: structure has no member named
`interrupt'
drivers/net/3c515.c: In function `vortex_close':
drivers/net/3c515.c:1271: error: structure has no member named `start'
drivers/net/3c515.c:1272: error: structure has no member named `tbusy'
drivers/net/3c515.c: In function `vortex_get_stats':
drivers/net/3c515.c:1310: error: structure has no member named `start'
drivers/net/3c515.c: In function `vortex_open':
drivers/net/3c515.c:1410: error: parse error at end of input
drivers/net/3c515.c:50: warning: `rx_copybreak' defined but not used
drivers/net/3c515.c:52: warning: `mtu' defined but not used
drivers/net/3c515.c:396: warning: `vortex_timer' declared `static' but
never defined
drivers/net/3c515.c:397: warning: `vortex_start_xmit' declared `static'
but never defined
drivers/net/3c515.c:398: warning: `vortex_rx' declared `static' but
never defined
drivers/net/3c515.c:399: warning: `vortex_interrupt' declared `static'
but never defined
drivers/net/3c515.c:400: warning: `vortex_close' declared `static' but
never defined
drivers/net/3c515.c:401: warning: `update_stats' declared `static' but
never defined
drivers/net/3c515.c:402: warning: `vortex_get_stats' declared `static'
but never defined
drivers/net/3c515.c:403: warning: `set_rx_mode' declared `static' but
never defined
=====
KajKandler@Yahoo.com
Conficio - www.conficio.com
P.O.Box 1062, Melrose, MA 02176
Tel: +1 (781) 632 5773