Re: Error building Tulip driver on Mandrake 9 : 'tulip.c:3249: `NETIF_MSG_RXFILTER' undeclared (first use in this function)'
Donald Becker <[email protected]> Wed, 27 Nov 2002 14:44:31 -0500 (EST)
| Newsgroups | gmane.linux.drivers.tulip.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 27 Nov 2002, Peter McClure wrote:
> More debugging of the source code. It never occurred to me (until now) that
> there might be #if in the header files. Dumb.
>
> >From kern_compat.h
..
> OK. So Mandrake claim to have NETIF_MSG and do - except for the one that we
> need. I added
>
> enum {
> NETIF_MSG_RXFILTER = 0x10000
> };
Version 1.13 and later of kern_compat.h has the following to work around
this problem:
#if !defined(NETIF_MSG_MAX) || NETIF_MSG_MAX < 0x8000
#define NETIF_MSG_MISC 0x8000
#endif
#if !defined(NETIF_MSG_MAX) || NETIF_MSG_MAX < 0x10000
#define NETIF_MSG_RXFILTER 0x10000
#endif
> I then tried to rebuild the module and I get :-
>
> [root@lin133 netdrivers-3.1]# make tulip.o
> gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -I/lib/modules/2.4.1
> 9-16mdksecure/build/include -pipe -fno-strength-reduce -DMODVERSIONS -c -o
> tulip.o tulip.c
> tulip.c: In function `set_rx_mode':
> tulip.c:3291: warning: operation on `setup_frm' may be undefined
These are bogus warnings from the compiler.
We are filling with duplicate values and don't care which order the
assignment is done. Still, the v0.95g version of tulip.c changes the
code to avoid the warning.
Both updates are now at
ftp://ftp.scyld.com/pub/network/netdrivers.tgz
--
Donald Becker [email protected]
Scyld Computing Corporation http://www.scyld.com
410 Severn Ave. Suite 210 Scyld Beowulf cluster system
Annapolis MD 21403 410-990-9993
_______________________________________________
tulip mailing list, [email protected]
To change to digest mode or unsubscribe visit
http://www.scyld.com/mailman/listinfo/tulip