Messages in this thread | | | Date | Thu, 26 Sep 2019 06:59:07 +0800 | From | kbuild test robot <> | 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'? |
| |
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 [unhandled content-type:application/gzip] | |