From: kernel test robot <lkp@intel.com>
To: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
linux-kernel@vger.kernel.org,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Subject: drivers/pci/controller/pci-ftpci100.c:37:9: warning: 'PCI_IOSIZE' macro redefined
Date: Sun, 7 Feb 2021 20:22:57 +0800 [thread overview]
Message-ID: <202102072053.m9VVYkmr-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3525 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 61556703b610a104de324e4f061dc6cf7b218b46
commit: 482cd90cd781c9b5607ed9c9f8641dc95a9d4cce MIPS: Loongson64: Define PCI_IOBASE
date: 9 months ago
config: mips-randconfig-r032-20210207 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=482cd90cd781c9b5607ed9c9f8641dc95a9d4cce
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 482cd90cd781c9b5607ed9c9f8641dc95a9d4cce
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 >>):
>> drivers/pci/controller/pci-ftpci100.c:37:9: warning: 'PCI_IOSIZE' macro redefined [-Wmacro-redefined]
#define PCI_IOSIZE 0x00
^
arch/mips/include/asm/mach-loongson64/spaces.h:11:9: note: previous definition is here
#define PCI_IOSIZE SZ_16M
^
1 warning generated.
Assembler messages:
Fatal error: invalid -march= option: `mips64r2'
clang-12: error: assembler command failed with exit code 1 (use -v to see invocation)
vim +/PCI_IOSIZE +37 drivers/pci/controller/pci-ftpci100.c
9e2aee80c78d50 drivers/pci/host/pci-ftpci100.c Rob Herring 2018-05-11 32
d3c68e0a7e34af drivers/pci/host/pci-ftpci100.c Linus Walleij 2017-03-12 33 /*
d3c68e0a7e34af drivers/pci/host/pci-ftpci100.c Linus Walleij 2017-03-12 34 * Special configuration registers directly in the first few words
d3c68e0a7e34af drivers/pci/host/pci-ftpci100.c Linus Walleij 2017-03-12 35 * in I/O space.
d3c68e0a7e34af drivers/pci/host/pci-ftpci100.c Linus Walleij 2017-03-12 36 */
d3c68e0a7e34af drivers/pci/host/pci-ftpci100.c Linus Walleij 2017-03-12 @37 #define PCI_IOSIZE 0x00
d3c68e0a7e34af drivers/pci/host/pci-ftpci100.c Linus Walleij 2017-03-12 38 #define PCI_PROT 0x04 /* AHB protection */
d3c68e0a7e34af drivers/pci/host/pci-ftpci100.c Linus Walleij 2017-03-12 39 #define PCI_CTRL 0x08 /* PCI control signal */
d3c68e0a7e34af drivers/pci/host/pci-ftpci100.c Linus Walleij 2017-03-12 40 #define PCI_SOFTRST 0x10 /* Soft reset counter and response error enable */
d3c68e0a7e34af drivers/pci/host/pci-ftpci100.c Linus Walleij 2017-03-12 41 #define PCI_CONFIG 0x28 /* PCI configuration command register */
d3c68e0a7e34af drivers/pci/host/pci-ftpci100.c Linus Walleij 2017-03-12 42 #define PCI_DATA 0x2C
d3c68e0a7e34af drivers/pci/host/pci-ftpci100.c Linus Walleij 2017-03-12 43
:::::: The code at line 37 was first introduced by commit
:::::: d3c68e0a7e34af2b86f5408c4d6e794a38bbd9e1 PCI: faraday: Add Faraday Technology FTPCI100 PCI Host Bridge driver
:::::: TO: Linus Walleij <linus.walleij@linaro.org>
:::::: CC: Bjorn Helgaas <bhelgaas@google.com>
---
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: 27657 bytes --]
reply other threads:[~2021-02-07 12:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202102072053.m9VVYkmr-lkp@intel.com \
--to=lkp@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=jiaxun.yang@flygoat.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®