Messages in this thread | | | Date | Sat, 31 Jul 2021 03:04:36 +0800 | From | kernel test robot <> | Subject | arch/mips/loongson2ef/common/serial.c:66:4: error: 'loongson_uart_base' undeclared |
| |
Hi Jiaxun,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 764a5bc89b12b82c18ce7ca5d7c1b10dd748a440 commit: b13812ddea615b6507beef24f76540c0c1143c5c MIPS: Loongson2ef: Disable Loongson MMI instructions date: 10 months ago config: mips-randconfig-r012-20210730 (attached as .config) compiler: mips64-linux-gcc (GCC) 10.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/torvalds/linux.git/commit/?id=b13812ddea615b6507beef24f76540c0c1143c5c git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout b13812ddea615b6507beef24f76540c0c1143c5c # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.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 >>):
arch/mips/loongson2ef/common/serial.c: In function 'serial_init': >> arch/mips/loongson2ef/common/serial.c:66:4: error: 'loongson_uart_base' undeclared (first use in this function) 66 | loongson_uart_base; | ^~~~~~~~~~~~~~~~~~ arch/mips/loongson2ef/common/serial.c:66:4: note: each undeclared identifier is reported only once for each function it appears in >> arch/mips/loongson2ef/common/serial.c:68:20: error: '_loongson_uart_base' undeclared (first use in this function) 68 | (void __iomem *)_loongson_uart_base; | ^~~~~~~~~~~~~~~~~~~
vim +/loongson_uart_base +66 arch/mips/loongson2ef/common/serial.c
71e2f4dd5a65bd Jiaxun Yang 2019-10-20 57 71e2f4dd5a65bd Jiaxun Yang 2019-10-20 58 static int __init serial_init(void) 71e2f4dd5a65bd Jiaxun Yang 2019-10-20 59 { 71e2f4dd5a65bd Jiaxun Yang 2019-10-20 60 unsigned char iotype; 71e2f4dd5a65bd Jiaxun Yang 2019-10-20 61 5831fdb099ddee Jiaxun Yang 2019-10-20 62 iotype = uart8250_data[mips_machtype].iotype; 71e2f4dd5a65bd Jiaxun Yang 2019-10-20 63 71e2f4dd5a65bd Jiaxun Yang 2019-10-20 64 if (UPIO_MEM == iotype) { 5831fdb099ddee Jiaxun Yang 2019-10-20 65 uart8250_data[mips_machtype].mapbase = 5831fdb099ddee Jiaxun Yang 2019-10-20 @66 loongson_uart_base; 5831fdb099ddee Jiaxun Yang 2019-10-20 67 uart8250_data[mips_machtype].membase = 5831fdb099ddee Jiaxun Yang 2019-10-20 @68 (void __iomem *)_loongson_uart_base; 71e2f4dd5a65bd Jiaxun Yang 2019-10-20 69 } 71e2f4dd5a65bd Jiaxun Yang 2019-10-20 70 else if (UPIO_PORT == iotype) 5831fdb099ddee Jiaxun Yang 2019-10-20 71 uart8250_data[mips_machtype].iobase = 5831fdb099ddee Jiaxun Yang 2019-10-20 72 loongson_uart_base - LOONGSON_PCIIO_BASE; 71e2f4dd5a65bd Jiaxun Yang 2019-10-20 73 5831fdb099ddee Jiaxun Yang 2019-10-20 74 memset(&uart8250_data[mips_machtype + 1], 0, 5831fdb099ddee Jiaxun Yang 2019-10-20 75 sizeof(struct plat_serial8250_port)); 5831fdb099ddee Jiaxun Yang 2019-10-20 76 uart8250_device.dev.platform_data = &uart8250_data[mips_machtype]; 71e2f4dd5a65bd Jiaxun Yang 2019-10-20 77 71e2f4dd5a65bd Jiaxun Yang 2019-10-20 78 return platform_device_register(&uart8250_device); 71e2f4dd5a65bd Jiaxun Yang 2019-10-20 79 } 71e2f4dd5a65bd Jiaxun Yang 2019-10-20 80 module_init(serial_init); 71e2f4dd5a65bd Jiaxun Yang 2019-10-20 81
:::::: The code at line 66 was first introduced by commit :::::: 5831fdb099ddeec9849658cd534fdcbb03aa6ff9 MIPS: Loongson2ef: clean up loongson64 related code
:::::: TO: Jiaxun Yang <jiaxun.yang@flygoat.com> :::::: CC: Paul Burton <paulburton@kernel.org>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |