* [jfern:nova/mm 6/31] error[E0133]: access to union field is unsafe and requires unsafe block
@ 2026-02-20 17:13 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-20 17:13 UTC (permalink / raw)
To: Joel Fernandes; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git nova/mm
head: d44aeb89db2e47449220a4721f5e89202bd7b128
commit: 6e05d1c7b5efa36e6e1c8581e1645c00eb6ab0f9 [6/31] rust: gpu: Add GPU buddy allocator bindings
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260221/202602210130.86eZe0Gi-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260221/202602210130.86eZe0Gi-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602210130.86eZe0Gi-lkp@intel.com/
All errors (new ones prefixed by >>):
>> error[E0133]: access to union field is unsafe and requires unsafe block
--> rust/kernel/ffi/clist.rs:331:28
|
331 | |p| &raw const (*p).$($field).+;
| ^^^^^^^^^^^^^ access to union field
|
::: rust/kernel/gpu/buddy.rs:433:21
|
433 | let clist = clist_create!(unsafe {
| _____________________-
434 | | self.list.as_raw(),
435 | | Block,
436 | | bindings::gpu_buddy_block,
437 | | __bindgen_anon_1.link
438 | | });
| |__________- in this macro invocation
|
= note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
= note: this error originates in the macro `clist_create` (in Nightly builds, run with -Z macro-backtrace for more info)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-02-20 17:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-20 17:13 [jfern:nova/mm 6/31] error[E0133]: access to union field is unsafe and requires unsafe block kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox