lkml.org 
[lkml]   [2002]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
From
SubjectRe: Linux 2.4.20-pre7 - compile fixes
drivers/mtd/devices/ms02-nv.c
=============================
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=ms02_nv -c -o
ms02-nv.o ms02-nv.c
ms02-nv.c:18: asm/addrspace.h: No such file or directory
ms02-nv.c:19: asm/bootinfo.h: No such file or directory
ms02-nv.c:20: asm/dec/ioasic_addrs.h: No such file or directory
ms02-nv.c:21: asm/dec/kn02.h: No such file or directory
ms02-nv.c:22: asm/dec/kn03.h: No such file or directory
ms02-nv.c:24: asm/paccess.h: No such file or directory
ms02-nv.c: In function `ms02nv_probe_one':
ms02-nv.c:100: warning: implicit declaration of function `KSEG1ADDR'
ms02-nv.c:102: warning: implicit declaration of function `get_dbe'
ms02-nv.c: In function `ms02nv_init_one':
ms02-nv.c:91: warning: `ms02nv_magic' might be used uninitialized in
this function
ms02-nv.c: In function `ms02nv_init':
ms02-nv.c:292: `mips_machtype' undeclared (first use in this function)
ms02-nv.c:292: (Each undeclared identifier is reported only once
ms02-nv.c:292: for each function it appears in.)
ms02-nv.c:293: `MACH_DS5000_200' undeclared (first use in this function)
ms02-nv.c:294: `KN02_CSR_ADDR' undeclared (first use in this function)
ms02-nv.c:295: `KN02_CSR_BNK32M' undeclared (first use in this function)
ms02-nv.c:298: `MACH_DS5000_2X0' undeclared (first use in this function)
ms02-nv.c:299: `KN03_MCR_BASE' undeclared (first use in this function)
ms02-nv.c:300: `KN03_MCR_BNK32M' undeclared (first use in this function)
ms02-nv.c:296: warning: unreachable code at beginning of switch
statement
make[3]: *** [ms02-nv.o] Error 1
make[3]: Leaving directory
`/data2/usr/local/src/linux-2.4-pre/drivers/mtd/devices'

This is in i386, this is the wrong arch for this module?
Seems like a bad config.


drivers/net/irda/irtty.c
========================
Same as -pre6, we are missing a generic TIOCM_MODEM_BITS. Needs a
"proper" fix but this gets my build through.


drivers/usb/brlvger.c
=====================
Again, same as -pre6. Old gcc __FUNCTION__ issue.


--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>--- linux/drivers/mtd/devices/Config.in.orig Fri Sep 13 21:23:07 2002
+++ linux/drivers/mtd/devices/Config.in Fri Sep 13 21:24:54 2002
@@ -10,7 +10,9 @@
bool ' PMC551 256M DRAM Bugfix' CONFIG_MTD_PMC551_BUGFIX
bool ' PMC551 Debugging' CONFIG_MTD_PMC551_DEBUG
fi
-dep_tristate ' DEC MS02-NV NVRAM module support' CONFIG_MTD_MS02NV $CONFIG_MTD $CONFIG_DECSTATION
+if [ "$CONFIG_DECSTATION" = "y"]; then
+ dep_tristate ' DEC MS02-NV NVRAM module support' CONFIG_MTD_MS02NV $CONFIG_MTD
+fi
dep_tristate ' Uncached system RAM' CONFIG_MTD_SLRAM $CONFIG_MTD
if [ "$CONFIG_SA1100_LART" = "y" ]; then
dep_tristate ' 28F160xx flash driver for LART' CONFIG_MTD_LART $CONFIG_MTD--- linux/drivers/net/irda/irtty.c.orig Wed Sep 11 08:33:21 2002
+++ linux/drivers/net/irda/irtty.c Wed Sep 11 08:33:59 2002
@@ -758,6 +758,7 @@
struct irtty_cb *self;
struct tty_struct *tty;
mm_segment_t fs;
+#define TIOCM_MODEM_BITS (TIOCM_OUT2 | TIOCM_OUT1)
int arg = TIOCM_MODEM_BITS;

self = (struct irtty_cb *) dev->priv;--- linux/drivers/usb/brlvger.c.orig Thu Aug 29 10:30:50 2002
+++ linux/drivers/usb/brlvger.c Thu Aug 29 10:31:02 2002
@@ -209,7 +209,7 @@
({ printk(KERN_ERR "Voyager: " args); \
printk("\n"); })
#define dbgprint(fmt, args...) \
- ({ printk(KERN_DEBUG "Voyager: %s: " fmt, __FUNCTION__, ##args); \
+ ({ printk(KERN_DEBUG "Voyager: %s: " fmt, __FUNCTION__ , ##args); \
printk("\n"); })
#define dbg(args...) \
({ if(debug >= 1) dbgprint(args); })
\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.060 / U:4.980 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site