From nobody Thu Apr 9 12:08:07 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 3426B3603F0; Fri, 27 Feb 2026 06:38:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174286; cv=none; b=SL+g45u65aLFdltI6rCWnIlraE+r6/lQR0fQ2/WbOZvNwGE3OOEnCjPW2hzCMoofCTMvtkmEBvJ1Qz1fqpbuESgN6UZrJ1zh18ZRwMQbyM5j8TOJVIlKNtr6SvGzUUjISP0DnjkWwCU64DRqLMjiaRlmCPa48meArouSZgG/O2c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174286; c=relaxed/simple; bh=6diDtqP76C4bz7vahdMwZQipsDirHjMTmlGVgSTA9j0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NlS99WvSxpR7AjMz/7jCJcjSe0gehLJAiFMerMyMkAOQspoI8pMEODlDEoMotrDeqZf6oJFRCBqo5uq5mTbTb7kmibpo10w1YFkMc0sArivz9PqkhLil9wx/D98I+uwGtftk1sGu7IbIGXO83m78GU1cGrLWeXIDtTlJcs1ij4E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=eSv9gs7p; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="eSv9gs7p" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1772174282; bh=6diDtqP76C4bz7vahdMwZQipsDirHjMTmlGVgSTA9j0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=eSv9gs7p/lZCPvoGnxndoMOVhc98L+FGjMH8NrPE662UHoDjrGS7HjSJRnWsTWVXt CHktg0wESJZC82QhEB/MlgjYt2i/53bFf+cwg+hh7VxSwmn3X8jIa++Qh+eR8UQJVN 1Q7JjfYKrrP5SGEAC8WpTdbgrHnqmGaPMtIAyH24= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 27 Feb 2026 07:37:59 +0100 Subject: [PATCH 1/9] hexagon: uapi: Fix structure alignment attribute 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: <20260227-kbuild-uapi-libc-v1-1-c17de0d19776@weissschuh.net> References: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> In-Reply-To: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> To: Nathan Chancellor , Nicolas Schier , Brian Cain Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-hexagon@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772174282; l=753; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=hO3aEDa72rKRx1PRZun2eaHfd644nVshBCoBoGCyGWY=; b=I4SH8uv7U74uSWwUxmrtdVXuy7xtDFBQUnMTJogHIoldXFI0oy99HggNVFTAw5owSyadcQJSr LbS02jR+YAjDeh0XzT398x8cQTkmMPFbd7Ksy5yRupgXIrUM5mx4cMp X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= From: Thomas Wei=C3=9Fschuh __aligned() is a kernel macro, which is not available in UAPI headers. Use the compiler-provided alignment attribute directly. Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Arnd Bergmann Reviewed-by: Nathan Chancellor Reviewed-by: Nicolas Schier Tested-by: Nicolas Schier --- arch/hexagon/include/uapi/asm/sigcontext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/hexagon/include/uapi/asm/sigcontext.h b/arch/hexagon/incl= ude/uapi/asm/sigcontext.h index 7171edb1b8b7..179a97041b59 100644 --- a/arch/hexagon/include/uapi/asm/sigcontext.h +++ b/arch/hexagon/include/uapi/asm/sigcontext.h @@ -29,6 +29,6 @@ */ struct sigcontext { struct user_regs_struct sc_regs; -} __aligned(8); +} __attribute__((aligned(8))); =20 #endif --=20 2.53.0 From nobody Thu Apr 9 12:08:07 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 B48D93603C5; Fri, 27 Feb 2026 06:38:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174286; cv=none; b=EMeeVxr+TRr/poYsQUaHdeUZ1Ne16UXlt3Z7kwxpvEhPAexEkb1vzm9H3rbXhXAvzdpLBFFPyAIwUA2nskEzTakQxf+r1uAXwlQh03d74PI+gKr0g5Q6Qo6Fp/S2O7+lNdsoiDimRWpKm9FGoTvHyWLScLAilELMtuTLutU5VG0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174286; c=relaxed/simple; bh=HPssK7+gGKc7Yv4nCoiB8PrNhJJvn3JdkcnAkho+spA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LnDX/47X4z3ZgeU+mKcZWHseJgybhTyGF4354s5itW0TJFBTgs9QeRTyBR0KHf3oyhoQgbrGZcjbYtrSsw83HtXlChLNdh1E+9k80+wMBz9DjiL78G5xGK+fyGcDne37n9U2gz/LCqTYYGLqYePGvTaPKINhbc3rQ4rEXtBO9M0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=HFkmz0WR; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="HFkmz0WR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1772174282; bh=HPssK7+gGKc7Yv4nCoiB8PrNhJJvn3JdkcnAkho+spA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HFkmz0WRE6Vwez6AQ7fW6zP/c7q3CcHVxGDRXvovNpzdUMSi/Rd6y6906FfPDwECl BwmTkPjNFDuTbPlrCNNiTX+sbiFZ+CTQGZ9KKFCdB5oRSuONJSX3C3yx7ugAaK6eOG 69s3RJhUBW/fkdB1Fn6siO/KfSktS4n5Jc4rAgMw= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 27 Feb 2026 07:38:00 +0100 Subject: [PATCH 2/9] kbuild: uapi: test linux/bpf_perf_event.h on powerpc 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: <20260227-kbuild-uapi-libc-v1-2-c17de0d19776@weissschuh.net> References: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> In-Reply-To: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> To: Nathan Chancellor , Nicolas Schier , Brian Cain Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-hexagon@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772174282; l=608; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=HPssK7+gGKc7Yv4nCoiB8PrNhJJvn3JdkcnAkho+spA=; b=Ww+BrPFtwChLKvwb286tEK6HAq/M1dsX+1wdZKwZUxEZLEsm+Hnq54GTN6NCTl5GUW1mPiAaX KWPRfwu2btmB+x/r7FuAIWGKkOyx7jcnqxdOyJwG0Q5JXbBwjU3yD3Q X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= This header works now, so test it. Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Arnd Bergmann Reviewed-by: Nathan Chancellor Reviewed-by: Nicolas Schier Tested-by: Nicolas Schier --- usr/include/Makefile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index 6d86a53c6f0a..595996eefcc6 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -56,10 +56,6 @@ ifeq ($(SRCARCH),openrisc) no-header-test +=3D linux/bpf_perf_event.h endif =20 -ifeq ($(SRCARCH),powerpc) -no-header-test +=3D linux/bpf_perf_event.h -endif - ifeq ($(SRCARCH),sparc) no-header-test +=3D asm/uctx.h no-header-test +=3D asm/fbio.h --=20 2.53.0 From nobody Thu Apr 9 12:08:07 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 6550F36215F; Fri, 27 Feb 2026 06:38:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174286; cv=none; b=m+IA4nozznd654pmPXYLxKPujnozMq9yMbiyUeeh5IafcfMw0VMshlixL6Fp7df3Pa8vRoz+xj8a0EhwGzG/RtHUvvwKKJquygAaos/sEacWSIGrvhGl3rhHQnXh8bQ/CF9GmeAFEhKgWwoM/yNHoJ2UOspUbReq+52knLiNYiw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174286; c=relaxed/simple; bh=YuQ1Co+OkVPuKnZ7K5F11NNnxW5YJpFGZZQ0qhiE+B8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=F3by18Brk3DW+cGwvVh+Vj7CrPT7CxTaoVJs0UTI7RwZRnhKD9ah6x/LDLYxlQkr9P3+Pv1uzCeGpbqF22AcrKCkpiEM0NsPTYnzRqgMEzgi00cOsC44N2vJtyMh3682+M+6aphAWXWcTHZ7G4MxN1XXzD84HMJJw91FECkcKpY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=n+lObUaX; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="n+lObUaX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1772174282; bh=YuQ1Co+OkVPuKnZ7K5F11NNnxW5YJpFGZZQ0qhiE+B8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=n+lObUaXzVGd1Y3zCN8z9caS4OzXqzI7rqHZuiU1C3t4dVcroLihYThTlB8C4EOmq os/0UsC5/rK9fWrca5ja3godalcPcpB3WPhCFA17StYZHu8jkW1y3GNectanRUYyNb NZJ8jYCzBxVJXG2B77W11OpM2t3SfEVUup54I0fk= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 27 Feb 2026 07:38:01 +0100 Subject: [PATCH 3/9] kbuild: uapi: deduplicate linux/bpf_perf_event.h exclusions 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: <20260227-kbuild-uapi-libc-v1-3-c17de0d19776@weissschuh.net> References: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> In-Reply-To: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> To: Nathan Chancellor , Nicolas Schier , Brian Cain Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-hexagon@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772174282; l=1025; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=YuQ1Co+OkVPuKnZ7K5F11NNnxW5YJpFGZZQ0qhiE+B8=; b=q60QBQ4V9i7XOSCSInFML6wrE//rzsaQb97vuhVw3dMw2XpfEL0iUm08i/8r9ZBo9vYutxLj9 yH7RAtvp14MCZNuWHGdEYC58fGIKW2PjoSn8BiEMfmS7dlMOx7ixbZm X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= This header is excluded for multiple architectures. Use a single exclusion for all of them. Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Arnd Bergmann Reviewed-by: Nathan Chancellor Reviewed-by: Nicolas Schier Tested-by: Nicolas Schier --- usr/include/Makefile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index 595996eefcc6..ae365d32269a 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -48,11 +48,7 @@ no-header-test +=3D xen/privcmd.h =20 # More headers are broken in some architectures =20 -ifeq ($(SRCARCH),arc) -no-header-test +=3D linux/bpf_perf_event.h -endif - -ifeq ($(SRCARCH),openrisc) +ifneq ($(filter arc openrisc xtensa, $(SRCARCH)),) no-header-test +=3D linux/bpf_perf_event.h endif =20 @@ -61,10 +57,6 @@ no-header-test +=3D asm/uctx.h no-header-test +=3D asm/fbio.h endif =20 -ifeq ($(SRCARCH),xtensa) -no-header-test +=3D linux/bpf_perf_event.h -endif - # asm-generic/*.h is used by asm/*.h, and should not be included directly no-header-test +=3D asm-generic/% =20 --=20 2.53.0 From nobody Thu Apr 9 12:08:07 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 8257138A72F; Fri, 27 Feb 2026 06:38:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174288; cv=none; b=VVM56Tf3EcWufYGZFFLJYFOfwrXqCjlapBBs06p4fAAI+GKTfCYaJB5ZX2MliR4UVTbbn5MyBOWxKiDVWjvRmvX7peatd9SLNqwRfVQICaUOsY3Zcx+GnMF7BP6cCNxKT7WZi4WSBMF6jZVS9KJORXQG+zWJNo60i+7VdYf0jsU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174288; c=relaxed/simple; bh=WrBEOu/3DYNHPKquP5T8Ii/d9NEtOfbY+cXD/rZpbug=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WUWFVUgMNrlOSEwjuOl2Yyw+2gdK9oAfCmkAKyIsMK8dfyBuZcNnqzvAbgBOmcfuTrShEyx4W21Vg6QIP68N2IDa+qEosgn3/MLp/zNcV1mckCHhkBcLLPA2w+Gry/proWSi+1WyA+l6xaa9De1zqhVmHjZ1B1UVwwb7qm0SRDw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=IEfMq7qA; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="IEfMq7qA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1772174282; bh=WrBEOu/3DYNHPKquP5T8Ii/d9NEtOfbY+cXD/rZpbug=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=IEfMq7qAvaJk8u+grSElB5QGPzYlXi9KImyeul1riE9hav1SAQrD1MOaysIj5h3or Wc/cTV9PFz3kv31tPXLzgzOHl9OSoEynjPuprbT4ztMRtluhfL1A8E9cEKhba5zfL4 qHfM2OFayBLrfZfcjvMhC0HzepwL9eRuPSqvZB94= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 27 Feb 2026 07:38:02 +0100 Subject: [PATCH 4/9] kbuild: uapi: completely exclude linux/bpf_perf_event.h on nios2 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: <20260227-kbuild-uapi-libc-v1-4-c17de0d19776@weissschuh.net> References: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> In-Reply-To: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> To: Nathan Chancellor , Nicolas Schier , Brian Cain Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-hexagon@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772174282; l=877; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=WrBEOu/3DYNHPKquP5T8Ii/d9NEtOfbY+cXD/rZpbug=; b=6ydhhvL2sXaaPBdR/AWv5pPpL/wqnWGDyboH8DssdZp1E3rM0WuL46aaRGVObdya1tgCP/zpY wZIIKj5p6sYCXSrQZ8AGVBJUdn74h2HUsCv+JcyUxQZPdzQVvm9LpRp X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= This header is actually not buildable on nios. As nobody built nios2 with CONFIG_CC_CAN_LINK=3Dy so far, this produced no errors. Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Arnd Bergmann Reviewed-by: Nathan Chancellor Reviewed-by: Nicolas Schier Tested-by: Nicolas Schier --- usr/include/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index ae365d32269a..a8619aa85c87 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -48,7 +48,7 @@ no-header-test +=3D xen/privcmd.h =20 # More headers are broken in some architectures =20 -ifneq ($(filter arc openrisc xtensa, $(SRCARCH)),) +ifneq ($(filter arc openrisc xtensa nios2, $(SRCARCH)),) no-header-test +=3D linux/bpf_perf_event.h endif =20 @@ -128,7 +128,6 @@ endif =20 ifeq ($(SRCARCH),nios2) uses-libc +=3D asm/ptrace.h -uses-libc +=3D linux/bpf_perf_event.h endif =20 ifeq ($(SRCARCH),s390) --=20 2.53.0 From nobody Thu Apr 9 12:08:07 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 8A9DB36493C; Fri, 27 Feb 2026 06:38:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174286; cv=none; b=Di/jCNBGcuWGk7YfeOeF3pNqe3Ns3DoJvIftpNS65GQUmfF6xXsA2XNLVJxnLbeAfGmu18KH6WO2WvoCfL6UsBwSM3HARbTY0zKQUoy58Z8MSbYAxnX9NlSPzT8g8RxbWiyo3Mt1QopWolq/Qhr9UMlWwd8HiNOgpTaerqRV878= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174286; c=relaxed/simple; bh=o8GAc9X7vTYuGqD0kl7IxEia6dLJdWHxFZArSAvnNcA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qWNR4FBtkrl41a5DhH1pYbxzUqKmTtmF8jIYioYhtdnm3UWrQQd39sUGoWqx59GWnwHs5YDUVNTsddL0ER1ChI60QnbC0WGE6t6h8mXIVXNArjfDUD6Xt1X4gn+iyTru+2p4fTY8/cNOdsVeOn5RSvGKz1PT39gxAekUf/i9cDo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=nGlfX5dZ; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="nGlfX5dZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1772174283; bh=o8GAc9X7vTYuGqD0kl7IxEia6dLJdWHxFZArSAvnNcA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=nGlfX5dZy4ZwFblK3X9+eCti0WS7QDn4O8mLne8ZehqYkV153228rt4a64P6UMvdw hTv4PHgQtfPOwwudGfxgLo2M+j8iCt6NoyG8ZGR7jKWyTm8EhHY7SvDZrk3OIz5qbg uY8pJOrWfSGjyi7c7W7Ne3PsVMNyQ8C2w8hsvmQ8= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 27 Feb 2026 07:38:03 +0100 Subject: [PATCH 5/9] kbuild: uapi: only use dummy-include for headers which use libc 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: <20260227-kbuild-uapi-libc-v1-5-c17de0d19776@weissschuh.net> References: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> In-Reply-To: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> To: Nathan Chancellor , Nicolas Schier , Brian Cain Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-hexagon@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772174282; l=1322; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=o8GAc9X7vTYuGqD0kl7IxEia6dLJdWHxFZArSAvnNcA=; b=hbg6GN/STo4hUupuF5YD0wP6Sfo7x3vG0cC6WY87paYSM+7xFhzUJ4Ni/JgniZHnLm07cb7BG 1HI2TcezfHGD/j3WFGdZGwiUkhzGsoFQBkVCKKctMHiOfGxQFa6ZPyA X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= The headers which do not rely on libc are using built using -nostdinc. For them the dummy headers are pointless. Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Arnd Bergmann Reviewed-by: Nathan Chancellor Reviewed-by: Nicolas Schier Tested-by: Nicolas Schier --- usr/include/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index a8619aa85c87..fdc79cffcc97 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -8,7 +8,7 @@ # We cannot go as far as adding -Wpedantic since it emits too many warning= s. UAPI_CFLAGS :=3D -std=3Dc90 -Werror=3Dimplicit-function-declaration =20 -override c_flags =3D $(KBUILD_USERCFLAGS) $(UAPI_CFLAGS) -Wp,-MMD,$(depfil= e) -I $(obj) -I $(srctree)/usr/dummy-include +override c_flags =3D $(KBUILD_USERCFLAGS) $(UAPI_CFLAGS) -Wp,-MMD,$(depfil= e) -I $(obj) =20 # The following are excluded for now because they fail to build. # @@ -145,7 +145,7 @@ target-can-compile =3D $(and $(filter-out $(no-header-t= est), $*.h), \ quiet_cmd_hdrtest =3D HDRTEST $< cmd_hdrtest =3D \ $(CC) $(c_flags) -fsyntax-only -Werror -x c /dev/null \ - $(if $(target-no-libc), -nostdinc) \ + $(if $(target-no-libc), -nostdinc, -I $(srctree)/usr/dummy-include) \ $(if $(target-can-compile), -include $< -include $<); \ $(PERL) $(src)/headers_check.pl $(obj) $<; \ touch $@ --=20 2.53.0 From nobody Thu Apr 9 12:08:07 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 BE3D73D902B; Fri, 27 Feb 2026 06:38:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174289; cv=none; b=I/UGTEchJcRJhq8kzMy5ZtDm8cKYgkGMSFFNeWBgVM2B59Svms9XFFeJ0W9GHHXn6sYW5Ykthc/KHnY33HcNyQaDekpvrhuS9+rnIsu63UgkPzpU9pjlHhV8Hxfqonna7FN9zUfzJlqw6iqWZsLZ2llWf1Bub47IcDv2MVoOwwg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174289; c=relaxed/simple; bh=QD+9pJ53Zlo1bcaqUL/5KFnD4U1juiqCG2mLBtvOl58=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fajtfFzo4FIgEY6tsFl88k6ayJ8iSp/Xr3QnLD1LjuygWn/ZDdflbFgUiVVbQ9qfkq0eYkjXOMfLyMBO0uIAkkHhAUQp7MVE1M+wz4HVEi20R/W/kfCl2ldQatce6ccfT5UezOC6kcOx/rctGMPULkTj8zR53a8TPsQMs9p0vX4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=IfSNgTpR; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="IfSNgTpR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1772174283; bh=QD+9pJ53Zlo1bcaqUL/5KFnD4U1juiqCG2mLBtvOl58=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=IfSNgTpRuwbhnmj/CJ8pKdeSjUDt2/LnRJvMWkDb876m302BSPwZpaWQSpEsq2Ees nlBe7yBXvTnEY+SgD4pfmEE81ErW0+zmM3sqNj+1NdhiFYRK5eTwygiZe5ghWdXC7b QQom7VF1/9Acd2jizfSIqSuzOdOweD/4+NbXv48g= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 27 Feb 2026 07:38:04 +0100 Subject: [PATCH 6/9] kbuild: uapi: provide stub includes for some libc headers 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: <20260227-kbuild-uapi-libc-v1-6-c17de0d19776@weissschuh.net> References: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> In-Reply-To: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> To: Nathan Chancellor , Nicolas Schier , Brian Cain Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-hexagon@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772174282; l=5017; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=QD+9pJ53Zlo1bcaqUL/5KFnD4U1juiqCG2mLBtvOl58=; b=AhjJXCS9Dz0yzq5HBE9clFd2lctzRCoDQJPngBi/tfLSmH7KZgGl44PH5vLJWiGo+Ny0p2wNX aWdq5v0FkgvAQRHS555UnP9XuIzE8DBAM3eYAI7bUQ4oI+7xwC+M8Y8 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Some UAPI headers incorrectly use libc headers. To compile-test these UAPI headers, their respective libc dependencies need to be present. Not all kernel toolchains provide these headers, reducing test coverage. Introduce some stub headers which provide just enough symbols to test all UAPI headers. Most headers are empty anyways, as their symbols are only used in macros which are not actually evaluated. As these headers are only ever used with newer kernel toolchains, they can defer to compiler builtins in many cases. As more UAPI headers are cleaned up to not require these stubs anymore, they can be removed again. Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Arnd Bergmann Reviewed-by: Nathan Chancellor Reviewed-by: Nicolas Schier Tested-by: Nicolas Schier --- usr/dummy-include/endian.h | 0 usr/dummy-include/limits.h | 8 ++++++++ usr/dummy-include/netinet/if_ether.h | 0 usr/dummy-include/netinet/in.h | 0 usr/dummy-include/stddef.h | 8 ++++++++ usr/dummy-include/stdint.h | 17 +++++++++++++++++ usr/dummy-include/string.h | 12 ++++++++++++ usr/dummy-include/sys/ioctl.h | 0 usr/dummy-include/sys/socket.h | 12 ++++++++++++ usr/dummy-include/sys/time.h | 3 +++ usr/dummy-include/sys/types.h | 0 usr/dummy-include/time.h | 0 usr/dummy-include/unistd.h | 0 13 files changed, 60 insertions(+) diff --git a/usr/dummy-include/endian.h b/usr/dummy-include/endian.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/usr/dummy-include/limits.h b/usr/dummy-include/limits.h new file mode 100644 index 000000000000..49b17c10c7b6 --- /dev/null +++ b/usr/dummy-include/limits.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef _DUMMY_LIMITS_H +#define _DUMMY_LIMITS_H + +#define INT_MAX ((int)(~0U >> 1)) +#define INT_MIN (-INT_MAX - 1) + +#endif /* _DUMMY_LIMITS_H */ diff --git a/usr/dummy-include/netinet/if_ether.h b/usr/dummy-include/netin= et/if_ether.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/usr/dummy-include/netinet/in.h b/usr/dummy-include/netinet/in.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/usr/dummy-include/stddef.h b/usr/dummy-include/stddef.h new file mode 100644 index 000000000000..a61703d1c896 --- /dev/null +++ b/usr/dummy-include/stddef.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef _DUMMY_STDDEF_H +#define _DUMMY_STDDEF_H + +#define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) +#define NULL ((void *)0) + +#endif /* _DUMMY_STDDEF_H */ diff --git a/usr/dummy-include/stdint.h b/usr/dummy-include/stdint.h new file mode 100644 index 000000000000..93b1962fd08c --- /dev/null +++ b/usr/dummy-include/stdint.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef _DUMMY_STDINT_H +#define _DUMMY_STDINT_H + +#include + +typedef __u64 uint64_t; +typedef __u32 uint32_t; +typedef __u16 uint16_t; +typedef __u8 uint8_t; + +typedef __s64 int64_t; +typedef __s32 int32_t; +typedef __s16 int16_t; +typedef __s8 int8_t; + +#endif /* _DUMMY_STDINT_H */ diff --git a/usr/dummy-include/string.h b/usr/dummy-include/string.h new file mode 100644 index 000000000000..e059808d309a --- /dev/null +++ b/usr/dummy-include/string.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef _DUMMY_STRING_H +#define _DUMMY_STRING_H + +#include + +#define memset(_s, _c, _n) __builtin_memset(_s, _c, _n) +#define memcpy(_dest, _src, _n) __builtin_memcpy(_dest, _src, _n) + +#define strlen(_s) __builtin_strlen(_s) + +#endif /* _DUMMY_STRING_H */ diff --git a/usr/dummy-include/sys/ioctl.h b/usr/dummy-include/sys/ioctl.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/usr/dummy-include/sys/socket.h b/usr/dummy-include/sys/socket.h new file mode 100644 index 000000000000..748751f9e53e --- /dev/null +++ b/usr/dummy-include/sys/socket.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef _DUMMY_SYS_SOCKET_H +#define _DUMMY_SYS_SOCKET_H + +#include + +struct sockaddr { + __kernel_sa_family_t sa_family; /* address family, AF_xxx */ + char sa_data[14]; /* 14 bytes of protocol address */ +}; + +#endif /* _DUMMY_SYS_SOCKET_H */ diff --git a/usr/dummy-include/sys/time.h b/usr/dummy-include/sys/time.h new file mode 100644 index 000000000000..9817b8afb1a6 --- /dev/null +++ b/usr/dummy-include/sys/time.h @@ -0,0 +1,3 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include diff --git a/usr/dummy-include/sys/types.h b/usr/dummy-include/sys/types.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/usr/dummy-include/time.h b/usr/dummy-include/time.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/usr/dummy-include/unistd.h b/usr/dummy-include/unistd.h new file mode 100644 index 000000000000..e69de29bb2d1 --=20 2.53.0 From nobody Thu Apr 9 12:08:07 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 B6EFE3D34B8; Fri, 27 Feb 2026 06:38:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174289; cv=none; b=HkHuTf23LNBi3VrwIv8y3jFaPfQI42MAAIF0p+IUGjGDYrjqL47BmG0q62CapG9Oj0LBMitpaNSY2gDxy9KjnOoxvx185MWEWmdKNUqSFnN3yyTWTst0QwUifGCvpQC1nxwOSa8A8j02AmZ/WRQuR72bWvm19piVe9Ig6jZ4OJI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174289; c=relaxed/simple; bh=5euz4oG3DtJPSjkMeCCtIJ6pr0AEmkKUMdnkYJbyKiU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=br/gnTYmruu4zhiiu9RAQohQF9KXpbIzmDiE9LFwAIqcnnEHkj9BmjEN2hB/NBLKSLYGyICauWVSeyG/qnUNxw3JdHtd0NK9euYoBSnNQsXKIhR3HM1kGvTISwc1iD1ipoC/RnugQOia/YnEz3NGPp16Mpj2+lP6ka1GVP6Iip4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=YQQ4yYiI; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="YQQ4yYiI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1772174283; bh=5euz4oG3DtJPSjkMeCCtIJ6pr0AEmkKUMdnkYJbyKiU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=YQQ4yYiIjIAD+o6Q5RxbDzqQV9hkj+dVsu54d604cJsYp3QAySghPlegyl/2fbNyF XHrfycI0rkcCOTYrnScBLQUjGpuBVIHVEENPisMJAcJQ+cYzOteHiS24Hv0Dg1aQ0S GoOSyGm/zBH/5JIEx7DJFSW5gZg9rq48a7EQ+pSo= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 27 Feb 2026 07:38:05 +0100 Subject: [PATCH 7/9] kbuild: uapi: use custom stub headers instead of libc ones 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: <20260227-kbuild-uapi-libc-v1-7-c17de0d19776@weissschuh.net> References: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> In-Reply-To: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> To: Nathan Chancellor , Nicolas Schier , Brian Cain Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-hexagon@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772174282; l=1306; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=5euz4oG3DtJPSjkMeCCtIJ6pr0AEmkKUMdnkYJbyKiU=; b=fcz9Q164tToL+6VPjEC2UrR6k3HEnDMCnBW+p97brquheut3aeHcsyamnoqiSgTKR6kXl/cLT R5aNcFE4mOuBS9rVXDAW3gqM73mpxnrfLudB4J/qEaLxysmoqWnRwhx X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Now that custom stub headers are provided for all libc headers used from the UAPI headers, the dependency on the toolchain libc can be dropped. Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Arnd Bergmann Reviewed-by: Nathan Chancellor Reviewed-by: Nicolas Schier Tested-by: Nicolas Schier --- usr/include/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index fdc79cffcc97..d352280b0e4a 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -138,14 +138,13 @@ endif always-y :=3D $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '= *.h' 2>/dev/null)) =20 target-no-libc =3D $(filter-out $(uses-libc), $*.h) -target-can-compile =3D $(and $(filter-out $(no-header-test), $*.h), \ - $(or $(CONFIG_CC_CAN_LINK), $(target-no-libc))) +target-can-compile =3D $(filter-out $(no-header-test), $*.h) =20 # Include the header twice to detect missing include guard. quiet_cmd_hdrtest =3D HDRTEST $< cmd_hdrtest =3D \ $(CC) $(c_flags) -fsyntax-only -Werror -x c /dev/null \ - $(if $(target-no-libc), -nostdinc, -I $(srctree)/usr/dummy-include) \ + -nostdinc $(if $(target-no-libc), , -I $(srctree)/usr/dummy-include) \ $(if $(target-can-compile), -include $< -include $<); \ $(PERL) $(src)/headers_check.pl $(obj) $<; \ touch $@ --=20 2.53.0 From nobody Thu Apr 9 12:08:07 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 B6E0E3D2FFD; Fri, 27 Feb 2026 06:38:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174289; cv=none; b=Qvm37+l/pIdCLsu5uSjgd8yaKnRV7qY07PdrEDz7YJ/Z7CJbYb7LhyKtz+z5DULqpQPmcHId2YvSp6UaFQXfan6nnW6t7M+ir2KAZ7zW/AuFfCIiOCQa8dU0RwyNUOfdBbGSUcIgUkZa2FG+ZoVxAFoFL35p9TaN3BVxkMErg7I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174289; c=relaxed/simple; bh=lYXlCSOlof3iJWlivc1wAhYnmrROuKYSuoCzxMjxJa8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JIHRcYWobCXtm74LvrXoVenQYtx+M54Jwevdm5uaQLpY9IAUlYOzfY1gyM1OADGex9Ek//UkqNmAPCcVLypelOlgJOYlQXv7lUYkSvFUbYk/pPP1v97sTmp5NyIPssoplMK9FDaCdKSE2pKL0+Lam5euqrTk3MVCxbVAHjKoAFQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=rhPeT7TB; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="rhPeT7TB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1772174283; bh=lYXlCSOlof3iJWlivc1wAhYnmrROuKYSuoCzxMjxJa8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=rhPeT7TB6hjpvbsxthhRBYTiTPvxyUPiwiGrh7T3T3mMHNhmyUV/iqnGfyj7NNOX2 Q24ARvy0/KoSwz9UW/vmArbTOVV7gpKMQ5WdjvwA/zl1tgoWcxeuigQTyRYhCnOgXo 7AS+EiTOLZ9U4vosJPAkjpRR5/uPFL1OoR2vp+wk= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 27 Feb 2026 07:38:06 +0100 Subject: [PATCH 8/9] kbuild: uapi: simplify libc dependency logic 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: <20260227-kbuild-uapi-libc-v1-8-c17de0d19776@weissschuh.net> References: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> In-Reply-To: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> To: Nathan Chancellor , Nicolas Schier , Brian Cain Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-hexagon@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772174282; l=1163; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=lYXlCSOlof3iJWlivc1wAhYnmrROuKYSuoCzxMjxJa8=; b=bQzJfg6vPv/Fl1mpp1fejADgZOE9FVlE3s6iaCVo78XjmcBc671rlrMQvCmNVSkVY+L847PNy Iaj4CiAlek+AUtCl83xBDvJWI+u7n3Bol0OXNZILnqAP4SlaPKKzJUa X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= The only left user of the condition inverts it. Invert the condition completely and simplify its user. Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Arnd Bergmann Reviewed-by: Nathan Chancellor Reviewed-by: Nicolas Schier Tested-by: Nicolas Schier --- usr/include/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index d352280b0e4a..845d06b63c2b 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -137,14 +137,14 @@ endif =20 always-y :=3D $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '= *.h' 2>/dev/null)) =20 -target-no-libc =3D $(filter-out $(uses-libc), $*.h) +target-libc =3D $(filter $(uses-libc), $*.h) target-can-compile =3D $(filter-out $(no-header-test), $*.h) =20 # Include the header twice to detect missing include guard. quiet_cmd_hdrtest =3D HDRTEST $< cmd_hdrtest =3D \ $(CC) $(c_flags) -fsyntax-only -Werror -x c /dev/null \ - -nostdinc $(if $(target-no-libc), , -I $(srctree)/usr/dummy-include) \ + -nostdinc $(if $(target-libc), -I $(srctree)/usr/dummy-include) \ $(if $(target-can-compile), -include $< -include $<); \ $(PERL) $(src)/headers_check.pl $(obj) $<; \ touch $@ --=20 2.53.0 From nobody Thu Apr 9 12:08:07 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 B6D763B961B; Fri, 27 Feb 2026 06:38:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174290; cv=none; b=JCgA33opuggwdmltGxi6im7gTIG0epDxOVtFl30aXOKgB0Jl0c8iyChKITDRZx7nYuVnNUj04LoUY9WwRzYFK7UI3sZvbJuXO3QNi5iC8tTUcaS35LFIX2dEdUdIV+sTAIigtnlT0te+GU/YBxifDaxvGcS65Qz0TRU5FqCwgho= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174290; c=relaxed/simple; bh=bkXGwvvaOvc0BEh/UPqlv0oKwlhbzEGpNzwjMPjItm8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bfFoY70vx1KY5ZPc0n3+ZvQ/pVLvYC92oUViq9Xp3i//78nlFKebXapqxyk41+N01OSUQ8T+XDIVGTdfjORhQOHGHpcFK93/ybz/P/PeNXLJaYClZm04LnVeNIfv7XF7UJC4JmOz/tBwPMg3g9pnVlwKv0b9D4b/QHFryEykWXM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=ZUZg+IrQ; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="ZUZg+IrQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1772174283; bh=bkXGwvvaOvc0BEh/UPqlv0oKwlhbzEGpNzwjMPjItm8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ZUZg+IrQbZIv5UkzEK+Njg+e09jDUUZkY/oWCQ3ZpkU5C5RRAatNSMMGbDZjn/ASH LupyXk67UKjK+86JtWYnj3niQ28654dWTv3CRnNHBKC2B+Xa/7A+IcTKQfN1nLnECV I0FVJyccIhriBFr/7xAQ6s90G5oHIpZIl82Gv24c= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 27 Feb 2026 07:38:07 +0100 Subject: [PATCH 9/9] kbuild: uapi: remove now unneeded guard headers 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: <20260227-kbuild-uapi-libc-v1-9-c17de0d19776@weissschuh.net> References: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> In-Reply-To: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> To: Nathan Chancellor , Nicolas Schier , Brian Cain Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-hexagon@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772174282; l=1090; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=bkXGwvvaOvc0BEh/UPqlv0oKwlhbzEGpNzwjMPjItm8=; b=rYE5gUNrshLbWx7rPwMmoa1PUEr8jFZdzgkTzSi4rkRdR9eLPLv92HKnFmFq1AnNKisEsjSDh zV4KjucMC2EA6czxzuumwfoCOZYd1CXyWB9V8WRSvcHfiK5K7BkkORT X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= The test compilation does not allow usage of the toolchain headers anymore, so these dummy headers are not needed anymore. Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Arnd Bergmann Reviewed-by: Nathan Chancellor Reviewed-by: Nicolas Schier Tested-by: Nicolas Schier --- usr/dummy-include/stdbool.h | 7 ------- usr/dummy-include/stdlib.h | 7 ------- 2 files changed, 14 deletions(-) diff --git a/usr/dummy-include/stdbool.h b/usr/dummy-include/stdbool.h deleted file mode 100644 index 54ff9e9c90ac..000000000000 --- a/usr/dummy-include/stdbool.h +++ /dev/null @@ -1,7 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef _STDBOOL_H -#define _STDBOOL_H - -#error "Please do not include from exported headers" - -#endif /* _STDBOOL_H */ diff --git a/usr/dummy-include/stdlib.h b/usr/dummy-include/stdlib.h deleted file mode 100644 index e8c21888e371..000000000000 --- a/usr/dummy-include/stdlib.h +++ /dev/null @@ -1,7 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef _STDLIB_H -#define _STDLIB_H - -#error "Please do not include from exported headers" - -#endif /* _STDLIB_H */ --=20 2.53.0