lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 29 Dec 2020 17:08:07 +0800
From:   kernel test robot <lkp@...el.com>
To:     Huacai Chen <chenhc@...ote.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Subject: arch/mips/loongson64/env.c:50:14: warning: variable 'device' set but
 not used

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@...el.com>

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@...ngson.cn>
:::::: CC: Thomas Bogendoerfer <tsbogend@...ha.franken.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (35169 bytes)

Powered by blists - more mailing lists