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

From: Stephen Rothwell <[email-masked]>
Date: Mon, 12 May 2025 19:40:08 +1000

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