* 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* Re: drm-rust-next needs a commit from rust-fixes
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
0 siblings, 1 reply; 3+ messages in thread
From: Danilo Krummrich @ 2026-11-04 0:10 UTC (permalink / raw)
To: John Hubbard
Cc: nova-gpu@lists.linux.dev, Alexandre Courbot,
rust-for-linux@vger.kernel.org
On Wed Nov 4, 2026 at 12:25 AM CET, John Hubbard wrote:
> We still need the fix [1] for this problem applied to drm-rust-next,
> as of today's (Nov 3, 2026) branch, anyway:
We can't apply a duplicate of that commit to drm-rust-next, but I will backmerge
-rc2 (which should contain the fix) once it is tagged.
In the meantime, I suggest using bindgen 0.72.1. If you don't want to change
your installed version, you can install it separately:
cargo install bindgen-cli --version 0.72.1 --locked --root /tmp/bindgen-0.72.1
Then pass BINDGEN=/tmp/bindgen-0.72.1/bin/bindgen to your make command.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: drm-rust-next needs a commit from rust-fixes
2026-11-04 0:10 ` Danilo Krummrich
@ 2026-11-04 2:33 ` John Hubbard
0 siblings, 0 replies; 3+ messages in thread
From: John Hubbard @ 2026-11-04 2:33 UTC (permalink / raw)
To: Danilo Krummrich
Cc: nova-gpu@lists.linux.dev, Alexandre Courbot,
rust-for-linux@vger.kernel.org
On 11/3/26 4:10 PM, Danilo Krummrich wrote:
> On Wed Nov 4, 2026 at 12:25 AM CET, John Hubbard wrote:
>> We still need the fix [1] for this problem applied to drm-rust-next,
>> as of today's (Nov 3, 2026) branch, anyway:
>
> We can't apply a duplicate of that commit to drm-rust-next, but I will backmerge
> -rc2 (which should contain the fix) once it is tagged.
Sounds good, and that's only a few days away too.
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