rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] firmware_loader: make RUST_FW_LOADER_ABSTRACTIONS select FW_LOADER
@ 2025-11-06  2:40 Alexandre Courbot
  2025-11-06  2:40 ` [PATCH v3 1/3] " Alexandre Courbot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexandre Courbot @ 2025-11-06  2:40 UTC (permalink / raw)
  To: Luis Chamberlain, Russ Weight, Danilo Krummrich,
	Greg Kroah-Hartman, Rafael J. Wysocki, Alice Ryhl, David Airlie,
	Simona Vetter, Andrew Lunn, Heiner Kallweit, Russell King,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg,
	Trevor Gross, FUJITA Tomonori
  Cc: linux-kernel, nouveau, dri-devel, netdev, rust-for-linux,
	Alexandre Courbot

I have noticed that build fails when doing the following:

- Start with the x86 defconfig,
- Using nconfig, enable `RUST` and `DRM_NOVA`,
- Start building.

The problem is that `RUST_FW_LOADER_ABSTRACTIONS` remains unselected,
despite it being a dependency of `NOVA_CORE`. This seems to happen
because `DRM_NOVA` selects `NOVA_CORE`.

Fix this by making `RUST_FW_LOADER_ABSTRACTIONS` select `FW_LOADER`, and
by transition make all users of `RUST_FW_LOADER_ABSTRACTIONS` (so far,
nova-core and net/phy) select it as well.

`FW_LOADER` is more often selected than depended on, so this seems to
make sense generally speaking.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
---
Changes in v3:
- Remove `=y` in select statement of RUST_FW_LOADER_ABSTRACTIONS.
- Link to v2: https://lore.kernel.org/r/20251105-b4-select-rust-fw-v2-0-156d9014ed3b@nvidia.com

Changes in v2:
- Split into 3 patches.
- Link to v1: https://lore.kernel.org/r/20251104-b4-select-rust-fw-v1-1-afea175dba22@nvidia.com

---
Alexandre Courbot (3):
      firmware_loader: make RUST_FW_LOADER_ABSTRACTIONS select FW_LOADER
      gpu: nova-core: select RUST_FW_LOADER_ABSTRACTIONS
      net: phy: select RUST_FW_LOADER_ABSTRACTIONS

 drivers/base/firmware_loader/Kconfig | 2 +-
 drivers/gpu/nova-core/Kconfig        | 2 +-
 drivers/net/phy/Kconfig              | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
base-commit: ade19c5060dfa39b84a9475a4a6b05e2a8a2b3ac
change-id: 20251104-b4-select-rust-fw-aeb1e46bcee9

Best regards,
-- 
Alexandre Courbot <acourbot@nvidia.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-11-06  2:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-06  2:40 [PATCH v3 0/3] firmware_loader: make RUST_FW_LOADER_ABSTRACTIONS select FW_LOADER Alexandre Courbot
2025-11-06  2:40 ` [PATCH v3 1/3] " Alexandre Courbot
2025-11-06  2:40 ` [PATCH v3 2/3] gpu: nova-core: select RUST_FW_LOADER_ABSTRACTIONS Alexandre Courbot
2025-11-06  2:40 ` [PATCH v3 3/3] net: phy: " Alexandre Courbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).