From nobody Tue Apr 7 05:44:52 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 3BBD63CEB81; Mon, 16 Mar 2026 16:52: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=1773679928; cv=none; b=BDNYvFDmYccB8NwaehzD+5ZyeGJYSH6iQgbxT3rZyxs0fqINhEkctYoElkOL0Y/1ZJKjHlle5NsE42PTwzgRIF1eKgc4WiY4uMLfo2WDyWMuvYRle2bQe1YgSpLNqvCFQyaUfni2m3ZdBfTW2H3fA64gpJQ7oAYltycOBfeGQ1Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773679928; c=relaxed/simple; bh=z2AvZfG8GcS99zV3OiirtbN+15thog5DinQQx8lMQUw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GkfcvOuZSbbiaPjyc7n0ZY2oTWzsSEdMFjqKElSiYyWasq9uGuq/MjgI5Gs6MK35LQFYb93qNnIR6dNTukVcXIvJ6Uzt5T/7FpX2WEmiF3QK4m50s+OlV6Dr5DFvTyWIDn9IUTJqdx8rapMpjMHXuDbAPSXWtiL5mB91jlyZV88= 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=RF48Uf7w; 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="RF48Uf7w" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1773679918; bh=z2AvZfG8GcS99zV3OiirtbN+15thog5DinQQx8lMQUw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=RF48Uf7w08mamxeCy3LPzIfRte8hXMAqLNHTsTNwTchjLTjvhsPB1oHCls2KGCIlb /QuUwvLzCUg70V1GM5YxkU3nzL4KQwHERQRlrbPZqvJDONu6bA8RQ+xa+DtnMjmLEH bf3y5mgJ5kc038ajEvF+w5qIy717V7t0rOYFvab8= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Mon, 16 Mar 2026 17:52:00 +0100 Subject: [PATCH v2 3/5] kbuild: uapi: handle UML in architecture-specific exclusion lists 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: <20260316-kbuild-uapi-c-v2-3-35d6d0ed863f@weissschuh.net> References: <20260316-kbuild-uapi-c-v2-0-35d6d0ed863f@weissschuh.net> In-Reply-To: <20260316-kbuild-uapi-c-v2-0-35d6d0ed863f@weissschuh.net> To: Arnd Bergmann , Nathan Chancellor , Nicolas Schier Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773679918; l=1801; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=z2AvZfG8GcS99zV3OiirtbN+15thog5DinQQx8lMQUw=; b=rqcVN0QYUjyJcbX8MmtF13vqEKYIEQ6bHNjZ9p0Ho6d08Napv4js/F8ir9osEv5DNYc7hNXc7 BvBHQ9bFY1YArTzlihvWr6CfK3qtmhSb0utS85bDkRifgnv7LqcSfB7 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= When building User Mode Linux SRCARCH is set to 'um', while the actual underlying architecture is provided in HEADER_ARCH. Allow the exclusion lists to work on UML by comparing against HEADER_ARCH when that is available. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Nathan Chancellor --- usr/include/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index 74f5ba24bb29..edeaf9d778c4 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -7,6 +7,7 @@ # -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 -Werror=3Dimplicit-function-declaration +UAPI_ARCH :=3D $(or $(HEADER_ARCH),$(SRCARCH)) =20 override c_flags =3D $(KBUILD_USERCFLAGS) $(UAPI_CFLAGS) -Wp,-MMD,$(depfil= e) =20 @@ -48,11 +49,11 @@ no-header-test +=3D xen/privcmd.h =20 # More headers are broken in some architectures =20 -ifneq ($(filter arc openrisc xtensa nios2, $(SRCARCH)),) +ifneq ($(filter arc openrisc xtensa nios2, $(UAPI_ARCH)),) no-header-test +=3D linux/bpf_perf_event.h endif =20 -ifeq ($(SRCARCH),sparc) +ifeq ($(UAPI_ARCH),sparc) no-header-test +=3D asm/uctx.h no-header-test +=3D asm/fbio.h endif @@ -122,15 +123,15 @@ uses-libc +=3D linux/wireless.h uses-libc +=3D regulator/regulator.h uses-libc +=3D scsi/fc/fc_els.h =20 -ifeq ($(SRCARCH),hexagon) +ifeq ($(UAPI_ARCH),hexagon) uses-libc +=3D asm/sigcontext.h endif =20 -ifeq ($(SRCARCH),nios2) +ifeq ($(UAPI_ARCH),nios2) uses-libc +=3D asm/ptrace.h endif =20 -ifeq ($(SRCARCH),s390) +ifeq ($(UAPI_ARCH),s390) uses-libc +=3D asm/chpid.h uses-libc +=3D asm/chsc.h endif --=20 2.53.0