From: kernel test robot <lkp@intel.com>
To: Huacai Chen <chenhc@lemote.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Subject: arch/mips/loongson64/env.c:50:14: warning: variable 'device' set but not used
Date: Tue, 29 Dec 2020 17:08:07 +0800 [thread overview]
Message-ID: <202012291758.k9U36ahV-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3435 bytes --]
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@intel.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@loongson.cn>
:::::: CC: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35169 bytes --]
next reply other threads:[~2020-12-29 9:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-29 9:08 kernel test robot [this message]
2021-04-03 14:39 kernel test robot
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=202012291758.k9U36ahV-lkp@intel.com \
--to=lkp@intel.com \
--cc=chenhc@lemote.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
/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®