All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Abdiel Janulgue <abdiel.janulgue@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, Dave Airlie <airlied@redhat.com>
Subject: [jfern:nova-core-experiments 53/411] warning: this public function might dereference a raw pointer but is not marked `unsafe`
Date: Sat, 8 Mar 2025 11:07:22 +0800	[thread overview]
Message-ID: <202503081056.KBKFX7ex-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-03-08  3:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202503081056.KBKFX7ex-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=abdiel.janulgue@gmail.com \
    --cc=airlied@redhat.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.