* Re: [RFC PATCH 2/4] rust: sync: Add dma_fence abstractions
[not found] <20260203081403.68733-4-phasta@kernel.org>
@ 2026-02-05 12:35 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-05 12:35 UTC (permalink / raw)
To: Philipp Stanner; +Cc: llvm, oe-kbuild-all
Hi Philipp,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:
[auto build test WARNING on rust/rust-next]
[also build test WARNING on linus/master v6.19-rc8]
[cannot apply to tip/locking/core next-20260204]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Philipp-Stanner/rust-list-Add-unsafe-for-container_of/20260203-162013
base: https://github.com/Rust-for-Linux/linux rust-next
patch link: https://lore.kernel.org/r/20260203081403.68733-4-phasta%40kernel.org
patch subject: [RFC PATCH 2/4] rust: sync: Add dma_fence abstractions
config: x86_64-buildonly-randconfig-004-20260205 (https://download.01.org/0day-ci/archive/20260205/202602052045.wrd8TaGb-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/20260205/202602052045.wrd8TaGb-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/202602052045.wrd8TaGb-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> warning: creating a shared reference to mutable static
--> rust/doctests_kernel_generated.rs:16156:18
|
16156 | unsafe { CHECKER.store(true, atomic::Ordering::Relaxed); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
= note: `#[warn(static_mut_refs)]` on by default
--
>> warning: creating a shared reference to mutable static
--> rust/doctests_kernel_generated.rs:16182:21
|
16182 | unsafe { assert_eq!(CHECKER.load(atomic::Ordering::Relaxed), true); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread