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

From: Marc-Christian Petersen
Date: Tue May 04 2004 - 15:57:55 EST


On Tuesday 04 May 2004 22:46, Adrian Bunk wrote:

Hi Adrian,

> drivers/net/net.o(.text+0x60293): In function `tg3_get_strings':
> : undefined reference to `WARN_ON'
> make: *** [vmlinux] Error 1
> There's no WARN_ON in 2.4.

yep. Either we backport WARN_ON ;) or simply do the attached.

ciao, Marc
--- old/drivers/net/tg3.c 2004-05-04 14:30:22.000000000 +0200
+++ new/drivers/net/tg3.c 2004-05-04 14:49:58.000000000 +0200
@@ -51,6 +51,10 @@
#define TG3_TSO_SUPPORT 0
#endif

+#ifndef WARN_ON
+#define WARN_ON(x) do { } while (0)
+#endif
+
#include "tg3.h"

#define DRV_MODULE_NAME "tg3"