From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793816524; b=VQ8JpW0CY2qhaxNO7GpXYYVF3RAVGhlz/caiUSYkiaLLZvJudSJqqT+GE5epcM3SIUe7 xAKCuXJrE+DrBlLIWQXqZnMxYlQA5LL9Wa60UurauOetY7J15qg/x8WAq7wxpXVsU+78q GMnNi1EQL4vYGPFcLw9FtEOTmLYQasg47o8H/+vvQ7MHhyAAE2WG+DOGupqtFn82XDJ1I w60Peab04FPR466mq3wtfBBJowIbt4hovLUJ/rOaNKIAv2vow7HYoWSxTbeP+k3FZDtVY 5OebHeKtTC7OYcZTX9Mg5dIUkPk+i6bU+00KBpvmPL/BL8IOVuNfZ87dlxW0q9DWfOA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793816524; h=Received:DKIM-Signature:From:Date:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc: X-Mailer:X-Developer-Signature:X-Developer-Key; bh=VT57VP7WgX6dODi86xucfYo8nlOoB8EWvy9sdmMIM1Q=; b=ZlnPQXcHDFqv+8TW228LAq8m4gUcFCpPcM1g+qagV7O/zQuIAr0V3/3lVgJwp2lBkgZo 7Q6VFZ9L5xneTIqRQjwIj1eXkCDUKgu7Fj+HUzcn3caUBVARQMKxMwm1e9mKyZIeuoyQk aZxdsKiXEj760W1dRUEVxyfJgUikJHYRtlRnkHlH60zOG9vk07m443NRQPNhjwD3VxMpy q52yuzGUQqVY35gOzmbkXd25LBXOBDRq6r6QfgT3gWAWicbTlsnVhzorUbQ8wEwuM8Zbm rQc0mXnLBpbc+n7A8feTFOf8FEteD4aB6skJwHeRU//8nyVlofqC/kwqsJzwrNaXhZA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="mai22/eh"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8914B606D837; Wed, 4 Nov 2026 18:22:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mai22/eh Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A3C61F000C1; Wed, 4 Nov 2026 18:21:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793816524; bh=VT57VP7WgX6dODi86xucfYo8nlOoB8EWvy9sdmMIM1Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=mai22/ehnYQUJcRGvan94k0/+b6zIHCBcC1h7Izfql+PLjJpBcZeNbw/U/Ej644Yw giX6ua6GsiCnQFaFWt4TjPOQ8hEcHJWV53JArvxhLCzs/3ICQQ/dX3lSkkmka76Gxw dJeHGdo1bsqlhPD/mSPHo0ujvpsEJKmun5AWjRl85gdGWoEJQF/Fw5N33mPJYbPxrZ 5/2Fky4g2+meb1USCZVxM6Qb/YC/rFTOoE0052GM1s9HY1GbAeX7j+Sa0fmFEYhhyQ ou8zs04Lo62I0T9t3r2d6mIHkGf/me1R48r5vQpWRhoitrnuW2HBjfay74Nceg98Ou ps8WEleSqxrKg== From: "Lorenzo Stoakes (ARM)" Date: Wed, 04 Nov 2026 18:20:28 +0000 Subject: [PATCH v5 10/11] rust: make exports.o depend on the headers generated for it X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261104-build-speedup-v5-10-0f6018be8dae@kernel.org> References: <20261104-build-speedup-v5-0-0f6018be8dae@kernel.org> In-Reply-To: <20261104-build-speedup-v5-0-0f6018be8dae@kernel.org> To: Linus Torvalds , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Geert Uytterhoeven , Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen , Aaron Tomlin , 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?= Cc: ljs@kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-modules@vger.kernel.org, rust-for-linux@vger.kernel.org, Nicolas Schier X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1318; i=ljs@kernel.org; h=from:subject:message-id; bh=x/2bqNrY4S1OgFbAxfQ/C9WsSucYeef8VeGkwgt+MGg=; b=owGbwMvMwCV2fu7ZrsZH9SKMp9WSGLJel+dtetva+Hx/ZHFROs+ly3vPxhdm/hNrXsVz+Yvk/ kqNnSvYO0pZGMS4GGTFFFmefxHfHyQSNq/zgr8bzBxWJpAhDFycAjCRSClGhnk/LqWUOs46nLdK Z8aJAxf2vQ99el1lQqjsZIlpUsdiXmoyMvxxlQ4sfTtxec8kg9cW2bpqR3kPbQ9j2CPK8b3YxXb +Ew4A 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. Reviewed-by: Nicolas Schier Signed-off-by: Lorenzo Stoakes (ARM) --- rust/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rust/Makefile b/rust/Makefile index 0ac9ab28cc2b..cee016cd8d32 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.56.0