Re: pre-2.3.26-1 & 2 PAGE_CACHE_SHIFT undeclared
Jeff Garzik (email@example.com)
Fri, 05 Nov 1999 14:19:50 -0500
Sid Boyce wrote:
> I gave up on 2.3.25 as none of the patches posted to this list would
> apply to a clean kernel and due to what seemed to be a muddle about
> them. More of the same here ?
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce
> -DCPU=586 -march=i586 -DEXPORT_SYMTAB -c fbmem.c
> fbmem.c: In function `fb_mmap':
> fbmem.c:530: `PAGE_CACHE_SHIFT' undeclared (first use in this function)
> fbmem.c:530: (Each undeclared identifier is reported only once
> fbmem.c:530: for each function it appears in.)
> make: *** [fbmem.o] Error 1
> make: Leaving directory `/usr/src/linux/drivers/video'
It needs to #include <linux/pagemap.h> at the top of the file. I've a
patch floating towards Geert for this...
Jeff Garzik | Just once, I wish we would encounter
Building 1024 | an alien menace that wasn't immune to
MandrakeSoft, Inc. | bullets. -- The Brigadier, "Dr. Who"
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
Please read the FAQ at http://www.tux.org/lkml/