2.4.27-pre2: tg3: there's no WARN_ON in 2.4

From: Adrian Bunk
Date: Tue May 04 2004 - 15:47:56 EST


On Mon, May 03, 2004 at 08:09:12PM -0300, Marcelo Tosatti wrote:
>...
> Summary of changes from v2.4.27-pre1 to v2.4.27-pre2
> ============================================
>...
> Jeff Garzik:
> o [TG3]: Dump NIC-specific statistics via ethtool
>...

This causes the following compile error:

<-- snip -->

...
gcc-2.95 -D__KERNEL__ -I/home/bunk/linux/kernel-2.4/linux-2.4.27-pre2-full/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -nostdinc -iwithprefix include -DKBUILD_BASENAME=tg3 -c -o tg3.o tg3.c
tg3.c: In function `tg3_get_strings':
tg3.c:6267: warning: implicit declaration of function `WARN_ON'
...
-o vmlinux
drivers/net/net.o(.text+0x60293): In function `tg3_get_strings':
: undefined reference to `WARN_ON'
make: *** [vmlinux] Error 1

<-- snip -->

There's no WARN_ON in 2.4.

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/