Re: [PATCH v3 1/3] CXL, PCIE: Add cxl_rcrb_addr file to dport_dev

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

 



Hi Ben,

kernel test robot noticed the following build warnings:

[auto build test WARNING on rafael-pm/linux-next]
[also build test WARNING on linus/master v6.5 next-20230905]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Ben-Cheatham/CXL-PCIE-Add-cxl_rcrb_addr-file-to-dport_dev/20230906-025405
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link:    https://lore.kernel.org/r/20230905184406.135851-2-Benjamin.Cheatham%40amd.com
patch subject: [PATCH v3 1/3] CXL, PCIE: Add cxl_rcrb_addr file to dport_dev
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20230906/202309060435.NqPCZpql-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230906/202309060435.NqPCZpql-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/202309060435.NqPCZpql-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   drivers/cxl/core/port.c: In function 'cxl_rcrb_addr_show':
>> drivers/cxl/core/port.c:953:38: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
     953 |         return sysfs_emit(buf, "0x%llx\n", dport->rcrb.base);
         |                                   ~~~^     ~~~~~~~~~~~~~~~~
         |                                      |                |
         |                                      |                resource_size_t {aka unsigned int}
         |                                      long long unsigned int
         |                                   %x


vim +953 drivers/cxl/core/port.c

   940	
   941	static ssize_t cxl_rcrb_addr_show(struct device *dev,
   942					  struct device_attribute *attr, char *buf)
   943	{
   944		struct cxl_dport *dport;
   945	
   946		if (!cxl_root)
   947			return -ENODEV;
   948	
   949		dport = cxl_find_dport_by_dev(cxl_root, dev);
   950		if (!dport)
   951			return -ENODEV;
   952	
 > 953		return sysfs_emit(buf, "0x%llx\n", dport->rcrb.base);
   954	}
   955	DEVICE_ATTR_RO(cxl_rcrb_addr);
   956	

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



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux