[xilinx-xlnx:xlnx_rebase_v5.4 30/1768] drivers/clk/clk-xlnx-clock-wizard.c:120:21: warning: cast from pointer to integer of different size

kernel test robot lkp at intel.com
Tue Dec 14 19:05:03 PST 2021


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   abafefebd1f1e040eef74e4ab571ea08bf745641
commit: 0710ed89b3581fd8b7fec134960ccf45664d43ba [30/1768] clk: clock-wizard: Add support for dynamic reconfiguration
config: i386-randconfig-a004-20211214 (https://download.01.org/0day-ci/archive/20211215/202112151040.ptnpLykR-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/Xilinx/linux-xlnx/commit/0710ed89b3581fd8b7fec134960ccf45664d43ba
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.4
        git checkout 0710ed89b3581fd8b7fec134960ccf45664d43ba
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All warnings (new ones prefixed by >>):

   drivers/clk/clk-xlnx-clock-wizard.c: In function 'clk_wzrd_recalc_rate':
>> drivers/clk/clk-xlnx-clock-wizard.c:120:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     120 |    (void __iomem *)((u64)divider->base + divider->offset);
         |                     ^
>> drivers/clk/clk-xlnx-clock-wizard.c:120:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     120 |    (void __iomem *)((u64)divider->base + divider->offset);
         |    ^
   drivers/clk/clk-xlnx-clock-wizard.c: In function 'clk_wzrd_dynamic_reconfig':
   drivers/clk/clk-xlnx-clock-wizard.c:139:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     139 |    (void __iomem *)((u64)divider->base + divider->offset);
         |                     ^
   drivers/clk/clk-xlnx-clock-wizard.c:139:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     139 |    (void __iomem *)((u64)divider->base + divider->offset);
         |    ^


vim +120 drivers/clk/clk-xlnx-clock-wizard.c

   114	
   115	static unsigned long clk_wzrd_recalc_rate(struct clk_hw *hw,
   116						  unsigned long parent_rate)
   117	{
   118		struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw);
   119		void __iomem *div_addr =
 > 120				(void __iomem *)((u64)divider->base + divider->offset);
   121		unsigned int val;
   122	
   123		val = readl(div_addr) >> divider->shift;
   124		val &= div_mask(divider->width);
   125	
   126		return divider_recalc_rate(hw, parent_rate, val, divider->table,
   127				divider->flags, divider->width);
   128	}
   129	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org



More information about the linux-arm-kernel mailing list