tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: d61c8b66c84080ecf8f9f4d9272ab4ec78029a59 commit: 63aadb77669a6856b26d73da85b4f788731524a3 [7132/12612] m68k: coldfire: use clkdev_lookup on most coldfire config: m68k-randconfig-r014-20210624 (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/next/linux-next.git/commit/?id=63aadb77669a6856b26d73da85b4f788731524a3 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 63aadb77669a6856b26d73da85b4f788731524a3 # 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@xxxxxxxxx> All errors (new ones prefixed by >>): In file included from arch/m68k/coldfire/m525x.c:12: >> arch/m68k/coldfire/m525x.c:29:30: error: 'pll' undeclared here (not in a function) 29 | CLKDEV_INIT(NULL, "pll.0", &pll), | ^~~ include/linux/clkdev.h:30:10: note: in definition of macro 'CLKDEV_INIT' 30 | .clk = c, \ | ^ In file included from arch/m68k/coldfire/m525x.c:21: arch/m68k/include/asm/mcfclk.h:47:27: warning: 'clk_pll' defined but not used [-Wunused-variable] 47 | static struct clk clk_##clk_ref = { \ | ^~~~ arch/m68k/coldfire/m525x.c:25:1: note: in expansion of macro 'DEFINE_CLK' 25 | DEFINE_CLK(pll, "pll.0", MCF_CLK); | ^~~~~~~~~~ vim +/pll +29 arch/m68k/coldfire/m525x.c 11 > 12 #include <linux/clkdev.h> 13 #include <linux/kernel.h> 14 #include <linux/param.h> 15 #include <linux/init.h> 16 #include <linux/io.h> 17 #include <linux/platform_device.h> 18 #include <asm/machdep.h> 19 #include <asm/coldfire.h> 20 #include <asm/mcfsim.h> 21 #include <asm/mcfclk.h> 22 23 /***************************************************************************/ 24 25 DEFINE_CLK(pll, "pll.0", MCF_CLK); 26 DEFINE_CLK(sys, "sys.0", MCF_BUSCLK); 27 28 static struct clk_lookup m525x_clk_lookup[] = { > 29 CLKDEV_INIT(NULL, "pll.0", &pll), 30 CLKDEV_INIT(NULL, "sys.0", &clk_sys), 31 CLKDEV_INIT("mcftmr.0", NULL, &clk_sys), 32 CLKDEV_INIT("mcftmr.1", NULL, &clk_sys), 33 CLKDEV_INIT("mcfuart.0", NULL, &clk_sys), 34 CLKDEV_INIT("mcfuart.1", NULL, &clk_sys), 35 CLKDEV_INIT("mcfqspi.0", NULL, &clk_sys), 36 CLKDEV_INIT("imx1-i2c.0", NULL, &clk_sys), 37 CLKDEV_INIT("imx1-i2c.1", NULL, &clk_sys), 38 }; 39 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip