Re: Linux 2.4.20-rc4-ac1

From: Adrian Bunk (bunk@fs.tum.de)
Date: Wed Nov 27 2002 - 19:21:47 EST


I get the following compile error:

<-- snip -->

...
gcc -D__KERNEL__ -I/home/bunk/linux/kernel-2.4/linux-2.4.19-full-ac/include -Wal
l -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -pipe -mpreferred-stack-boundary=2 -march=k6 -I. -nostdinc -iwithprefix
include -DKBUILD_BASENAME=mptlan -c -o mptlan.o mptlan.c
In file included from mptlan.c:75:
mptlan.h:23: parse error
mptlan.h:26: linux/workqueue.h: No such file or directory
make[3]: *** [mptlan.o] Error 1
make[3]: Leaving directory
`/home/bunk/linux/kernel-2.4/linux-2.4.19-full-ac/drivers/message/fusion'

<-- snip -->

The fix is simple:

--- linux-2.4.19-full-ac/drivers/message/fusion/mptlan.h.old 2002-11-28 01:17:01.000000000 +0100
+++ linux-2.4.19-full-ac/drivers/message/fusion/mptlan.h 2002-11-28 01:17:28.000000000 +0100
@@ -20,6 +20,7 @@
 #include <linux/slab.h>
 #include <linux/miscdevice.h>
 #include <linux/spinlock.h>
+#include <linux/version.h>
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,41)
 #include <linux/tqueue.h>
 #else

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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 30 2002 - 22:00:18 EST