* [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
@ 2020-12-15 22:02 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-12-15 22:02 UTC (permalink / raw)
To: Marc Zyngier; +Cc: kbuild-all, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 2743 bytes --]
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@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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 16039 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [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
@ 2020-12-15 22:02 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-12-15 22:02 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2813 bytes --]
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@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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 16039 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-15 22:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15 22:02 [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
2020-12-15 22:02 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.