linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arch/mips/loongson2ef/common/serial.c:66:4: error: 'loongson_uart_base' undeclared
@ 2020-12-06 19:34 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-12-06 19:34 UTC (permalink / raw)
  To: Jiaxun Yang; +Cc: kbuild-all, linux-kernel, Thomas Bogendoerfer

[-- Attachment #1: Type: text/plain, Size: 3952 bytes --]

Hi Jiaxun,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7059c2c00a2196865c2139083cbef47cd18109b6
commit: b13812ddea615b6507beef24f76540c0c1143c5c MIPS: Loongson2ef: Disable Loongson MMI instructions
date:   2 months ago
config: mips-randconfig-r005-20201207 (attached as .config)
compiler: mips64el-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/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
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37473 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* arch/mips/loongson2ef/common/serial.c:66:4: error: 'loongson_uart_base' undeclared
@ 2021-07-30 19:04 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-07-30 19:04 UTC (permalink / raw)
  To: Jiaxun Yang; +Cc: kbuild-all, linux-kernel, Thomas Bogendoerfer

[-- Attachment #1: Type: text/plain, Size: 4007 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27659 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* arch/mips/loongson2ef/common/serial.c:66:4: error: 'loongson_uart_base' undeclared
@ 2020-12-06 18:53 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-12-06 18:53 UTC (permalink / raw)
  To: Jiaxun Yang; +Cc: kbuild-all, linux-kernel, Thomas Bogendoerfer

[-- Attachment #1: Type: text/plain, Size: 3901 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7059c2c00a2196865c2139083cbef47cd18109b6
commit: b13812ddea615b6507beef24f76540c0c1143c5c MIPS: Loongson2ef: Disable Loongson MMI instructions
date:   2 months ago
config: mips-randconfig-r005-20201207 (attached as .config)
compiler: mips64el-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/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
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37473 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-30 19:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-06 19:34 arch/mips/loongson2ef/common/serial.c:66:4: error: 'loongson_uart_base' undeclared kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-07-30 19:04 kernel test robot
2020-12-06 18:53 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).