From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E6BE83E51CB; Wed, 23 Sep 2026 17:22:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790184157; cv=none; b=pPs3HGiKeZgnEh5UqZm2cnyVypwOhrJ+5ADcmte0H4O7KvintFWyzCJZ4r65L/VgnBRZgZEOUlQBZMTeS6AU/pZBbrhe8mx3WV64A5NIJe74gHq35x6YDKjMLvNSEMlVoQY0Wl3B06vbKfWu8/QD/0U4xkLGr4WcCogKT75YA2s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790184157; c=relaxed/simple; bh=kx145CbsbOZNlrJo3YNnQ6X8zzclemP0tqvdTYAGrNw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=t2wj613WVcZ27NgEEt/Vrf9sgEzxLW2H4dHnQVgf/4Wn9hZR0m28uFJcXFrDu8VqID435N+xmDVSH25sXjgmjzSC4mgsp9j7f8czTg+axODPzuIc2qsHWFKZ8ij5MuLDTIugd9eVHOtPmXth3kkBjGVD/7wcO39d61dSKNHFRo8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CW3sRhYG; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CW3sRhYG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E59621F000FF; Wed, 23 Sep 2026 17:22:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790184155; bh=RpyglNkLvgtO+g1zDJNpkY3JopuChXGi3ttcKAuST+8=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=CW3sRhYGfPGHFUr2248WZC9Hf230RyEjEzZbWKjU10wEURx4jBU49P/EFHuafJBm+ OhE4O8riLvUVZKfj4H/BTTHlZzJXwTyytVTgwGIT0k1AJydF/bYU9STRDiFSRDNFBB eRgu/eySu3QFdveEJjwRKEwWO4hyeDY1mumbYmXPEJvmSbke1OrkvTcQnvBAiPLc3y YZgouDBBvQYnRYKk1KGsaCzYvtSWubA0PVabCoAPotC2a41sy+iXsOMwez5xJf7Uu+ avQKUwuhymuDeaGIWkBiUBI62/GgIEWU2vBBJuAZWr1gPu5RfuCY4aNh0ACOFZxBOi mHsJbxX3+BTAg== From: "Lorenzo Stoakes (ARM)" Date: Wed, 23 Sep 2026 18:18:09 +0100 Subject: [PATCH v4 20/22] rust: make exports.o depend on the headers generated for it 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: 7bit Message-Id: <20260923-build-speedup-v4-20-73128809a4a4@kernel.org> References: <20260923-build-speedup-v4-0-73128809a4a4@kernel.org> In-Reply-To: <20260923-build-speedup-v4-0-73128809a4a4@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, Petr Pavlu , "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=owGbwMvMwCV2fu7ZrsZH9SKMp9WSGLK2cF7dpf38yyJDZYecy4KWgWrRi7NmPFe7ENX/WW0hx 8TavfoyHaUsDGJcDLJiiizPv4jvDxIJm9d5wd8NZg4rE8gQBi5OAZiI0RtGhhuHD+28qdz11fP9 s0evqt3jWD5W/4r/U/FSRNopgLHaNZWRYVrvjjMvdq+d25Z0MPWC1yelO+89WkNXcjr8vFpf37l 8DRMA X-Developer-Key: i=ljs@kernel.org; a=openpgp; fpr=E7F417BF5214569E89D04F46CF9DCD8A81E27F14 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