Re: Linux 2.4.23-pre5: airo.c does not build

From: Eyal Lebedinsky
Date: Sun Sep 21 2003 - 17:40:13 EST


gcc -D__KERNEL__ -I/data2/usr/local/src/linux-2.4-pre/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4 -DMODULE -DMODVERSIONS -include
/data2/usr/local/src/linux-2.4-pre/include/linux/modversions.h
-nostdinc -iwithprefix include -DKBUILD_BASENAME=airo -DEXPORT_SYMTAB
-c airo.c
airo.c:207: redefinition of `PDE'
/data2/usr/local/src/linux-2.4-pre/include/linux/proc_fs.h:213: `PDE'
previously defined here
make[3]: *** [airo.o] Error 1
make[3]: Leaving directory
`/data2/usr/local/src/linux-2.4-pre/drivers/net/wireless'

--
Eyal Lebedinsky (eyal@xxxxxxxxxxxxxx) <http://samba.org/eyal/>--- linux/drivers/net/wireless/airo.c.orig Mon Sep 22 08:27:31 2003
+++ linux/drivers/net/wireless/airo.c Mon Sep 22 08:32:18 2003
@@ -202,7 +202,7 @@
#ifndef RUN_AT
#define RUN_AT(x) (jiffies+(x))
#endif
-#if LINUX_VERSION_CODE < 0x020500
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,23)
static inline struct proc_dir_entry *PDE(const struct inode *inode)
{
return inode->u.generic_ip;