From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4B49FC982D6 for ; Thu, 17 Sep 2026 16:10:50 +0000 (UTC) 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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Gp2m2KOK/WyoYWXWr9os1kxS/jVKvVtyWdk0JsXBP8M=; b=G07LZpV63puq9Y xCJQUDDobPJ9rOOGMon6z3EdUErdni2M4aUYOGfaM/yRrAT7wKXbkt3Gtkzlr7bvnvB7XAxlnIu9C aTus4Fy/GyqAx7Uy9ia1WO59jOqiT7pGROuHXjgPM3pjus7ta1G2GZkBt//KP6hb1g7r3XMz3Or0X wSe06tZFOY+r/hwqB5iP12ikLUN1JLtVJetk1OBvvCe5ALw5HiOosY/H3/idIq1Mzp1+pUhIQ19cU brIjRVIWyUVdf+dyYV0gmRO1MypZzMSMXvgIZmq06H87Rer57PEiV7SX8caIqYahddpkt3jN608r1 w7El6rBHaaiC6FI56MRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7Eh3-0000000Bqou-1SIs; Thu, 17 Sep 2026 16:10:37 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x7Eh2-0000000Bqo0-1RXB; Thu, 17 Sep 2026 16:10:36 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id C3271602D1; Thu, 17 Sep 2026 16:10:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA97C1F000FF; Thu, 17 Sep 2026 16:10:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789661435; bh=RpyglNkLvgtO+g1zDJNpkY3JopuChXGi3ttcKAuST+8=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=Jj2Apv/RAB9TOG2YqrhGifprY538wgdFC6LQ/tMnOYMcmrGKhHrqeBpY8fw2FxUgu Jsf0NME0dBmqvfrPuhCWbKUVJMIB3f8lhz3WzrsEKudSQJnj7pIHWmaT1FmWBTh5j6 56xVRnEkGOQ9uJkfgoLGHX5GQNJzv6lPH6IFQQUAxrzd3hlQ+t3ggoJpT1HyldoPcO ZRZAQo0sCNbr1rVsxQ8GmyYsus0FueyAoauXto0X/7INKe6xf8KRT+6FpTm6pBaCJQ HUJHPzTTm/nJ5aby5UK2I35kHtk4XnpyIAGgLFddfwp44Q7tavZu10yTPdQRi1GzAm nRxgbLwRE5vYQ== From: "Lorenzo Stoakes (ARM)" Date: Thu, 17 Sep 2026 17:06:28 +0100 Subject: [PATCH v3 18/20] rust: make exports.o depend on the headers generated for it MIME-Version: 1.0 Message-Id: <20260917-build-speedup-v3-18-9ecf4163ff36@kernel.org> References: <20260917-build-speedup-v3-0-9ecf4163ff36@kernel.org> In-Reply-To: <20260917-build-speedup-v3-0-9ecf4163ff36@kernel.org> To: Linus Torvalds , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Masahiro Yamada , Alexey Gladkov , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Arnd Bergmann , Catalin Marinas , Will Deacon , Mark Rutland , Ard Biesheuvel , Ilias Apalodimas , Josh Poimboeuf , Peter Zijlstra , Miguel Ojeda , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , =?utf-8?q?Onur_=C3=96zkan?= , Jonathan Corbet , Randy Dunlap , Kees Cook , "Gustavo A. R. Silva" Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-efi@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, Jens Axboe , linux-hardening@vger.kernel.org, "Lorenzo Stoakes (ARM)" X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1286; i=ljs@kernel.org; h=from:subject:message-id; bh=kx145CbsbOZNlrJo3YNnQ6X8zzclemP0tqvdTYAGrNw=; b=owGbwMvMwCV2fu7ZrsZH9SKMp9WSGLLW8P8/1p5f8WyTUldI8/e2/QX1qZN8rlboTPArUpns5 GevuPFcRykLgxgXg6yYIsvzL+L7g0TC5nVe8HeDmcPKBDKEgYtTACayQYqR4fh3vxsBLWfL9Ivn mlecfnZyCa/kdrElv/cVvBIrbxDYcpDhn6Ggyc+l3C7z5H+ffP397vOJt8/fmiUnLb438Y0724f aJl4A X-Developer-Key: i=ljs@kernel.org; a=openpgp; fpr=E7F417BF5214569E89D04F46CF9DCD8A81E27F14 X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org rust/exports.c includes the exports_*_generated.h listing the symbols of the core, bindings, kernel and helpers objects, but this is not expressed in its Makefile. This worked previously because the headers are always-y targets, and make prepare built all of the rust crates first, which is an implicit dependency. Fix this as it is a dependency of the subsequent commit. Assisted-by: LLM Signed-off-by: Lorenzo Stoakes (ARM) --- rust/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rust/Makefile b/rust/Makefile index da1a7409d984..74d21ae6f383 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -728,6 +728,11 @@ endef $(obj)/helpers/helpers.o: $(src)/helpers/helpers.c $(recordmcount_source) FORCE +$(call if_changed_rule,rust_cc_library) +# The exported symbol lists are generated from the crates' objects. +$(obj)/exports.o: $(obj)/exports_core_generated.h \ + $(obj)/exports_bindings_generated.h $(obj)/exports_kernel_generated.h \ + $(if $(CONFIG_RUST_INLINE_HELPERS),,$(obj)/exports_helpers_generated.h) + # Disable symbol versioning for exports.o to avoid conflicts with the actual # symbol versions generated from Rust objects. $(obj)/exports.o: private skip_gendwarfksyms = 1 -- 2.55.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv