[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
From: kernel test robot
Date: Wed Nov 17 2021 - 21:04:42 EST
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@xxxxxxxxx>
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@xxxxxxx>
:::::: CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip