From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1RyQmz-0007Ia-Re for ltp-list@lists.sourceforge.net; Fri, 17 Feb 2012 16:36:05 +0000 Received: from multi.imgtec.com ([194.200.65.239]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1RyQmv-0006uX-Il for ltp-list@lists.sourceforge.net; Fri, 17 Feb 2012 16:36:05 +0000 Message-ID: <4F3E81EA.8040404@imgtec.com> Date: Fri, 17 Feb 2012 16:35:54 +0000 From: Markos Chandras MIME-Version: 1.0 References: In-Reply-To: Subject: Re: [LTP] [PATCH] lib/mem.c: add HAVE_NUMA_H to avoid compiling error List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: ltp-list@lists.sourceforge.net On 02/17/2012 06:09 AM, Zhouping Liu wrote: > In the patch<9b70f0970>, I used numa_max_node(), which's included in , > but I forgot to add precompiled header: HAVE_NUMA_H, the patch fixed it. > > Signed-off-by: Zhouping Liu > --- > testcases/kernel/mem/lib/mem.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/testcases/kernel/mem/lib/mem.c b/testcases/kernel/mem/lib/mem.c > index 25cdfd4..3843785 100644 > --- a/testcases/kernel/mem/lib/mem.c > +++ b/testcases/kernel/mem/lib/mem.c > @@ -148,6 +148,7 @@ void testoom(int mempolicy, int lite, int numa) > oom(KSM, mempolicy, lite); > } > > +#ifdef HAVE_NUMA_H > long count_numa(void) > { > int nnodes = 0; > @@ -161,6 +162,7 @@ long count_numa(void) > > return nnodes; > } > +#endif > > int path_exist(const char *path, ...) > { Yes, that works for me Tested-by: Markos Chandras -- markos ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list