* [wsa:coccinelle/of_device_get_match_data 1/19] drivers/clk/meson/meson-aoclk.c:44:14: warning: assignment discards 'const' qualifier from pointer target type
@ 2021-09-20 0:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-20 0:14 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2006 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git coccinelle/of_device_get_match_data
head: 855d01e7ecabcc51ac572795173d15205ecc208b
commit: fea5468896584af5f4049eab22c3f42c1943d8bc [1/19] clk: meson: aoclk: don't cast result of of_device_get_match_data()
config: arm64-randconfig-r032-20210919 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.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/wsa/linux.git/commit/?id=fea5468896584af5f4049eab22c3f42c1943d8bc
git remote add wsa https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git
git fetch --no-tags wsa coccinelle/of_device_get_match_data
git checkout fea5468896584af5f4049eab22c3f42c1943d8bc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/clk/meson/meson-aoclk.c: In function 'meson_aoclkc_probe':
>> drivers/clk/meson/meson-aoclk.c:44:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
44 | data = of_device_get_match_data(dev);
| ^
vim +/const +44 drivers/clk/meson/meson-aoclk.c
35
36 int meson_aoclkc_probe(struct platform_device *pdev)
37 {
38 struct meson_aoclk_reset_controller *rstc;
39 struct meson_aoclk_data *data;
40 struct device *dev = &pdev->dev;
41 struct regmap *regmap;
42 int ret, clkid;
43
> 44 data = of_device_get_match_data(dev);
---
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: 42536 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-20 0:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-20 0:14 [wsa:coccinelle/of_device_get_match_data 1/19] drivers/clk/meson/meson-aoclk.c:44:14: warning: assignment discards 'const' qualifier from pointer target type 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.