2.3.99-pre1 compile problem: sparc mm/filemap.c

From: Michael Gerdts (gerdts@cae.wisc.edu)
Date: Wed Mar 15 2000 - 13:57:39 EST


If there is a specific forum that I should be addressing for sparc issues,
I would happily direct my comments there. Please just point me to it.

On a Sparc 20 I am getting the following errors in mm/filemap.c:

make[2]: Entering directory `/usr/src/stripe/linux/mm'
gcc -D__KERNEL__ -I/usr/src/stripe/linux/include -D__SMP__ -Wall -Wstrict-protot
ypes -O2 -fomit-frame-pointer -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
-fno-strict-aliasing -c -o filemap.o filemap.c
filemap.c: In function `setup_read_behavior':
filemap.c:1799: `MADV_SEQUENTIAL' undeclared (first use in this function)
filemap.c:1799: (Each undeclared identifier is reported only once
filemap.c:1799: for each function it appears in.)
filemap.c:1802: `MADV_RANDOM' undeclared (first use in this function)
filemap.c:1800: warning: unreachable code at beginning of switch statement
filemap.c: In function `madvise_vma':
filemap.c:2021: `MADV_NORMAL' undeclared (first use in this function)
filemap.c:2022: `MADV_SEQUENTIAL' undeclared (first use in this function)
filemap.c:2023: `MADV_RANDOM' undeclared (first use in this function)
filemap.c:2027: `MADV_WILLNEED' undeclared (first use in this function)
filemap.c:2031: `MADV_DONTNEED' undeclared (first use in this function)
filemap.c:2024: warning: unreachable code at beginning of switch statement
filemap.c: In function `page_cache_init':
filemap.c:2529: warning: long int format, int arg (arg 4)

In include/asm-i386/mman.h there is:

#define MADV_NORMAL 0x0 /* default page-in behavior */
#define MADV_RANDOM 0x1 /* page-in minimum required */
#define MADV_SEQUENTIAL 0x2 /* read-ahead aggressively */
#define MADV_WILLNEED 0x3 /* pre-fault pages */
#define MADV_DONTNEED 0x4 /* discard these pages */

Shoud a similar block be added to include/asm-sparc/mman.h? What about
other architectures (it looks as though i386 is the only one to have it so
far)?

Mike

-- 
Mike Gerdts
UNIX Systems Administrator
Computer-Aided Engineering Center
University of Wisconsin - Madison

- 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/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:17 EST