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:msi 46/89] include/vdso/bits.h:7:33: error: passing argument 1 of 'msi_device_has_property' makes pointer from integer without a cast
Date: Thu, 18 Nov 2021 10:04:08 +0800 [thread overview]
Message-ID: <202111181059.MI5xyar0-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3704 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git msi
head: 4c0c122f742a15b3fee04b234e1fb4191621a92f
commit: b78cf3459e9a30b2f7c98ce2f8876245e291b75b [46/89] powerpc/cell/axon_msi: Use MSI device properties
config: powerpc64-defconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.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=b78cf3459e9a30b2f7c98ce2f8876245e291b75b
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel msi
git checkout b78cf3459e9a30b2f7c98ce2f8876245e291b75b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
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 >>):
In file included from include/linux/bits.h:6,
from include/linux/bitops.h:6,
from include/linux/kernel.h:13,
from include/linux/interrupt.h:6,
from arch/powerpc/platforms/cell/axon_msi.c:7:
arch/powerpc/platforms/cell/axon_msi.c: In function 'setup_msi_msg_address':
>> include/vdso/bits.h:7:33: error: passing argument 1 of 'msi_device_has_property' makes pointer from integer without a cast [-Werror=int-conversion]
7 | #define BIT(nr) (UL(1) << (nr))
| ^~~~~~~~~~~~~~~
| |
| long unsigned int
include/linux/msi.h:161:41: note: in expansion of macro 'BIT'
161 | #define MSI_PROP_64BIT BIT(2)
| ^~~
arch/powerpc/platforms/cell/axon_msi.c:212:44: note: in expansion of macro 'MSI_PROP_64BIT'
212 | is_64bit = msi_device_has_property(MSI_PROP_64BIT);
| ^~~~~~~~~~~~~~
In file included from arch/powerpc/platforms/cell/axon_msi.c:11:
include/linux/msi.h:164:45: note: expected 'struct device *' but argument is of type 'long unsigned int'
164 | bool msi_device_has_property(struct device *dev, unsigned long prop);
| ~~~~~~~~~~~~~~~^~~
>> arch/powerpc/platforms/cell/axon_msi.c:212:20: error: too few arguments to function 'msi_device_has_property'
212 | is_64bit = msi_device_has_property(MSI_PROP_64BIT);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/powerpc/platforms/cell/axon_msi.c:11:
include/linux/msi.h:164:6: note: declared here
164 | bool msi_device_has_property(struct device *dev, unsigned long prop);
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/msi_device_has_property +7 include/vdso/bits.h
3945ff37d2f48d3 Vincenzo Frascino 2020-03-20 6
3945ff37d2f48d3 Vincenzo Frascino 2020-03-20 @7 #define BIT(nr) (UL(1) << (nr))
3945ff37d2f48d3 Vincenzo Frascino 2020-03-20 8
:::::: The code at line 7 was first introduced by commit
:::::: 3945ff37d2f48d39fd1751d282c80176654049e4 linux/bits.h: Extract common header for vDSO
:::::: TO: Vincenzo Frascino <vincenzo.frascino@arm.com>
:::::: CC: Thomas Gleixner <tglx@linutronix.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: 27349 bytes --]
reply other threads:[~2021-11-18 2:04 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=202111181059.MI5xyar0-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
all inboxes | Powered by JetHome®