arch/mips/loongson64/env.c:50:14: warning: variable 'device' set but not used
From: kernel test robot
Date: Tue Dec 29 2020 - 04:11:51 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dea8dcf2a9fa8cc540136a6cd885c3beece16ec3
commit: 39c1485c8baa47aa20caefc1ec0a3410fbad6c81 MIPS: KVM: Add kvm guest support for Loongson-3
date: 5 months ago
config: mips-randconfig-r013-20201227 (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=39c1485c8baa47aa20caefc1ec0a3410fbad6c81
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 39c1485c8baa47aa20caefc1ec0a3410fbad6c81
# 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@xxxxxxxxx>
All warnings (new ones prefixed by >>):
arch/mips/loongson64/env.c: In function 'prom_init_env':
>> arch/mips/loongson64/env.c:50:14: warning: variable 'device' set but not used [-Wunused-but-set-variable]
50 | u16 vendor, device;
| ^~~~~~
{standard input}: Assembler messages:
{standard input}:654: Error: found '(', expected: ')'
{standard input}:654: Error: found '(', expected: ')'
{standard input}:654: Error: non-constant expression in ".if" statement
{standard input}:654: Error: junk at end of line, first unrecognized character is `('
{standard input}:667: Error: found '(', expected: ')'
{standard input}:667: Error: found '(', expected: ')'
{standard input}:667: Error: non-constant expression in ".if" statement
{standard input}:667: Error: junk at end of line, first unrecognized character is `('
vim +/device +50 arch/mips/loongson64/env.c
fc2ca674470bbfe arch/mips/loongson64/common/env.c Guenter Roeck 2015-08-30 41
1bdb7b76705a389 arch/mips/loongson64/common/env.c Jiaxun Yang 2019-10-20 42 void __init prom_init_env(void)
1bdb7b76705a389 arch/mips/loongson64/common/env.c Jiaxun Yang 2019-10-20 43 {
1a08f1524d2ee4d arch/mips/loongson/common/env.c Huacai Chen 2014-03-21 44 struct boot_params *boot_p;
1a08f1524d2ee4d arch/mips/loongson/common/env.c Huacai Chen 2014-03-21 45 struct loongson_params *loongson_p;
3adeb2566b9bc1d arch/mips/loongson/common/env.c Huacai Chen 2014-11-04 46 struct system_loongson *esys;
1a08f1524d2ee4d arch/mips/loongson/common/env.c Huacai Chen 2014-03-21 47 struct efi_cpuinfo_loongson *ecpu;
1a08f1524d2ee4d arch/mips/loongson/common/env.c Huacai Chen 2014-03-21 48 struct irq_source_routing_table *eirq_source;
8c88cc53ffa62b4 arch/mips/loongson64/env.c Tiezhu Yang 2020-04-03 49 u32 id;
8c88cc53ffa62b4 arch/mips/loongson64/env.c Tiezhu Yang 2020-04-03 @50 u16 vendor, device;
:::::: The code at line 50 was first introduced by commit
:::::: 8c88cc53ffa62b4bb05931c878bcf3dd10db66b5 MIPS: Loongson: Get host bridge information
:::::: TO: Tiezhu Yang <yangtiezhu@xxxxxxxxxxx>
:::::: CC: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip