Messages in this thread | | | Date | Thu, 24 Feb 2022 14:16:50 +0800 | From | kernel test robot <> | Subject | [mingo-tip:sched/headers 2145/2340] arch/mips/include/asm/mach-lantiq/lantiq.h:14:33: error: implicit declaration of function '__raw_readl'; did you mean '__raw_emt'? |
| |
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers head: 97c5eeb4de3ad324ed2a4656b46465299cfd010a commit: fffdadeabd0c2d37ab9e2d170c1676dad47ffe6c [2145/2340] headers/deps: node: Optimize <linux/node.h> dependencies config: mips-xway_defconfig (https://download.01.org/0day-ci/archive/20220224/202202241447.nXvL1YYU-lkp@intel.com/config) compiler: mips-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/mingo/tip.git/commit/?id=fffdadeabd0c2d37ab9e2d170c1676dad47ffe6c git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git git fetch --no-tags mingo-tip sched/headers git checkout fffdadeabd0c2d37ab9e2d170c1676dad47ffe6c # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash
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 >>):
In file included from include/linux/irq.h:20, from arch/mips/include/asm/mach-lantiq/lantiq.h:9, from arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h:12, from arch/mips/lantiq/early_printk.c:8: arch/mips/include/asm/irq.h:23:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'init_IRQ' 23 | extern void __init init_IRQ(void); | ^~~~~~~~ In file included from arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h:12, from arch/mips/lantiq/early_printk.c:8: arch/mips/lantiq/early_printk.c: In function 'prom_putchar': >> arch/mips/include/asm/mach-lantiq/lantiq.h:14:33: error: implicit declaration of function '__raw_readl'; did you mean '__raw_emt'? [-Werror=implicit-function-declaration] 14 | #define ltq_r32(reg) __raw_readl(reg) | ^~~~~~~~~~~ arch/mips/lantiq/early_printk.c:26:24: note: in expansion of macro 'ltq_r32' 26 | do { } while ((ltq_r32(LTQ_ASC_FSTAT) & TXMASK) >> TXOFFSET); | ^~~~~~~ >> arch/mips/include/asm/mach-lantiq/lantiq.h:19:33: error: implicit declaration of function '__raw_writeb' [-Werror=implicit-function-declaration] 19 | #define ltq_w8(val, reg) __raw_writeb(val, reg) | ^~~~~~~~~~~~ arch/mips/lantiq/early_printk.c:28:17: note: in expansion of macro 'ltq_w8' 28 | ltq_w8('\r', LTQ_ASC_TBUF); | ^~~~~~ cc1: some warnings being treated as errors -- In file included from arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h:12, from arch/mips/lantiq/xway/dcdc.c:12: arch/mips/lantiq/xway/dcdc.c: In function 'dcdc_probe': >> arch/mips/include/asm/mach-lantiq/lantiq.h:18:33: error: implicit declaration of function '__raw_readb'; did you mean '__raw_emt'? [-Werror=implicit-function-declaration] 18 | #define ltq_r8(reg) __raw_readb(reg) | ^~~~~~~~~~~ arch/mips/lantiq/xway/dcdc.c:20:25: note: in expansion of macro 'ltq_r8' 20 | #define dcdc_r8(x) ltq_r8(dcdc_membase + (x)) | ^~~~~~ include/linux/dev_printk.h:114:37: note: in expansion of macro 'dcdc_r8' 114 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dev_printk.h:154:9: note: in expansion of macro 'dev_printk_index_wrap' 154 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~ arch/mips/lantiq/xway/dcdc.c:33:9: note: in expansion of macro 'dev_info' 33 | dev_info(&pdev->dev, "Core Voltage : %d mV\n", | ^~~~~~~~ arch/mips/lantiq/xway/dcdc.c: At top level: arch/mips/lantiq/xway/dcdc.c:52:12: warning: no previous prototype for 'dcdc_init' [-Wmissing-prototypes] 52 | int __init dcdc_init(void) | ^~~~~~~~~ cc1: some warnings being treated as errors
vim +14 arch/mips/include/asm/mach-lantiq/lantiq.h
171bb2f19ed6f3 John Crispin 2011-03-30 8 171bb2f19ed6f3 John Crispin 2011-03-30 @9 #include <linux/irq.h> 287e3f3f4e68ca John Crispin 2012-04-17 10 #include <linux/device.h> 287e3f3f4e68ca John Crispin 2012-04-17 11 #include <linux/clk.h> 171bb2f19ed6f3 John Crispin 2011-03-30 12 171bb2f19ed6f3 John Crispin 2011-03-30 13 /* generic reg access functions */ 171bb2f19ed6f3 John Crispin 2011-03-30 @14 #define ltq_r32(reg) __raw_readl(reg) 171bb2f19ed6f3 John Crispin 2011-03-30 15 #define ltq_w32(val, reg) __raw_writel(val, reg) 171bb2f19ed6f3 John Crispin 2011-03-30 16 #define ltq_w32_mask(clear, set, reg) \ 171bb2f19ed6f3 John Crispin 2011-03-30 17 ltq_w32((ltq_r32(reg) & ~(clear)) | (set), reg) 171bb2f19ed6f3 John Crispin 2011-03-30 @18 #define ltq_r8(reg) __raw_readb(reg) 171bb2f19ed6f3 John Crispin 2011-03-30 @19 #define ltq_w8(val, reg) __raw_writeb(val, reg) 171bb2f19ed6f3 John Crispin 2011-03-30 20
:::::: The code at line 14 was first introduced by commit :::::: 171bb2f19ed6f3627f4f783f658f2f475b2fbd50 MIPS: Lantiq: Add initial support for Lantiq SoCs
:::::: TO: John Crispin <blogic@openwrt.org> :::::: CC: Ralf Baechle <ralf@linux-mips.org>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |