From nobody Fri Apr 3 03:01:27 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCE5435E925; Tue, 24 Mar 2026 22:04:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774389898; cv=none; b=PI5xzObpTolNvixJm7K+dKQrqV/3ffLyElAvJdYaQ5w8kJsQ+r4ViOnsllOaYHsLRlwHORTRDYtj2+ek2WLBp3rcfROBmcMQXIy6RpEK0YdcDVDRcTR6Vglnv8o5iHHYyP55nYCV3/dn8CaKkF+aFGv6gZPcjv5qPbaGjtRYYW8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774389898; c=relaxed/simple; bh=XoEYTtQfrcqv//2CTaMzk0P2qjBkP5IyrdpbcfV39CA=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=VE7+QBbQ2jT4fmF2BENvM9RKdoK02hxmq1PMLibttqqB5GURCUXPTo9bkA9+lKPBCd9XiYuw1Gh00S+8zT7tnJh8i8UbAjlMkEBVX8ONVi7LNZJrSWCPYiZdA280fIa4AHjtoWVYtGpguqJOi4Ma6dA1nwwVb5frpG+6yD3LlqU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=M6toKKmt; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=4HJr0Hgl; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="M6toKKmt"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="4HJr0Hgl" Date: Tue, 24 Mar 2026 22:04:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1774389895; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Jf9qP4bAfZimYKZETEpZZ+MQ9yHqEbAscg7AfzLi4zA=; b=M6toKKmtNPQVG5hxMGrYpSvQgo1tQLaL5NeKUXufnG+zfpnxFyJbsoZHhln92SK+Noz27u xLS/FbJmBvb/5XIq6/7j/p/TWyvXirw5wI7PlJ+6BwYSgHqgPo06zOE8HpDDimHVWwRp7z S/llBZVCkrwUvpR6zW2tCcmBxbDc9ptYULxex21aaq2xZpncmusa+UjoDGih5k0GIx9NV3 7Nx4nG9TkMYIWCc3CeiFt2yEbvcCj43HrLUX1cMdcRI2+Wm/pFtRvgxlnSehU7PPrTF68d nt6lIvpc8bwvyJZp3XAjy795AGyLaj13YeGgxDj+lskCVrFj6GnFR5W5RI4chA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1774389895; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Jf9qP4bAfZimYKZETEpZZ+MQ9yHqEbAscg7AfzLi4zA=; b=4HJr0HglunVehYBgtK8JMI1UGWIjmwQb82DH+lnvCKXjY9kMNssKOSDA8aQz0vpuhQGeiH P8pYduMDXSvxGCAg== From: "tip-bot2 for Nylon Chen" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/futex] selftests/futex: Conditionally include libnuma support Cc: Zong Li , Nylon Chen , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260301-20260128_nylon_chen_sifive_com-v3-1-995ab4cc71aa@sifive.com> References: <20260301-20260128_nylon_chen_sifive_com-v3-1-995ab4cc71aa@sifive.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177438989417.1647592.14138139628667013360.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the locking/futex branch of tip: Commit-ID: 3814c4e145b7a315abd83c85caf97585c63035a4 Gitweb: https://git.kernel.org/tip/3814c4e145b7a315abd83c85caf97585c= 63035a4 Author: Nylon Chen AuthorDate: Sun, 01 Mar 2026 19:04:34 -08:00 Committer: Thomas Gleixner CommitterDate: Tue, 24 Mar 2026 22:59:59 +01:00 selftests/futex: Conditionally include libnuma support Use LIBNUMA_TEST to conditionally add -lnuma to LDLIBS. Guard numa header includes with #ifdef LIBNUMA_VER_SUFFICIENT to allow compilation without libnuma installed. Co-developed-by: Zong Li Signed-off-by: Zong Li Signed-off-by: Nylon Chen Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260301-20260128_nylon_chen_sifive_com-v3-1= -995ab4cc71aa@sifive.com --- tools/testing/selftests/futex/functional/Makefile | 5 ++++- tools/testing/selftests/futex/functional/futex_numa_mpol.c | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/futex/functional/Makefile b/tools/test= ing/selftests/futex/functional/Makefile index af7ec30..b65ad75 100644 --- a/tools/testing/selftests/futex/functional/Makefile +++ b/tools/testing/selftests/futex/functional/Makefile @@ -4,7 +4,10 @@ LIBNUMA_TEST =3D $(shell sh -c "$(PKG_CONFIG) numa --atlea= st-version 2.0.16 > /dev =20 INCLUDES :=3D -I../include -I../../ $(KHDR_INCLUDES) CFLAGS :=3D $(CFLAGS) -g -O2 -Wall -pthread -D_FILE_OFFSET_BITS=3D64 -D_TI= ME_BITS=3D64 $(INCLUDES) $(KHDR_INCLUDES) -DLIBNUMA_VER_$(LIBNUMA_TEST)=3D1 -LDLIBS :=3D -lpthread -lrt -lnuma +LDLIBS :=3D -lpthread -lrt +ifeq ($(LIBNUMA_TEST),SUFFICIENT) +LDLIBS +=3D -lnuma +endif =20 LOCAL_HDRS :=3D \ ../include/futextest.h \ diff --git a/tools/testing/selftests/futex/functional/futex_numa_mpol.c b/t= ools/testing/selftests/futex/functional/futex_numa_mpol.c index 220ef21..35ad217 100644 --- a/tools/testing/selftests/futex/functional/futex_numa_mpol.c +++ b/tools/testing/selftests/futex/functional/futex_numa_mpol.c @@ -10,8 +10,10 @@ #include #include #include +#ifdef LIBNUMA_VER_SUFFICIENT #include #include +#endif =20 #include #include