tree:
https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
hack/devm_cast_abuse
head: 542cb40d75bf747a26ac91aa28f1a1ecb19b89e3
commit: 7b5b40853d889135f4c38c3330a1275429d9e8d4 [6/17] PCI: dwc/meson: Convert to
devm_clk_prepare_enable()
config: parisc-randconfig-r002-20201215 (attached as .config)
compiler: hppa-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://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms
https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms hack/devm_cast_abuse
git checkout 7b5b40853d889135f4c38c3330a1275429d9e8d4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/pci/controller/dwc/pci-meson.c: In function 'meson_pcie_probe_clock':
> drivers/pci/controller/dwc/pci-meson.c:184:8: error: implicit
declaration of function 'devm_clk_prepare_enable'; did you mean
'clk_prepare_enable'? [-Werror=implicit-function-declaration]
184 |
ret = devm_clk_prepare_enable(dev, clk);
| ^~~~~~~~~~~~~~~~~~~~~~~
| clk_prepare_enable
cc1: some warnings being treated as errors
vim +184 drivers/pci/controller/dwc/pci-meson.c
165
166 static inline struct clk *meson_pcie_probe_clock(struct device *dev,
167 const char *id, u64 rate)
168 {
169 struct clk *clk;
170 int ret;
171
172 clk = devm_clk_get(dev, id);
173 if (IS_ERR(clk))
174 return clk;
175
176 if (rate) {
177 ret = clk_set_rate(clk, rate);
178 if (ret) {
179 dev_err(dev, "set clk rate failed, ret = %d\n", ret);
180 return ERR_PTR(ret);
181 }
182 }
183
184 ret = devm_clk_prepare_enable(dev, clk);
185 if (ret)
{
186 dev_err(dev, "couldn't enable clk\n");
187 return ERR_PTR(ret);
188 }
189
190 return clk;
191 }
192
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org