public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Philipp Stanner <pstanner@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	dri-devel@lists.freedesktop.org,
	Danilo Krummrich <dakr@redhat.com>
Subject: [drm-misc:topic/rust-drm 11/16] error: unreachable `pub` field
Date: Sun, 19 May 2024 14:02:24 +0800	[thread overview]
Message-ID: <202405191312.68iyLxvG-lkp@intel.com> (raw)

tree:   git://anongit.freedesktop.org/drm/drm-misc topic/rust-drm
head:   440a8db3f583392a1a894f32782ecc397911f9af
commit: c91cc0f1abf0e3de8b46034ab2e15da4860061a7 [11/16] rust: PCI: add BAR request and ioremap
config: x86_64-buildonly-randconfig-001-20240519 (https://download.01.org/0day-ci/archive/20240519/202405191312.68iyLxvG-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240519/202405191312.68iyLxvG-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/202405191312.68iyLxvG-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

>> warning: struct `IoMem` is never constructed
   --> rust/kernel/iomem.rs:10:12
   |
   10 | pub struct IoMem {
   |            ^^^^^
   |
   = note: `#[warn(dead_code)]` on by default
--
>> warning: multiple associated items are never used
   --> rust/kernel/iomem.rs:16:19
   |
   15  | impl IoMem {
   | ---------- associated items in this implementation
   16  |     pub(crate) fn new(ioptr: usize, maxlen: usize) -> Result<Self> {
   |                   ^^^
   ...
   24  |     fn get_io_addr(&self, offset: usize, len: usize) -> Result<usize> {
   |        ^^^^^^^^^^^
   ...
   32  |     pub fn readb(&self, offset: usize) -> Result<u8> {
   |            ^^^^^
   ...
   38  |     pub fn readw(&self, offset: usize) -> Result<u16> {
   |            ^^^^^
   ...
   44  |     pub fn readl(&self, offset: usize) -> Result<u32> {
   |            ^^^^^
   ...
   50  |     pub fn readq(&self, offset: usize) -> Result<u64> {
   |            ^^^^^
   ...
   56  |     pub fn readb_relaxed(&self, offset: usize) -> Result<u8> {
   |            ^^^^^^^^^^^^^
   ...
   62  |     pub fn readw_relaxed(&self, offset: usize) -> Result<u16> {
   |            ^^^^^^^^^^^^^
   ...
   68  |     pub fn readl_relaxed(&self, offset: usize) -> Result<u32> {
   |            ^^^^^^^^^^^^^
   ...
   74  |     pub fn readq_relaxed(&self, offset: usize) -> Result<u64> {
   |            ^^^^^^^^^^^^^
   ...
   80  |     pub fn writeb(&self, byte: u8, offset: usize) -> Result {
   |            ^^^^^^
   ...
   87  |     pub fn writew(&self, word: u16, offset: usize) -> Result {
   |            ^^^^^^
   ...
   94  |     pub fn writel(&self, lword: u32, offset: usize) -> Result {
   |            ^^^^^^
   ...
   101 |     pub fn writeq(&self, qword: u64, offset: usize) -> Result {
   |            ^^^^^^
   ...
   108 |     pub fn writeb_relaxed(&self, byte: u8, offset: usize) -> Result {
   |            ^^^^^^^^^^^^^^
   ...
   115 |     pub fn writew_relaxed(&self, word: u16, offset: usize) -> Result {
   |            ^^^^^^^^^^^^^^
   ...
   122 |     pub fn writel_relaxed(&self, lword: u32, offset: usize) -> Result {
   |            ^^^^^^^^^^^^^^
   ...
   129 |     pub fn writeq_relaxed(&self, qword: u64, offset: usize) -> Result {
   |            ^^^^^^^^^^^^^^
--
>> error: unreachable `pub` field
   --> rust/kernel/iomem.rs:11:5
   |
   11 |     pub ioptr: usize,
   |     ---^^^^^^^^^^^^^
   |     |
   |     help: consider restricting its visibility: `pub(crate)`

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

                 reply	other threads:[~2024-05-19  6:02 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=202405191312.68iyLxvG-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dakr@redhat.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pstanner@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox