Rust for Linux List
 help / color / mirror / Atom feed
* rant on Rust in kernel
@ 2026-11-12 15:37 Andy Shevchenko
  2026-11-12 21:42 ` Nathan Chancellor
  2026-11-12 21:59 ` Miguel Ojeda
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Shevchenko @ 2026-11-12 15:37 UTC (permalink / raw)
  To: Miguel Ojeda, Danilo Krummrich, . Boqun Feng, Nathan Chancellor,
	Nicolas Schier
  Cc: rust-for-linux, linux-kbuild

Hi!

(Cc'ed to Rust and Kbuild people)

I have two quite annoying things that lately Rust brought to kernel
(in some way).

First of all, it broke the old and nice kernel feature to build a subset with
allmodconfig or allyesconfig. For instance,

  make LLVM=-22 O=... W=1 C=1 CF=-D__CHECK_ENDIAN__ -j64 allyesconfig -- fs/pstore/

Now this makes a very good fireworks out of some rust.

Ex.:

error[E0609]: no field `disconnect` on type `usb_driver`
  --> .../rust/kernel/usb.rs:57:27
   |
57 |             (*udrv.get()).disconnect = Some(Self::disconnect_callback);
   |                           ^^^^^^^^^^ unknown field
   |
   = note: available field is: `_address`

Second one, is that now with the above feature the build is finished like
a minute (sic!) later than it was before on a good server with 24 modern
CPU cores. It started happening somewhat a release ago.

I have no clue what is there, but I will appreciate if it gets fixed ASAP!
I rely on the above feature to save my time when doing test builds.

My repo is Linux Next based, the compilers are standard to what Debian unstable
provides. Ask me any details or help with testing any proposed patches. I'm
really disappointed of having these issues.

-- 
With Best Regards,
Andy Shevchenko



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

end of thread, other threads:[~2026-11-12 21:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12 15:37 rant on Rust in kernel Andy Shevchenko
2026-11-12 21:42 ` Nathan Chancellor
2026-11-12 21:59 ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox