All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Dave Airlie <airlied@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jfern:nova-core-experiments 247/411] warning: field `0` is never read
Date: Sat, 8 Mar 2025 13:17:02 +0800	[thread overview]
Message-ID: <202503081305.wDEJstf8-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git nova-core-experiments
head:   3b93174b3502247b0c46bd54a7cf5f4105274edb
commit: fcfb703d90cd9cca4917782f4537e7cdcd6281e1 [247/411] rust: add auxiliary bus abstraction
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250308/202503081305.wDEJstf8-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/202503081305.wDEJstf8-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/202503081305.wDEJstf8-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> warning: field `0` is never read
   --> rust/kernel/auxiliary_bus.rs:85:21
   |
   85 | pub struct DeviceId(bindings::auxiliary_device_id);
   |            -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |            |
   |            field in this struct
   |
   = note: `#[warn(dead_code)]` on by default
   help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
   85 | pub struct DeviceId(());
   |                     ~~
--
>> warning: unsafe impl missing a safety comment
   --> rust/kernel/auxiliary_bus.rs:87:1
   |
   87 | unsafe impl RawDeviceId for DeviceId {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider adding a safety comment on the preceding line
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#undocumented_unsafe_blocks
--
>> warning: missing documentation for a module
   --> rust/kernel/lib.rs:38:1
   |
   38 | pub mod auxiliary_bus;
   | ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: requested on the command line with `-W missing-docs`

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2025-03-08  5:17 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=202503081305.wDEJstf8-lkp@intel.com \
    --to=lkp@intel.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.