From patchwork Thu Jul 4 14:35:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 1956910 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=eU1nu0TI; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=tc/9AtSI; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WFK590wDyz1xqs for ; Fri, 5 Jul 2024 00:38:21 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sK1Fhl6pl4vRe4AULBYFxYZLLKHPH+X2nRFz5sRxfKE=; b=eU1nu0TIhwBlcP 0Nm4BxSH/kIr62FMXfqb2uZEZvsCwVmR6ZoJbbaph7KFchRMIlIG/zJ7L084nrtc1mWc/vEeMVEnd BkTmRHXfNFy0mgYMJ24FYAPsIZhTMH58BHFCbbNE7llYBRpqiobp9LsBsg9atx5jHP9PHRtFhy7mW tWs0K4rpbWh1QXEZkvApCqzj3Wz0vcctpmWlg9FauVp0bCvpGrLcCc6MeuMPpnh4EQmhHHbnpqVFd Oyt/ehtsjjw10u0KGl2R+lMWNhn4UBUgfhHyEcpcJZ8Gzao+hTiR9DjIIj7HeyPsqTVnDwwXb0JTy IzNZ3anVpKl66frUqZFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPNbH-0000000DVI9-1MMQ; Thu, 04 Jul 2024 14:38:19 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPNaJ-0000000DUbI-099s; Thu, 04 Jul 2024 14:37:20 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 2F776627AA; Thu, 4 Jul 2024 14:37:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAC61C4AF0F; Thu, 4 Jul 2024 14:37:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720103837; bh=u4YCGPtZ1hWFRjjAbr/hm2CUFSMfgKe1rJDb2sF1EEc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tc/9AtSIv5Qo2uEtjpY5zLOUDy7pcNjquWveACh0n01h2HakOuJc/AssgiwDtzMFG ZgsSyrktW/wag3+XshQJeRGnAyJ4fRLbul8Crgu41615xmDkZ1txy9uJu1kt3ZqCxu 9FaXeFUEwzz7/MNoErM4N4ka4k8xk/Mgsav3s+vqiZ38qYs9PbrDAMjpBH85H+Ffkr GD3vABxdXpGiDYO2yweztXzoufQlbvApRhfsFHBib7/8oymLavFV7+s1od7ZxTthJ3 bKVfCD2+fNrK8GbFcGmQUA4i1IXn0Ojy+q9dFPs7sF8lEoCiZpiGSPFfjgwFJNUMUM w5Dm3N4kSp2qw== From: Arnd Bergmann To: linux-arch@vger.kernel.org Cc: Arnd Bergmann , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Guo Ren , Brian Cain , Huacai Chen , WANG Xuerui , Dinh Nguyen , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Paul Walmsley , Palmer Dabbelt , Albert Ou , Rich Felker , John Paul Adrian Glaubitz , "David S. Miller" , Andreas Larsson , Christian Brauner , Mark Rutland , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev, linux-openrisc@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 05/17] kbuild: verify asm-generic header list Date: Thu, 4 Jul 2024 16:35:59 +0200 Message-Id: <20240704143611.2979589-6-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240704143611.2979589-1-arnd@kernel.org> References: <20240704143611.2979589-1-arnd@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240704_073719_247094_BFBD33EE X-CRM114-Status: GOOD ( 11.57 ) X-Spam-Score: -2.5 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Arnd Bergmann In order to integrate the system call header generation with generating the asm-generic wrappers, restrict the generated headers to those that actually exist in include/asm-generic/. Content analysis details: (-2.5 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [2604:1380:4641:c500:0:0:0:1 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Arnd Bergmann In order to integrate the system call header generation with generating the asm-generic wrappers, restrict the generated headers to those that actually exist in include/asm-generic/. The path is already known, so add these as a dependency. The asm-generic/bugs.h header was removed in commit 61235b24b9cb ("init: Remove check_bugs() leftovers"), which now causes a build failure, so drop it from the list. Signed-off-by: Arnd Bergmann --- include/asm-generic/Kbuild | 1 - scripts/Makefile.asm-generic | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/asm-generic/Kbuild b/include/asm-generic/Kbuild index b20fa25a7e8d..df7ed81c4589 100644 --- a/include/asm-generic/Kbuild +++ b/include/asm-generic/Kbuild @@ -9,7 +9,6 @@ mandatory-y += archrandom.h mandatory-y += barrier.h mandatory-y += bitops.h mandatory-y += bug.h -mandatory-y += bugs.h mandatory-y += cacheflush.h mandatory-y += cfi.h mandatory-y += checksum.h diff --git a/scripts/Makefile.asm-generic b/scripts/Makefile.asm-generic index 1486abf34c7c..69434908930e 100644 --- a/scripts/Makefile.asm-generic +++ b/scripts/Makefile.asm-generic @@ -46,7 +46,7 @@ all: $(generic-y) $(if $(unwanted),$(call cmd,remove)) @: -$(obj)/%.h: +$(obj)/%.h: $(srctree)/$(generic)/%.h $(call cmd,wrap) # Create output directory. Skip it if at least one old header exists