2002-09-30 10:47:35

by Adrian Bunk

[permalink] [raw]
Subject: [-dj patch] fix compilation of eisa.c

Hi Dave,

eisa.c doesn't compile in 2.5.39-dj2:

<-- snip -->

gcc -Wp,-MD,./.eisa.o.d -D__KERNEL__
-I/home/bunk/linux/kernel-2.5/linux-2.5.39-full/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=k6
-I/home/bunk/linux/kernel-2.5/linux-2.5.39-full/arch/i386/mach-generic -nostdinc -iwithprefix
include -DKBUILD_BASENAME=eisa -c -o eisa.o eisa.c
eisa.c:14: parse error before `init_eisa'
make[1]: *** [eisa.o] Error 1
make[1]: Leaving directory `/home/bunk/linux/kernel-2.5/linux-2.5.39-full/arch/i386/kernel'

<-- snip -->

The fix is simple:

--- linux-2.5.39-full/arch/i386/kernel/eisa.c.old 2002-09-30 12:44:55.000000000 +0200
+++ linux-2.5.39-full/arch/i386/kernel/eisa.c 2002-09-30 12:45:48.000000000 +0200
@@ -6,6 +6,7 @@

#include <linux/device.h>
+#include <linux/init.h>
#include <linux/slab.h>
#include <asm/io.h>



You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
Alan Cox