Re: [PATCH 1/2] perf, tools: Define MADV_*HUGEPAGE for old kernels

2013-03-06 Thread Namhyung Kim
Hi Andi, On Wed, 6 Mar 2013 15:19:16 -0800, Andi Kleen wrote: > From: Andi Kleen > > Avoids this on RHEL6: > > bench/numa.c: In function ‘alloc_data’: > bench/numa.c:334: error: ‘MADV_HUGEPAGE’ undeclared (first use in this > function) > bench/numa.c:334: error: (Each undeclared identifier is r

[PATCH 1/2] perf, tools: Define MADV_*HUGEPAGE for old kernels

2013-03-06 Thread Andi Kleen
From: Andi Kleen Avoids this on RHEL6: bench/numa.c: In function ‘alloc_data’: bench/numa.c:334: error: ‘MADV_HUGEPAGE’ undeclared (first use in this function) bench/numa.c:334: error: (Each undeclared identifier is reported only once bench/numa.c:334: error: for each function it appears in.) be