tree:
https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
hack/devm_cast_abuse
head: 542cb40d75bf747a26ac91aa28f1a1ecb19b89e3
commit: 542cb40d75bf747a26ac91aa28f1a1ecb19b89e3 [17/17] treewide: Bulk conversion to
devm_clk_prepare_enable()
config: m68k-randconfig-r012-20201215 (attached as .config)
compiler: m68k-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 542cb40d75bf747a26ac91aa28f1a1ecb19b89e3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
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/char/hw_random/meson-rng.c: In function 'meson_rng_probe':
> drivers/char/hw_random/meson-rng.c:57:9: error: implicit
declaration of function 'devm_clk_prepare_enable'; did you mean
'clk_prepare_enable'? [-Werror=implicit-function-declaration]
57 |
ret = devm_clk_prepare_enable(dev, data->core_clk);
| ^~~~~~~~~~~~~~~~~~~~~~~
| clk_prepare_enable
cc1: some warnings being treated as errors
vim +57 drivers/char/hw_random/meson-rng.c
35
36 static int meson_rng_probe(struct platform_device *pdev)
37 {
38 struct device *dev = &pdev->dev;
39 struct meson_rng_data *data;
40 int ret;
41
42 data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL);
43 if (!data)
44 return -ENOMEM;
45
46 data->pdev = pdev;
47
48 data->base = devm_platform_ioremap_resource(pdev, 0);
49 if (IS_ERR(data->base))
50 return PTR_ERR(data->base);
51
52 data->core_clk = devm_clk_get(dev, "core");
53 if (IS_ERR(data->core_clk))
54 data->core_clk = NULL;
55
56 if (data->core_clk) {
57 ret = devm_clk_prepare_enable(dev, data->core_clk);
58 if (ret)
59 return ret;
60 }
61
62 data->rng.name = pdev->name;
63 data->rng.read = meson_rng_read;
64
65 platform_set_drvdata(pdev, data);
66
67 return devm_hwrng_register(dev, &data->rng);
68 }
69
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org