mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	Paul Burton <paul.burton@mips.com>
Subject: arch/mips/pmcs-msp71xx/msp_prom.c:64:34: error: 'MAX_PROM_MEM' undeclared here (not in a function); did you mean 'DEV_PROP_MAX'?
Date: Thu, 26 Sep 2019 06:59:07 +0800	[thread overview]
Message-ID: <201909260605.UjTFCtvW%lkp@intel.com> (raw)

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

tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f41def397161053eb0d3ed6861ef65985efbf293
commit: b3c948e2c00f561b22a9865a9b9b952072973285 MIPS: msp: Record prom memory
date:   5 weeks ago
config: mips-msp71xx_defconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout b3c948e2c00f561b22a9865a9b9b952072973285
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> arch/mips/pmcs-msp71xx/msp_prom.c:64:34: error: 'MAX_PROM_MEM' undeclared here (not in a function); did you mean 'DEV_PROP_MAX'?
    static phys_addr_t prom_mem_base[MAX_PROM_MEM] __initdata;
                                     ^~~~~~~~~~~~
                                     DEV_PROP_MAX
   arch/mips/pmcs-msp71xx/msp_prom.c: In function 'prom_free_prom_memory':
>> arch/mips/pmcs-msp71xx/msp_prom.c:380:16: error: unused variable 'addr' [-Werror=unused-variable]
     unsigned long addr;
                   ^~~~
   At top level:
>> arch/mips/pmcs-msp71xx/msp_prom.c:65:20: error: 'prom_mem_size' defined but not used [-Werror=unused-variable]
    static phys_addr_t prom_mem_size[MAX_PROM_MEM] __initdata;
                       ^~~~~~~~~~~~~
>> arch/mips/pmcs-msp71xx/msp_prom.c:64:20: error: 'prom_mem_base' defined but not used [-Werror=unused-variable]
    static phys_addr_t prom_mem_base[MAX_PROM_MEM] __initdata;
                       ^~~~~~~~~~~~~
   cc1: all warnings being treated as errors

vim +64 arch/mips/pmcs-msp71xx/msp_prom.c

    63	
  > 64	static phys_addr_t prom_mem_base[MAX_PROM_MEM] __initdata;
  > 65	static phys_addr_t prom_mem_size[MAX_PROM_MEM] __initdata;
    66	static unsigned int nr_prom_mem __initdata;
    67	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

                 reply	other threads:[~2019-09-25 23:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=201909260605.UjTFCtvW%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paul.burton@mips.com \
    /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

all inboxes | Powered by JetHome®