[drm-misc:topic/rust-drm 14/20] error: unreachable `pub` item

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://anongit.freedesktop.org/drm/drm-misc topic/rust-drm
head:   508348922df19178b613531fb6cc7beb624642ae
commit: 3fa8443d0fca31d3e103e3a2651d2c38904895a2 [14/20] rust: PCI: add BAR request and ioremap
config: x86_64-buildonly-randconfig-005-20240609 (https://download.01.org/0day-ci/archive/20240609/202406091152.bphP4HCO-lkp@xxxxxxxxx/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/20240609/202406091152.bphP4HCO-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406091152.bphP4HCO-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> error: unreachable `pub` item
   --> rust/kernel/iomem.rs:68:5
   |
   68 |     pub fn readl_relaxed(&self, offset: usize) -> Result<u32> {
   |     ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: consider restricting its visibility: `pub(crate)`
--
>> error: unreachable `pub` item
   --> rust/kernel/iomem.rs:74:5
   |
   74 |     pub fn readq_relaxed(&self, offset: usize) -> Result<u64> {
   |     ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: consider restricting its visibility: `pub(crate)`
--
>> error: unreachable `pub` item
   --> rust/kernel/iomem.rs:80:5
   |
   80 |     pub fn writeb(&self, byte: u8, offset: usize) -> Result {
   |     ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: consider restricting its visibility: `pub(crate)`
--
>> error: unreachable `pub` item
   --> rust/kernel/iomem.rs:87:5
   |
   87 |     pub fn writew(&self, word: u16, offset: usize) -> Result {
   |     ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: consider restricting its visibility: `pub(crate)`
--
>> error: unreachable `pub` item
   --> rust/kernel/iomem.rs:94:5
   |
   94 |     pub fn writel(&self, lword: u32, offset: usize) -> Result {
   |     ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: consider restricting its visibility: `pub(crate)`
--
>> error: unreachable `pub` item
   --> rust/kernel/iomem.rs:101:5
   |
   101 |     pub fn writeq(&self, qword: u64, offset: usize) -> Result {
   |     ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: consider restricting its visibility: `pub(crate)`
--
>> error: unreachable `pub` item
   --> rust/kernel/iomem.rs:108:5
   |
   108 |     pub fn writeb_relaxed(&self, byte: u8, offset: usize) -> Result {
   |     ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: consider restricting its visibility: `pub(crate)`
--
>> error: unreachable `pub` item
   --> rust/kernel/iomem.rs:115:5
   |
   115 |     pub fn writew_relaxed(&self, word: u16, offset: usize) -> Result {
   |     ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: consider restricting its visibility: `pub(crate)`
--
>> error: unreachable `pub` item
   --> rust/kernel/iomem.rs:122:5
   |
   122 |     pub fn writel_relaxed(&self, lword: u32, offset: usize) -> Result {
   |     ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: consider restricting its visibility: `pub(crate)`
--
>> error: unreachable `pub` item
   --> rust/kernel/iomem.rs:129:5
   |
   129 |     pub fn writeq_relaxed(&self, qword: u64, offset: usize) -> Result {
   |     ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     help: consider restricting its visibility: `pub(crate)`
--
>> error: unreachable `pub` item
   --> rust/kernel/iomem.rs:10:1
   |
   10 | pub struct IoMem {
   | ---^^^^^^^^^^^^^
   | |
   | help: consider restricting its visibility: `pub(crate)`
   |
   = help: or consider exporting it for use by other crates
   = note: requested on the command line with `-D unreachable-pub`
..

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



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux