linux-next: build failure after merge of the rust tree

Stephen Rothwell
2025-05-12T09:40:11Z

[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]

Hi all,

After merging the rust tree and the other rust trees, today's linux-next
build (x86_64 allmodconfig) failed like this:

error[E0599]: no method named `cast_mut` found for raw pointer `*mut auxiliary_device` in the current scope
--> rust/kernel/auxiliary.rs:239:83
|
239 | let adev = unsafe { container_of!(dev, bindings::auxiliary_device, dev) }.cast_mut();
| ^^^^^^^^
|
help: there is a method `as_mut` with a similar name
|
239 | let adev = unsafe { container_of!(dev, bindings::auxiliary_device, dev) }.as_mut();
| ~~~~~~

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0599`.

Not sure what caused this and that file has not changed from
next-20250509, so I have used the rust tree from next-20250509 for today.
Clearly I need help with the merge resolution here.

--
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]