All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] ltp/numa: Fix compilation without MAP_HUGETLB
@ 2017-05-31 10:35 Xiao Yang
  2017-06-02  1:33 ` Xiao Yang
  0 siblings, 1 reply; 3+ messages in thread
From: Xiao Yang @ 2017-05-31 10:35 UTC (permalink / raw)
  To: ltp

Compilation failed on some older distributions due to undefined
MAP_HUGETLB, so we include lapi/mmap.h to fix it.

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
 testcases/kernel/numa/support_numa.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/numa/support_numa.c b/testcases/kernel/numa/support_numa.c
index b6aa8bd..4904cc5 100644
--- a/testcases/kernel/numa/support_numa.c
+++ b/testcases/kernel/numa/support_numa.c
@@ -39,6 +39,7 @@
 #include <sys/stat.h>
 #include <sys/mman.h>
 #include <fcntl.h>
+#include "lapi/mmap.h"
 
 /* Global Variables */
 #define MB (1<<20)
-- 
1.8.3.1




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

* [LTP] [PATCH] ltp/numa: Fix compilation without MAP_HUGETLB
  2017-05-31 10:35 [LTP] [PATCH] ltp/numa: Fix compilation without MAP_HUGETLB Xiao Yang
@ 2017-06-02  1:33 ` Xiao Yang
  2017-06-02 11:31   ` Jan Stancek
  0 siblings, 1 reply; 3+ messages in thread
From: Xiao Yang @ 2017-06-02  1:33 UTC (permalink / raw)
  To: ltp

Hi Cyril, Jan

Ping. :-)

Compilation failed on RHEL5.11GA.

Thanks,
Xiao Yang

On 2017/05/31 18:35, Xiao Yang wrote:
> Compilation failed on some older distributions due to undefined
> MAP_HUGETLB, so we include lapi/mmap.h to fix it.
>
> Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
> ---
>  testcases/kernel/numa/support_numa.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/testcases/kernel/numa/support_numa.c b/testcases/kernel/numa/support_numa.c
> index b6aa8bd..4904cc5 100644
> --- a/testcases/kernel/numa/support_numa.c
> +++ b/testcases/kernel/numa/support_numa.c
> @@ -39,6 +39,7 @@
>  #include <sys/stat.h>
>  #include <sys/mman.h>
>  #include <fcntl.h>
> +#include "lapi/mmap.h"
>  
>  /* Global Variables */
>  #define MB (1<<20)




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

* [LTP] [PATCH] ltp/numa: Fix compilation without MAP_HUGETLB
  2017-06-02  1:33 ` Xiao Yang
@ 2017-06-02 11:31   ` Jan Stancek
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Stancek @ 2017-06-02 11:31 UTC (permalink / raw)
  To: ltp


----- Original Message -----
> Hi Cyril, Jan
> 
> Ping. :-)
> 
> Compilation failed on RHEL5.11GA.

Pushed.

Thanks,
Jan

> 
> Thanks,
> Xiao Yang
> 
> On 2017/05/31 18:35, Xiao Yang wrote:
> > Compilation failed on some older distributions due to undefined
> > MAP_HUGETLB, so we include lapi/mmap.h to fix it.
> >
> > Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
> > ---
> >  testcases/kernel/numa/support_numa.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/testcases/kernel/numa/support_numa.c
> > b/testcases/kernel/numa/support_numa.c
> > index b6aa8bd..4904cc5 100644
> > --- a/testcases/kernel/numa/support_numa.c
> > +++ b/testcases/kernel/numa/support_numa.c
> > @@ -39,6 +39,7 @@
> >  #include <sys/stat.h>
> >  #include <sys/mman.h>
> >  #include <fcntl.h>
> > +#include "lapi/mmap.h"
> >  
> >  /* Global Variables */
> >  #define MB (1<<20)
> 
> 
> 
> 

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

end of thread, other threads:[~2017-06-02 11:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-31 10:35 [LTP] [PATCH] ltp/numa: Fix compilation without MAP_HUGETLB Xiao Yang
2017-06-02  1:33 ` Xiao Yang
2017-06-02 11:31   ` Jan Stancek

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.