From mboxrd@z Thu Jan 1 00:00:00 1970 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 613BD306764; Thu, 2 Jul 2026 22:19:44 +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=1783030785; cv=none; b=ivSrWBqukGkzLkdgmBB0wRRQ4JdwArHZPf36u6whK4quLNrrObYT5SxKj/xPCUwQJGGOSXj3q27zKcQulmDY8lMbJ5jYeXE2PndSokxhcEhQbmNwh3Wh0hF30QtIOtIy9gL+0gMF+ytBFjL45+KrjwPFSViBfP6JM+S7F2VT5LU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783030785; c=relaxed/simple; bh=aCXEcdddgxa2pGdU6hV5SIriD8yRINAPiATtvC0RHJg=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=HVch0l96wjyOEWESs3DuEc8+7NGAd/KV6XngSU6YqJI75zyLqgciR4GScfed/i8cennbq9YvrCTuR1HOKP3UkLCnEipXmm0La5rJutqAz0ISjqJ9DkPItKbBBxXGOP3dyOelo6aNWFCn9yPrFV3OTJyMomNJNBUtgKyMOmyntY0= 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=jWLTJGrP; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ptiyYt3j; 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="jWLTJGrP"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ptiyYt3j" Date: Thu, 02 Jul 2026 22:19:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1783030780; 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=rbR7IX4e3kBYycQk8om4jDLjBES4Ehp3M0Nw+0TuTCY=; b=jWLTJGrP8vOFKJbFGa104M/lJPXD6DHhd9opVogo1SLD7OAt52r/UvAmFEQWYkflWurLPH k3cQ1M6dQe2aHYl+bNcWvo31CXI3i3KsprPx8YqznUu66XWq6TKZZQp31czmT2yd65qt/U uJq75kwf5KdVqOnb8IHETAD4A6MVUzK5yiSRexohvfK71K08bkfHDR22a2OxxrHxIs5kGZ PEp/OeZX7cibMK6lk/oy2a7WVsqi2xMJD3+kbClSdpNoNCeJPte6l+jj+bFfLF5mPGpkgr lLCHUjM3TpKZBJDxtLzMetesJuQonA5x/1ctDNmym0cOvhVlGH6gI7UMvmCz3A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1783030780; 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=rbR7IX4e3kBYycQk8om4jDLjBES4Ehp3M0Nw+0TuTCY=; b=ptiyYt3jnUMSTBxfyDAYooA0PmnT96uf6iW0XMNf/x+DqLRuKv19QT01LNwMzTpdYJO0Xh uw21vhCQjgcnmdBg== From: "tip-bot2 for Hisam Mehboob" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/futex] selftests/rseq: Replace glibc-specific __GNUC_PREREQ with portable check Cc: Hisam Mehboob , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260618193724.589113-2-hisamshar@gmail.com> References: <20260618193724.589113-2-hisamshar@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178303077880.3843924.3398329165284401118.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: d7b2769f8dba3e5f40d2a8a11988812d51160b17 Gitweb: https://git.kernel.org/tip/d7b2769f8dba3e5f40d2a8a11988812d511= 60b17 Author: Hisam Mehboob AuthorDate: Fri, 19 Jun 2026 00:37:25 +05:00 Committer: Thomas Gleixner CommitterDate: Fri, 03 Jul 2026 00:15:01 +02:00 selftests/rseq: Replace glibc-specific __GNUC_PREREQ with portable check Building the rseq selftests against musl libc fails because musl's does not provide the glibc-specific __GNUC_PREREQ macro: error: missing binary operator before token '(' Replace __GNUC_PREREQ(11, 1) with an equivalent check using __GNUC__ and __GNUC_MINOR__ directly. This pattern is portable across all C library implementations and is already used elsewhere in the tools/ tree (e.g., tools/include/linux/string.h). This also allows removing the #include , which was only needed for __GNUC_PREREQ. Fixes: 886ddfba933f ("selftests/rseq: Introduce thread pointer getters") Signed-off-by: Hisam Mehboob Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260618193724.589113-2-hisamshar@gmail.com --- tools/testing/selftests/rseq/rseq-x86-thread-pointer.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/testing/selftests/rseq/rseq-x86-thread-pointer.h b/tools/t= esting/selftests/rseq/rseq-x86-thread-pointer.h index d313358..5a29d6b 100644 --- a/tools/testing/selftests/rseq/rseq-x86-thread-pointer.h +++ b/tools/testing/selftests/rseq/rseq-x86-thread-pointer.h @@ -8,13 +8,11 @@ #ifndef _RSEQ_X86_THREAD_POINTER #define _RSEQ_X86_THREAD_POINTER =20 -#include - #ifdef __cplusplus extern "C" { #endif =20 -#if __GNUC_PREREQ (11, 1) +#if __GNUC__ > 11 || (__GNUC__ =3D=3D 11 && __GNUC_MINOR__ >=3D 1) static inline void *rseq_thread_pointer(void) { return __builtin_thread_pointer();