Rust for Linux List
 help / color / mirror / Atom feed
* drm-rust-next needs a commit from rust-fixes
@ 2026-11-03 23:25 John Hubbard
  2026-11-04  0:10 ` Danilo Krummrich
  0 siblings, 1 reply; 3+ messages in thread
From: John Hubbard @ 2026-11-03 23:25 UTC (permalink / raw)
  To: nova-gpu@lists.linux.dev, Danilo Krummrich, Alexandre Courbot,
	rust-for-linux@vger.kernel.org

Hi Danilo, Alex,

We still need the fix [1] for this problem applied to drm-rust-next,
as of today's (Nov 3, 2026) branch, anyway:


$ make
  DESCEND objtool
  RUSTC L rust/kernel.o
error[E0277]: the trait bound `bindings::__BindgenOpaqueArray8<[u8; 64]>: pin_init::Zeroable` is not satisfied
    --> rust/kernel/block/mq/tag_set.rs:41:49
     |
41   |         let tag_set: bindings::blk_mq_tag_set = pin_init::zeroed();
     |                                                 ^^^^^^^^^^^^^^^^^^ the trait `pin_init::Zeroable` is not implemented for `bindings::__BindgenOpaqueArray8<[u8; 64]>`
     |
     = help: the following other types implement trait `pin_init::Zeroable`:
               ()
               (A, B, C, D, E, F, G, H, I, J)
               (B, C, D, E, F, G, H, I, J)
               (C, D, E, F, G, H, I, J)
               (D, E, F, G, H, I, J)
               (E, F, G, H, I, J)
               (F, G, H, I, J)
               (G, H, I, J)
             and 6196 others
     = note: required for `bindings::spinlock` to implement `pin_init::Zeroable`
     = note: 1 redundant requirement hidden
     = note: required for `blk_mq_tag_set` to implement `pin_init::Zeroable`
note: required by a bound in `pin_init::zeroed`
    --> /kernel_work/linux-github/rust/pin-init/src/lib.rs:1688:24
     |
1688 | pub const fn zeroed<T: Zeroable>() -> T {
     |                        ^^^^^^^^ required by this bound in `zeroed`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0277`.
make[2]: *** [rust/Makefile:799: rust/kernel.o] Error 1
make[1]: *** [/kernel_work/linux-github/Makefile:1423: prepare] Error 2
make: *** [Makefile:248: __sub-make] Error 2


[1] commit 57d916a3eb76 ("rust: bindings: derive Zeroable for bindgen's opaque array wrappers")
    from rust-fixes


thanks,
-- 
John Hubbard


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

end of thread, other threads:[~2026-11-04  2:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-03 23:25 drm-rust-next needs a commit from rust-fixes John Hubbard
2026-11-04  0:10 ` Danilo Krummrich
2026-11-04  2:33   ` John Hubbard

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