[tty:tty-testing 11/13] error[E0425]: cannot find type `BoundInternal` in module `device`

kernel test robot <[email protected]>
Newsgroups org.kernel.vger.linux-serial,dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
head:   ec7dbdaa11c7be1806f0ea1a272ee6daee42a843
commit: cbc11f4e978d1ee0bc857a9c51d43bbae6966f1d [11/13] rust: add basic serial device bus abstractions
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260717/[email protected]/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260717/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> error[E0425]: cannot find type `BoundInternal` in module `device`
   --> rust/kernel/serdev.rs:256:58
   |
   256 |         let sdev = unsafe { &*sdev.cast::<Device<device::BoundInternal>>() };
   |                                                          ^^^^^^^^^^^^^
   |
   ::: rust/kernel/device.rs:525:1
   |
   525 | pub struct CoreInternal<'a>(PhantomData<&'a ()>);
   | ------------------------------------------------- similarly named struct `CoreInternal` defined here
   |
   help: a struct with a similar name exists
   |
   256 -         let sdev = unsafe { &*sdev.cast::<Device<device::BoundInternal>>() };
   256 +         let sdev = unsafe { &*sdev.cast::<Device<device::CoreInternal>>() };
   |

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.