All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] add config.h header file in mmap10 test
@ 2011-03-02 10:13 Caspar Zhang
  2011-03-03 17:20 ` Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Caspar Zhang @ 2011-03-02 10:13 UTC (permalink / raw)
  To: LTP list; +Cc: Jan Malanik

[-- Attachment #1: Type: text/plain, Size: 1006 bytes --]

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 <czhang@redhat.com>
---
 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

[-- Attachment #2: 0001-add-config.h-header-file-in-mmap10-test.patch --]
[-- Type: text/plain, Size: 1089 bytes --]

From 4a396ad6d8886ee7a01a92198ef5e993303ee607 Mon Sep 17 00:00:00 2001
From: Caspar Zhang <czhang@redhat.com>
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 <czhang@redhat.com>
---
 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


[-- Attachment #3: Type: text/plain, Size: 429 bytes --]

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

[-- Attachment #4: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH] add config.h header file in mmap10 test
  2011-03-02 10:13 [LTP] [PATCH] add config.h header file in mmap10 test Caspar Zhang
@ 2011-03-03 17:20 ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2011-03-03 17:20 UTC (permalink / raw)
  To: Caspar Zhang; +Cc: LTP list, Jan Malanik

Hi!

Commited.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-03 17:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02 10:13 [LTP] [PATCH] add config.h header file in mmap10 test Caspar Zhang
2011-03-03 17:20 ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.