[xlnx:xlnx_rebase_v5.4 30/1697] drivers/clk/clk-xlnx-clock-wizard.c:120:21: warning: cast from pointer to integer of different size
From: kernel test robot <hidden>
Date: 2021-01-13 00:10:39
Also in:
oe-kbuild-all
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4 head: 629150468791671b5fde21363e643e87c5815b17 commit: 0710ed89b3581fd8b7fec134960ccf45664d43ba [30/1697] clk: clock-wizard: Add support for dynamic reconfiguration config: mips-allyesconfig (attached as .config) compiler: mips-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/Xilinx/linux-xlnx/commit/0710ed89b3581fd8b7fec134960ccf45664d43ba git remote add xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xlnx xlnx_rebase_v5.4 git checkout 0710ed89b3581fd8b7fec134960ccf45664d43ba # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All warnings (new ones prefixed by >>): drivers/clk/clk-xlnx-clock-wizard.c: In function 'clk_wzrd_recalc_rate':
quoted
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);
| ^quoted
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 Attachments
- .config.gz [application/gzip] 63262 bytes
- (unnamed) [text/plain] 176 bytes · preview