From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [tglx-devel:irq/msi 4/8] include/asm-generic/io.h:173:15: error: too many arguments to function 'readl'
Date: Wed, 21 Jul 2021 10:53:36 +0800 [thread overview]
Message-ID: <202107211024.Dw0mRyVU-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4253 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git irq/msi
head: 148a9616eb053a8c0d0c9859fde99fa2aee3ccea
commit: abefd748ab60997c05fcd79e7b4072cd4fd47c19 [4/8] PCI/MSI: Enforce MSI[X] entry updates to be visible
config: ia64-randconfig-r025-20210720 (attached as .config)
compiler: ia64-linux-gcc (GCC) 10.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/tglx/devel.git/commit/?id=abefd748ab60997c05fcd79e7b4072cd4fd47c19
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel irq/msi
git checkout abefd748ab60997c05fcd79e7b4072cd4fd47c19
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/pci/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/pci/msi.c: In function '__pci_write_msi_msg':
drivers/pci/msi.c:316:12: warning: passing argument 1 of 'readl' makes pointer from integer without a cast [-Wint-conversion]
316 | readl(msg->data, base + PCI_MSIX_ENTRY_DATA);
| ~~~^~~~~~
| |
| u32 {aka unsigned int}
In file included from arch/ia64/include/asm/io.h:281,
from arch/ia64/include/asm/uaccess.h:41,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/huge_mm.h:8,
from include/linux/mm.h:728,
from drivers/pci/msi.c:11:
include/asm-generic/io.h:174:54: note: expected 'const volatile void *' but argument is of type 'u32' {aka 'unsigned int'}
174 | static inline u32 readl(const volatile void __iomem *addr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
>> include/asm-generic/io.h:173:15: error: too many arguments to function 'readl'
173 | #define readl readl
| ^~~~~
drivers/pci/msi.c:316:3: note: in expansion of macro 'readl'
316 | readl(msg->data, base + PCI_MSIX_ENTRY_DATA);
| ^~~~~
include/asm-generic/io.h:173:15: note: declared here
173 | #define readl readl
| ^~~~~
include/asm-generic/io.h:174:19: note: in expansion of macro 'readl'
174 | static inline u32 readl(const volatile void __iomem *addr)
| ^~~~~
vim +/readl +173 include/asm-generic/io.h
7dc59bdde70633 GuanXuetao 2011-02-22 171
9216efafc52ff9 Thierry Reding 2014-10-01 172 #ifndef readl
9216efafc52ff9 Thierry Reding 2014-10-01 @173 #define readl readl
9216efafc52ff9 Thierry Reding 2014-10-01 174 static inline u32 readl(const volatile void __iomem *addr)
3f7e212df82ca0 Arnd Bergmann 2009-05-13 175 {
032d59e1cde9dd Sinan Kaya 2018-04-05 176 u32 val;
032d59e1cde9dd Sinan Kaya 2018-04-05 177
032d59e1cde9dd Sinan Kaya 2018-04-05 178 __io_br();
c1d55d50139bea Stafford Horne 2020-07-29 179 val = __le32_to_cpu((__le32 __force)__raw_readl(addr));
abbbbc83a210e9 Will Deacon 2019-02-22 180 __io_ar(val);
032d59e1cde9dd Sinan Kaya 2018-04-05 181 return val;
3f7e212df82ca0 Arnd Bergmann 2009-05-13 182 }
9216efafc52ff9 Thierry Reding 2014-10-01 183 #endif
3f7e212df82ca0 Arnd Bergmann 2009-05-13 184
:::::: The code at line 173 was first introduced by commit
:::::: 9216efafc52ff99e9351ef60de5fcafc2bc8adb6 asm-generic/io.h: Reconcile I/O accessor overrides
:::::: TO: Thierry Reding <treding@nvidia.com>
:::::: CC: Thierry Reding <treding@nvidia.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: 26645 bytes --]
reply other threads:[~2021-07-21 2:56 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=202107211024.Dw0mRyVU-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.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