* [yiliu1765-iommufd:tmp/for-baol-0303 2/3] drivers/iommu/iommufd/iommufd_test.h:108:49: warning: initialization of 'struct module *' from 'unsigned int' makes pointer from integer without a cast
@ 2023-03-06 7:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-06 7:00 UTC (permalink / raw)
To: Yi Liu, Kevin Tian; +Cc: oe-kbuild-all
tree: https://github.com/yiliu1765/iommufd.git tmp/for-baol-0303
head: 1deb6b0bd8550875925ed23c0d294ed44599cf43
commit: c8061fe1dee28f79e1c01de0f4b3da33a5958702 [2/3] Additional change to
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20230306/202303061422.Qe85cfc0-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.1.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://github.com/yiliu1765/iommufd/commit/c8061fe1dee28f79e1c01de0f4b3da33a5958702
git remote add yiliu1765-iommufd https://github.com/yiliu1765/iommufd.git
git fetch --no-tags yiliu1765-iommufd tmp/for-baol-0303
git checkout c8061fe1dee28f79e1c01de0f4b3da33a5958702
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/iommu/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303061422.Qe85cfc0-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/iommu/iommufd/selftest.c:338:10: error: 'const struct iommu_ops' has no member named 'driver_type'
338 | .driver_type = IOMMU_DEVICE_DATA_SELFTEST,
| ^~~~~~~~~~~
In file included from drivers/iommu/iommufd/selftest.c:16:
>> drivers/iommu/iommufd/iommufd_test.h:108:49: warning: initialization of 'struct module *' from 'unsigned int' makes pointer from integer without a cast [-Wint-conversion]
108 | #define IOMMU_DEVICE_DATA_SELFTEST 0xfeedbeef
| ^~~~~~~~~~
drivers/iommu/iommufd/selftest.c:338:24: note: in expansion of macro 'IOMMU_DEVICE_DATA_SELFTEST'
338 | .driver_type = IOMMU_DEVICE_DATA_SELFTEST,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iommu/iommufd/iommufd_test.h:108:49: note: (near initialization for 'mock_ops.owner')
108 | #define IOMMU_DEVICE_DATA_SELFTEST 0xfeedbeef
| ^~~~~~~~~~
drivers/iommu/iommufd/selftest.c:338:24: note: in expansion of macro 'IOMMU_DEVICE_DATA_SELFTEST'
338 | .driver_type = IOMMU_DEVICE_DATA_SELFTEST,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iommu/iommufd/iommufd_test.h:108:49: warning: initialized field overwritten [-Woverride-init]
108 | #define IOMMU_DEVICE_DATA_SELFTEST 0xfeedbeef
| ^~~~~~~~~~
drivers/iommu/iommufd/selftest.c:338:24: note: in expansion of macro 'IOMMU_DEVICE_DATA_SELFTEST'
338 | .driver_type = IOMMU_DEVICE_DATA_SELFTEST,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iommu/iommufd/iommufd_test.h:108:49: note: (near initialization for 'mock_ops.owner')
108 | #define IOMMU_DEVICE_DATA_SELFTEST 0xfeedbeef
| ^~~~~~~~~~
drivers/iommu/iommufd/selftest.c:338:24: note: in expansion of macro 'IOMMU_DEVICE_DATA_SELFTEST'
338 | .driver_type = IOMMU_DEVICE_DATA_SELFTEST,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +108 drivers/iommu/iommufd/iommufd_test.h
f4b20bb34c83dc Jason Gunthorpe 2022-11-29 106
e4e70ffa9538c0 Nicolin Chen 2022-12-14 107 /* Mock structs for IOMMU_DEVICE_GET_INFO ioctl */
e4e70ffa9538c0 Nicolin Chen 2022-12-14 @108 #define IOMMU_DEVICE_DATA_SELFTEST 0xfeedbeef
e4e70ffa9538c0 Nicolin Chen 2022-12-14 109 #define IOMMU_DEVICE_INFO_SELFTEST_REGVAL 0xdeadbeef
e4e70ffa9538c0 Nicolin Chen 2022-12-14 110
:::::: The code at line 108 was first introduced by commit
:::::: e4e70ffa9538c03e4b9a724ade6434e53f18caba iommufd/selftest: Add coverage for IOMMU_DEVICE_GET_INFO ioctl
:::::: TO: Nicolin Chen <nicolinc@nvidia.com>
:::::: CC: Nicolin Chen <nicolinc@nvidia.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-06 7:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-06 7:00 [yiliu1765-iommufd:tmp/for-baol-0303 2/3] drivers/iommu/iommufd/iommufd_test.h:108:49: warning: initialization of 'struct module *' from 'unsigned int' makes pointer from integer without a cast kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.