From nobody Fri Dec 19 17:14:35 2025 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 C39BE3054D0; Tue, 14 Oct 2025 05:55:53 +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=1760421355; cv=none; b=WJs8uWYhxWzM+eGOaovdtJ3lURie/hjD2Hn/B+jopVhXb1YUV5qoDBZQBQbW8mO2jmwwTP9l1xkwE8oVzMmXqBwyps8669eVr+EMpcwsjSbAl38Ea3Q7t4la7CF8vduqcbOuCcAQBVleH1CLevdmESLDyxP74kOaElwRgwlg1uM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760421355; c=relaxed/simple; bh=hoR2jjOaF3S8iXnoB94AT92D4vYm7OkfmPq4E+/SnfA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=NYiMEi5JbYg38137HEVgbcOZhu8SgDo1sjDLQtrvEpeOQBczXm2r5kWQsON5lnXzjjkt37X38I/sRhu8kXiR+ZMkr5oUGjMAzZQR2FnJv58ft1RpARN8RSmcWqlHcIjXY2r5etuNvTWNiPPr4J7rXH6iCTN1WUIVGIerrL4nud0= 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=BsXh9Tkb; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=3zaGBp6V; 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="BsXh9Tkb"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="3zaGBp6V" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1760421352; h=from:from: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; bh=L5slOWCojrdN2NgvTuR7SqkB/n+qNChHFbvrfsO6TvE=; b=BsXh9TkbTotGSw9QPLSBVHjVrYuyhMXUs1bde2BRB1PSfsunUqjc0cSn1tNcdy9jsMJzj2 fx2/rJar8cXdYSqKuvQQcU5o/yJx3JAxJehi+flYHOm4LFS5KQ5I/ZtkCjE2OWpY9jL7hJ pAWIe6QjPECu8l/jIhjVIPkGW/fXazcFoKKE/5kTXgW5foKm3HZfQtEcWj8/jOS+NICRFo 4gIhlKdprptczZxFW+M8klSJMvwpfzcdCUijozCbWxlMOMxJznCkzci/gSZEOy27qGS1dB PmMY+K/dpTtZEXoSaJE/K8yamz3wFdVKj6IRg2GMAHxmzEt9cYCth9R1cHmkQA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1760421352; h=from:from: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; bh=L5slOWCojrdN2NgvTuR7SqkB/n+qNChHFbvrfsO6TvE=; b=3zaGBp6Vpc3OYMLvBK4RR70d92MLiBhXtbAg5WDrbhcw7EYp/cKgwOxSvhdGTODRjcjfhJ mIPztmtfyDvr03Bg== Date: Tue, 14 Oct 2025 07:55:32 +0200 Subject: [PATCH] kbuild: uapi: reuse KBUILD_USERCFLAGS Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251014-kbuild-uapi-usercflags-v1-1-c162f9059c47@linutronix.de> X-B4-Tracking: v=1; b=H4sIANPl7WgC/x3MQQqEMAxA0atI1gbaiDh4FXGRauIERaWlIoh3n zLLv3j/gSTRJEFfPRDlsmTHXsLXFUxf3hdBm0sDOWq98w2uIds2Y+bTMBc86cZLQlYNRMTqPh0 UfEZRu//jYXzfH26Ql/toAAAA X-Change-ID: 20251013-kbuild-uapi-usercflags-affb222af087 To: Nathan Chancellor , Nicolas Schier Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1760421350; l=1661; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=hoR2jjOaF3S8iXnoB94AT92D4vYm7OkfmPq4E+/SnfA=; b=zGx10ekYJhYywPMh5GcjBXrr4HD4P83p+2CFbvPWa2E5TayIuX8hb0HPr37bA//8N/30essd/ icPw1SRWwCoA+u77fe0Gd/1CXmxD3QFfJPNjpus9aQdxi9c3++SF+sg X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The toplevel Makefile already provides the compiler flags necessary to build userspace applications for the target. Make use of them instead of duplicating the logic. Signed-off-by: Thomas Wei=C3=9Fschuh --- usr/include/Makefile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index 61a7dd4fc05f004d785c64c0019ad846c84719d5..d8a508042fed315401ed689e083= 9af249c4b31c8 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -6,16 +6,9 @@ # # -std=3Dc90 (equivalent to -ansi) catches the violation of those. # We cannot go as far as adding -Wpedantic since it emits too many warning= s. -UAPI_CFLAGS :=3D -std=3Dc90 -Wall -Werror=3Dimplicit-function-declaration +UAPI_CFLAGS :=3D -std=3Dc90 -Werror=3Dimplicit-function-declaration =20 -# In theory, we do not care -m32 or -m64 for header compile tests. -# It is here just because CONFIG_CC_CAN_LINK is tested with -m32 or -m64. -UAPI_CFLAGS +=3D $(filter -m32 -m64 --target=3D%, $(KBUILD_CPPFLAGS) $(KBU= ILD_CFLAGS)) - -# USERCFLAGS might contain sysroot location for CC. -UAPI_CFLAGS +=3D $(USERCFLAGS) - -override c_flags =3D $(UAPI_CFLAGS) -Wp,-MMD,$(depfile) -I $(obj) -I $(src= tree)/usr/dummy-include +override c_flags =3D $(KBUILD_USERCFLAGS) $(UAPI_CFLAGS) -Wp,-MMD,$(depfil= e) -I $(obj) -I $(srctree)/usr/dummy-include =20 # The following are excluded for now because they fail to build. # --- base-commit: 3a8660878839faadb4f1a6dd72c3179c1df56787 change-id: 20251013-kbuild-uapi-usercflags-affb222af087 Best regards, --=20 Thomas Wei=C3=9Fschuh