* [jfern:nova-core-experiments 53/411] warning: this public function might dereference a raw pointer but is not marked `unsafe`
@ 2025-03-08 3:07 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-08 3:07 UTC (permalink / raw)
To: Abdiel Janulgue; +Cc: oe-kbuild-all, Dave Airlie
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git nova-core-experiments
head: 3b93174b3502247b0c46bd54a7cf5f4105274edb
commit: a7533bb67625d3b2624275d3df8292c1ee6f4daf [53/411] rust: page: Extend support to vmalloc_to_page
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250308/202503081056.KBKFX7ex-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250308/202503081056.KBKFX7ex-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/202503081056.KBKFX7ex-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> warning: this public function might dereference a raw pointer but is not marked `unsafe`
--> rust/kernel/page.rs:93:48
|
93 | if unsafe { !bindings::is_vmalloc_addr(cpu_addr) } {
| ^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref
= note: `-W clippy::not-unsafe-ptr-arg-deref` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::not_unsafe_ptr_arg_deref)]`
--
>> warning: this public function might dereference a raw pointer but is not marked `unsafe`
--> rust/kernel/page.rs:99:55
|
99 | let page = unsafe { bindings::vmalloc_to_page(cpu_addr) };
| ^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#not_unsafe_ptr_arg_deref
--
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:[~2025-03-08 3:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-08 3:07 [jfern:nova-core-experiments 53/411] warning: this public function might dereference a raw pointer but is not marked `unsafe` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.