From: <rw...@ea...> - 2001-11-09 02:07:27
|
There are some warnings during the compile of the four tests in ltp-20011107/testcases/kernel/syscalls/mremap. Here is a snippet of the make output: make[4]: Entering directory `/usr/src/sources/l/ltp-20011107/testcases/kernel/syscalls/mremap' cc -o mremap01 mremap01.c -I../../../../include -L../../../../lib -lltp In file included from /usr/include/linux/mman.h:4, from mremap01.c:72: /usr/include/asm/mman.h:28: warning: `MADV_NORMAL' redefined /usr/include/bits/mman.h:79: warning: this is the location of the previous definition /usr/include/asm/mman.h:29: warning: `MADV_RANDOM' redefined /usr/include/bits/mman.h:80: warning: this is the location of the previous definition /usr/include/asm/mman.h:30: warning: `MADV_SEQUENTIAL' redefined /usr/include/bits/mman.h:81: warning: this is the location of the previous definition /usr/include/asm/mman.h:31: warning: `MADV_WILLNEED' redefined /usr/include/bits/mman.h:82: warning: this is the location of the previous definition /usr/include/asm/mman.h:32: warning: `MADV_DONTNEED' redefined /usr/include/bits/mman.h:83: warning: this is the location of the previous definition To eliminate warnings: Update ltp-20011107/testcases/kernel/syscalls/mremap/Makefile with define for MREMAP_MAYMOVE. This is what I used: CFLAGS+= -I../../../../include -DMREMAP_MAYMOVE Then in mremap0[1-4].c remove this line: #include <linux/mman.h> -- Randy Hron |