[PATCH] via-rhine.c verion dependancy fix

David (david@kalifornia.com)
Thu, 24 Dec 1998 13:38:03 -0800


hrm. here's the original.

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o via-rhine.o
via-rhine.c
In file included from via-rhine.c:133:
/usr/src/linux/include/linux/bios32.h:11: warning: #warning This driver
uses the old PCI interface, please fix it (see Documentation/pci.txt)
via-rhine.c:950: macro `dev_kfree_skb' used with too many (2) args
[...]

here's the fix-it-quick patch:

--- via-rhine.c.orig Thu Dec 24 13:35:14 1998
+++ via-rhine.c Thu Dec 24 13:34:27 1998
@@ -64,6 +64,7 @@

#define PKT_BUF_SZ 1536 /* Size of each
temporary Rx buffer.*/

+#include <linux/version.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>

-d

-- 
  Look, Windows 98  Buy, lemmings, buy!  MCSE, Must Consult Someone Experienced
__ (c) 1998 David Ford.  Redistribution via the Microsoft Network is prohibited
\/  for linux-kernel: please read linux/Documentation/* before posting problems

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