From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1RyQwW-0007mG-DK for ltp-list@lists.sourceforge.net; Fri, 17 Feb 2012 16:45:56 +0000 Received: from eu1sys200aog107.obsmtp.com ([207.126.144.123]) by sog-mx-1.v43.ch3.sourceforge.com with smtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1RyQwS-0008JG-Fr for ltp-list@lists.sourceforge.net; Fri, 17 Feb 2012 16:45:56 +0000 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3D0F2236 for ; Fri, 17 Feb 2012 16:45:44 +0000 (GMT) Received: from mail7.sgp.st.com (mail7.sgp.st.com [164.129.223.81]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D40D929AB for ; Fri, 17 Feb 2012 16:45:44 +0000 (GMT) Message-ID: <4F3E8435.8020401@st.com> Date: Fri, 17 Feb 2012 17:45:41 +0100 From: Carmelo AMOROSO MIME-Version: 1.0 References: <4F3E81EA.8040404@imgtec.com> In-Reply-To: <4F3E81EA.8040404@imgtec.com> 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 17/02/2012 17.35, Markos Chandras wrote: > 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 > confirmed, works for me too carmelo ------------------------------------------------------------------------------ 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