Hi all, mmap10 test will check the macro "HAVE_MADV_MERGEABLE" to see if the kernel supports MADV_MERGEABLE argument which is available since 2.6.32, however in mmap10.c it didn't include the header file "config.h" which may cause "HAVE_MADV_MERGEABLE" undefined, so that the test will never be executed correctly. This patch is simple enough but do fixing the issue.
Signed-off-by: Caspar Zhang <[email protected]> --- testcases/kernel/syscalls/mmap/mmap10.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/syscalls/mmap/mmap10.c b/testcases/kernel/syscalls/mmap/mmap10.c index 3191580..58d5c9c 100644 --- a/testcases/kernel/syscalls/mmap/mmap10.c +++ b/testcases/kernel/syscalls/mmap/mmap10.c @@ -61,6 +61,7 @@ #include <fcntl.h> #include "test.h" #include "usctest.h" +#include "config.h" #define SIZE (5*1024*1024) -- 1.7.4.1 -- Quality Engineer (Kernel) in Red Hat Software (Beijing) Co., R&D Branch http://www.cn.redhat.com/ TEL: +86-10-62608150
From 4a396ad6d8886ee7a01a92198ef5e993303ee607 Mon Sep 17 00:00:00 2001 From: Caspar Zhang <[email protected]> Date: Wed, 2 Mar 2011 18:06:10 +0800 Subject: [PATCH] add config.h header file in mmap10 test Hi all, mmap10 test will check the macro "HAVE_MADV_MERGEABLE" to see if the kernel supports MADV_MERGEABLE argument which is available since 2.6.32, however in mmap10.c it didn't include the header file "config.h" which may cause "HAVE_MADV_MERGEABLE" undefined, so that the test will never be executed correctly. This patch is simple enough but do fixing the issue. Signed-off-by: Caspar Zhang <[email protected]> --- testcases/kernel/syscalls/mmap/mmap10.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/syscalls/mmap/mmap10.c b/testcases/kernel/syscalls/mmap/mmap10.c index 3191580..58d5c9c 100644 --- a/testcases/kernel/syscalls/mmap/mmap10.c +++ b/testcases/kernel/syscalls/mmap/mmap10.c @@ -61,6 +61,7 @@ #include <fcntl.h> #include "test.h" #include "usctest.h" +#include "config.h" #define SIZE (5*1024*1024) -- 1.7.4.1
------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
