Re: Compile error in 2.3.15pre2

Lukasz Trabinski (lukasz@lt.wsisiz.edu.pl)
Sun, 22 Aug 1999 12:56:55 +0200 (CEST)


Rich Baum wrote:
>
> I get the following error when running make modules.
>
> make[2]: Entering directory `/usr/src/linux-2.3.14/drivers/video'
> gcc -D__KERNEL__ -I/usr/src/linux-2.3.14/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DCPU=486 -march=i486 -DMODULE -c -o clgenfb.o clgenfb.c
> clgenfb.c: In function `get_pci_addrs':
> clgenfb.c:2365: `IORESOURCE_IOPORT' undeclared (first use in this function)
> clgenfb.c:2365: (Each undeclared identifier is reported only once
> clgenfb.c:2365: for each function it appears in.)
> make[2]: *** [clgenfb.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.3.14/drivers/video'
> make[1]: *** [_modsubdir_video] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.3.14/drivers'
> make: *** [_mod_drivers] Error 2
>

In /usr/src/linux/drivers/video/ try this:

--- atyfb.c~ Sun Aug 22 01:46:23 1999
+++ atyfb.c Sun Aug 22 02:02:57 1999
@@ -2869,7 +2869,7 @@
memset(info, 0, sizeof(struct fb_info_aty));

rp = &pdev->resource[0];
- if (rp->flags & IORESOURCE_IOPORT)
+ if (rp->flags & IORESOURCE_IO)
rp = &pdev->resource[1];
addr = rp->start;
if (!addr)
@@ -2912,7 +2912,7 @@

base = rp->start;

- io = (rp->flags & IORESOURCE_IOPORT);
+ io = (rp->flags & IORESOURCE_IO);

size = rp->end - base + 1;

_[ Łukasz Tr±biński ]_
PgP Key: finger:lukasz@oceanic.wsisiz.edu.pl, SysAdmin @wsisiz.edu.pl

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/