[arm-platforms:hack/devm_cast_abuse 17/17] drivers/char/hw_random/meson-rng.c:57:9: error: implicit declaration of function 'devm_clk_prepare_enable'; did you mean
kernel test robot
lkp at intel.com
Tue Dec 15 17:02:21 EST 2020
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/commit/?id=542cb40d75bf747a26ac91aa28f1a1ecb19b89e3
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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 16039 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201216/2d2dca69/attachment.gz>
More information about the linux-arm-kernel
mailing list