tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head:   0a0b17725dd921ed0364cd217a100ed0ed85c8c1
commit: 0a0b17725dd921ed0364cd217a100ed0ed85c8c1 [54/54] virtio: vdpa: vDPA 
driver for Marvell OCTEON DPU devices
config: mips-allmodconfig 
(https://download.01.org/0day-ci/archive/20240512/202405120615.ttwougsu-...@intel.com/config)
compiler: mips-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20240512/202405120615.ttwougsu-...@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 <l...@intel.com>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202405120615.ttwougsu-...@intel.com/

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

   drivers/vdpa/octeon_ep/octep_vdpa_main.c: In function 
'get_device_ready_status':
>> drivers/vdpa/octeon_ep/octep_vdpa_main.c:538:25: error: implicit declaration 
>> of function 'readq'; did you mean 'readl'? 
>> [-Werror=implicit-function-declaration]
     538 |         u64 signature = readq(addr + OCTEP_VF_MBOX_DATA(0));
         |                         ^~~~~
         |                         readl
>> drivers/vdpa/octeon_ep/octep_vdpa_main.c:541:17: error: implicit declaration 
>> of function 'writeq'; did you mean 'writel'? 
>> [-Werror=implicit-function-declaration]
     541 |                 writeq(0, addr + OCTEP_VF_MBOX_DATA(0));
         |                 ^~~~~~
         |                 writel
   cc1: some warnings being treated as errors
--
   In file included from include/linux/device.h:15,
                    from include/linux/pci.h:37,
                    from drivers/vdpa/octeon_ep/octep_vdpa.h:7,
                    from drivers/vdpa/octeon_ep/octep_vdpa_hw.c:6:
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c: In function 'octep_hw_caps_read':
>> drivers/vdpa/octeon_ep/octep_vdpa_hw.c:478:60: warning: cast from pointer to 
>> integer of different size [-Wpointer-to-int-cast]
     478 |         dev_info(dev, "common cfg mapped at: 0x%016llx\n", 
(u64)oct_hw->common_cfg);
         |                                                            ^
   include/linux/dev_printk.h:110:37: note: in definition of macro 
'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                    
   \
         |                                     ^~~~~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:478:9: note: in expansion of macro 
'dev_info'
     478 |         dev_info(dev, "common cfg mapped at: 0x%016llx\n", 
(u64)oct_hw->common_cfg);
         |         ^~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:479:60: warning: cast from pointer to 
integer of different size [-Wpointer-to-int-cast]
     479 |         dev_info(dev, "device cfg mapped at: 0x%016llx\n", 
(u64)oct_hw->dev_cfg);
         |                                                            ^
   include/linux/dev_printk.h:110:37: note: in definition of macro 
'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                    
   \
         |                                     ^~~~~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:479:9: note: in expansion of macro 
'dev_info'
     479 |         dev_info(dev, "device cfg mapped at: 0x%016llx\n", 
(u64)oct_hw->dev_cfg);
         |         ^~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:480:57: warning: cast from pointer to 
integer of different size [-Wpointer-to-int-cast]
     480 |         dev_info(dev, "isr cfg mapped at: 0x%016llx\n", 
(u64)oct_hw->isr);
         |                                                         ^
   include/linux/dev_printk.h:110:37: note: in definition of macro 
'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                    
   \
         |                                     ^~~~~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:480:9: note: in expansion of macro 
'dev_info'
     480 |         dev_info(dev, "isr cfg mapped at: 0x%016llx\n", 
(u64)oct_hw->isr);
         |         ^~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:482:18: warning: cast from pointer to 
integer of different size [-Wpointer-to-int-cast]
     482 |                  (u64)oct_hw->notify_base, 
oct_hw->notify_off_multiplier);
         |                  ^
   include/linux/dev_printk.h:110:37: note: in definition of macro 
'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                    
   \
         |                                     ^~~~~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:481:9: note: in expansion of macro 
'dev_info'
     481 |         dev_info(dev, "notify base: 0x%016llx, notify off 
multiplier: %u\n",
         |         ^~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:514:54: warning: cast from pointer to 
integer of different size [-Wpointer-to-int-cast]
     514 |         dev_info(dev, "mbox mapped at: 0x%016llx\n", (u64)mbox);
         |                                                      ^
   include/linux/dev_printk.h:110:37: note: in definition of macro 
'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                    
   \
         |                                     ^~~~~~~~~~~
   drivers/vdpa/octeon_ep/octep_vdpa_hw.c:514:9: note: in expansion of macro 
'dev_info'
     514 |         dev_info(dev, "mbox mapped at: 0x%016llx\n", (u64)mbox);
         |         ^~~~~~~~


vim +538 drivers/vdpa/octeon_ep/octep_vdpa_main.c

   535  
   536  static bool get_device_ready_status(u8 __iomem *addr)
   537  {
 > 538          u64 signature = readq(addr + OCTEP_VF_MBOX_DATA(0));
   539  
   540          if (signature == OCTEP_DEV_READY_SIGNATURE) {
 > 541                  writeq(0, addr + OCTEP_VF_MBOX_DATA(0));
   542                  return true;
   543          }
   544  
   545          return false;
   546  }
   547  

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

Reply via email to