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 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