[drm-misc:topic/rust-drm 11/16] error: unreachable `pub` field
kernel test robot
lkp at intel.com
Sun May 19 06:02:24 UTC 2024
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 at 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
More information about the dri-devel
mailing list