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  linux-cve-announce  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]
Message-ID: <202104032258.OvL7Hl1x-lkp@intel.com>
Date:   Sat, 3 Apr 2021 22:39:10 +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

Hi Huacai,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d93a0d43e3d0ba9e19387be4dae4a8d5b175a8d7
commit: 39c1485c8baa47aa20caefc1ec0a3410fbad6c81 MIPS: KVM: Add kvm guest support for Loongson-3
date:   8 months ago
config: mips-randconfig-r036-20210403 (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}:788: Error: found '(', expected: ')'
   {standard input}:788: Error: found '(', expected: ')'
   {standard input}:788: Error: non-constant expression in ".if" statement
   {standard input}:788: Error: junk at end of line, first unrecognized character is `('
   {standard input}:801: Error: found '(', expected: ')'
   {standard input}:801: Error: found '(', expected: ')'
   {standard input}:801: Error: non-constant expression in ".if" statement
   {standard input}:801: Error: junk at end of line, first unrecognized character is `('


vim +/device +50 arch/mips/loongson64/env.c

fc2ca674470bbf arch/mips/loongson64/common/env.c Guenter Roeck 2015-08-30  41  
1bdb7b76705a38 arch/mips/loongson64/common/env.c Jiaxun Yang   2019-10-20  42  void __init prom_init_env(void)
1bdb7b76705a38 arch/mips/loongson64/common/env.c Jiaxun Yang   2019-10-20  43  {
1a08f1524d2ee4 arch/mips/loongson/common/env.c   Huacai Chen   2014-03-21  44  	struct boot_params *boot_p;
1a08f1524d2ee4 arch/mips/loongson/common/env.c   Huacai Chen   2014-03-21  45  	struct loongson_params *loongson_p;
3adeb2566b9bc1 arch/mips/loongson/common/env.c   Huacai Chen   2014-11-04  46  	struct system_loongson *esys;
1a08f1524d2ee4 arch/mips/loongson/common/env.c   Huacai Chen   2014-03-21  47  	struct efi_cpuinfo_loongson *ecpu;
1a08f1524d2ee4 arch/mips/loongson/common/env.c   Huacai Chen   2014-03-21  48  	struct irq_source_routing_table *eirq_source;
8c88cc53ffa62b arch/mips/loongson64/env.c        Tiezhu Yang   2020-04-03  49  	u32 id;
8c88cc53ffa62b 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" (23305 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ