All of lore.kernel.org
 help / color / mirror / Atom feed
From: Caspar Zhang <czhang@redhat.com>
To: LTP list <ltp-list@lists.sourceforge.net>
Cc: Jan Malanik <jmalanik@redhat.com>
Subject: [LTP] [PATCH] add config.h header file in mmap10 test
Date: Wed, 02 Mar 2011 18:13:38 +0800	[thread overview]
Message-ID: <4D6E1852.9050401@redhat.com> (raw)

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

             reply	other threads:[~2011-03-02 10:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-02 10:13 Caspar Zhang [this message]
2011-03-03 17:20 ` [LTP] [PATCH] add config.h header file in mmap10 test Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D6E1852.9050401@redhat.com \
    --to=czhang@redhat.com \
    --cc=jmalanik@redhat.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.