2002-03-11 14:11:49

by Denis Vlasenko

[permalink] [raw]
Subject: [PATCH] Trivial compile fix

ld -m elf_i386 -T /.share/usr/src/linux-2.5.6-pre2/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
/.share/usr/src/linux-2.5.6-pre2/arch/i386/lib/lib.a /.share/usr/src/linux-2.5.6-pre2/lib/lib.a /.share/usr/src/linux-2.5.6-pre2/arch/i386/lib/lib.a \
drivers/base/base.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o drivers/md/mddev.o \
net/network.o \
--end-group \
-o vmlinux
drivers/net/net.o: In function `__cp_set_rx_mode':
drivers/net/net.o(.text+0x15162): undefined reference to `ether_crc'
make: *** [vmlinux] Error 1


--- linux-2.5.6-pre2/drivers/net/8139cp.c.orig Mon Mar 11 13:17:59 2002
+++ linux-2.5.6-pre2/drivers/net/8139cp.c Mon Mar 11 15:44:48 2002
@@ -47,7 +47,6 @@
#define DRV_VERSION "0.0.7"
#define DRV_RELDATE "Feb 27, 2002"

-
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
@@ -59,6 +58,7 @@
#include <linux/mii.h>
#include <asm/io.h>
#include <asm/uaccess.h>
+#include <linux/crc32.h>

/* These identify the driver base version and may not be removed. */
static char version[] __devinitdata =


2002-03-11 20:31:51

by Jeff Garzik

[permalink] [raw]
Subject: Re: [PATCH] Trivial compile fix

Denis Vlasenko wrote:

>--- linux-2.5.6-pre2/drivers/net/8139cp.c.orig Mon Mar 11 13:17:59 2002
>+++ linux-2.5.6-pre2/drivers/net/8139cp.c Mon Mar 11 15:44:48 2002
>@@ -47,7 +47,6 @@
> #define DRV_VERSION "0.0.7"
> #define DRV_RELDATE "Feb 27, 2002"
>
>-
> #include <linux/module.h>
> #include <linux/kernel.h>
> #include <linux/netdevice.h>
>@@ -59,6 +58,7 @@
> #include <linux/mii.h>
> #include <asm/io.h>
> #include <asm/uaccess.h>
>+#include <linux/crc32.h>
>
Please CC the maintainer (me) on such patches. Also, don't remove blank
lines I put in there to make the code look nice... :)

Jeff