linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Subject: arch/mips/loongson2ef/common/serial.c:66:4: error: 'loongson_uart_base' undeclared
Date: Sat, 31 Jul 2021 03:04:36 +0800	[thread overview]
Message-ID: <202107310328.bMBD8bsQ-lkp@intel.com> (raw)

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

             reply	other threads:[~2021-07-30 19:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-30 19:04 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-12-06 19:34 arch/mips/loongson2ef/common/serial.c:66:4: error: 'loongson_uart_base' undeclared kernel test robot
2020-12-06 18:53 kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202107310328.bMBD8bsQ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tsbogend@alpha.franken.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).