* [jgunthorpe:vfio_reflck_cleanup 3/12] drivers/vfio/vfio.c:743:6: error: conflicting types for 'vfio_init_group_dev'
@ 2021-07-01 3:18 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-01 3:18 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4570 bytes --]
tree: https://github.com/jgunthorpe/linux vfio_reflck_cleanup
head: f4e0a740bed3d566fe5cbe71f10a4a32b5c0b2e6
commit: e7b791049d64f9a7b6028b6ed3175ca53d2ad915 [3/12] vfio: Introduce a vfio_uninit_group_dev() API call
config: arm64-randconfig-s032-20210630 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/jgunthorpe/linux/commit/e7b791049d64f9a7b6028b6ed3175ca53d2ad915
git remote add jgunthorpe https://github.com/jgunthorpe/linux
git fetch --no-tags jgunthorpe vfio_reflck_cleanup
git checkout e7b791049d64f9a7b6028b6ed3175ca53d2ad915
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/vfio/
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/vfio/vfio.c:743:6: error: conflicting types for 'vfio_init_group_dev'
743 | void vfio_init_group_dev(struct vfio_device *device, struct device *dev,
| ^~~~~~~~~~~~~~~~~~~
In file included from drivers/vfio/vfio.c:32:
include/linux/vfio.h:62:5: note: previous declaration of 'vfio_init_group_dev' was here
62 | int vfio_init_group_dev(struct vfio_device *device, struct device *dev,
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/linkage.h:7,
from include/linux/kernel.h:8,
from include/linux/list.h:9,
from include/linux/kobject.h:19,
from include/linux/cdev.h:5,
from drivers/vfio/vfio.c:13:
drivers/vfio/vfio.c:750:19: error: conflicting types for 'vfio_init_group_dev'
750 | EXPORT_SYMBOL_GPL(vfio_init_group_dev);
| ^~~~~~~~~~~~~~~~~~~
include/linux/export.h:98:21: note: in definition of macro '___EXPORT_SYMBOL'
98 | extern typeof(sym) sym; \
| ^~~
include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
159 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/vfio/vfio.c:750:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
750 | EXPORT_SYMBOL_GPL(vfio_init_group_dev);
| ^~~~~~~~~~~~~~~~~
In file included from drivers/vfio/vfio.c:32:
include/linux/vfio.h:62:5: note: previous declaration of 'vfio_init_group_dev' was here
62 | int vfio_init_group_dev(struct vfio_device *device, struct device *dev,
| ^~~~~~~~~~~~~~~~~~~
vim +/vfio_init_group_dev +743 drivers/vfio/vfio.c
cba3345cc494ad Alex Williamson 2012-07-31 739
cba3345cc494ad Alex Williamson 2012-07-31 740 /**
cba3345cc494ad Alex Williamson 2012-07-31 741 * VFIO driver API
cba3345cc494ad Alex Williamson 2012-07-31 742 */
0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 @743 void vfio_init_group_dev(struct vfio_device *device, struct device *dev,
1e04ec14204dec Jason Gunthorpe 2021-03-30 744 const struct vfio_device_ops *ops)
cba3345cc494ad Alex Williamson 2012-07-31 745 {
0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 746 init_completion(&device->comp);
0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 747 device->dev = dev;
0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 748 device->ops = ops;
0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 749 }
0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 750 EXPORT_SYMBOL_GPL(vfio_init_group_dev);
0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 751
:::::: The code at line 743 was first introduced by commit
:::::: 0bfc6a4ea63c2adac71a824397ef48f28dbc5e47 vfio: Split creation of a vfio_device into init and register ops
:::::: TO: Jason Gunthorpe <jgg@nvidia.com>
:::::: CC: Alex Williamson <alex.williamson@redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 39716 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [jgunthorpe:vfio_reflck_cleanup 3/12] drivers/vfio/vfio.c:743:6: error: conflicting types for 'vfio_init_group_dev'
@ 2021-07-01 9:22 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-01 9:22 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3032 bytes --]
tree: https://github.com/jgunthorpe/linux vfio_reflck_cleanup
head: f4e0a740bed3d566fe5cbe71f10a4a32b5c0b2e6
commit: e7b791049d64f9a7b6028b6ed3175ca53d2ad915 [3/12] vfio: Introduce a vfio_uninit_group_dev() API call
config: x86_64-randconfig-a012-20210630 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e7e71e9454ed76c1b3d8140170b5333c28bef1be)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/jgunthorpe/linux/commit/e7b791049d64f9a7b6028b6ed3175ca53d2ad915
git remote add jgunthorpe https://github.com/jgunthorpe/linux
git fetch --no-tags jgunthorpe vfio_reflck_cleanup
git checkout e7b791049d64f9a7b6028b6ed3175ca53d2ad915
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/
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/vfio/vfio.c:743:6: error: conflicting types for 'vfio_init_group_dev'
void vfio_init_group_dev(struct vfio_device *device, struct device *dev,
^
include/linux/vfio.h:62:5: note: previous declaration is here
int vfio_init_group_dev(struct vfio_device *device, struct device *dev,
^
1 error generated.
vim +/vfio_init_group_dev +743 drivers/vfio/vfio.c
cba3345cc494ad Alex Williamson 2012-07-31 739
cba3345cc494ad Alex Williamson 2012-07-31 740 /**
cba3345cc494ad Alex Williamson 2012-07-31 741 * VFIO driver API
cba3345cc494ad Alex Williamson 2012-07-31 742 */
0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 @743 void vfio_init_group_dev(struct vfio_device *device, struct device *dev,
1e04ec14204dec Jason Gunthorpe 2021-03-30 744 const struct vfio_device_ops *ops)
cba3345cc494ad Alex Williamson 2012-07-31 745 {
0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 746 init_completion(&device->comp);
0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 747 device->dev = dev;
0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 748 device->ops = ops;
0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 749 }
0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 750 EXPORT_SYMBOL_GPL(vfio_init_group_dev);
0bfc6a4ea63c2a Jason Gunthorpe 2021-03-30 751
:::::: The code at line 743 was first introduced by commit
:::::: 0bfc6a4ea63c2adac71a824397ef48f28dbc5e47 vfio: Split creation of a vfio_device into init and register ops
:::::: TO: Jason Gunthorpe <jgg@nvidia.com>
:::::: CC: Alex Williamson <alex.williamson@redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 38417 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-01 9:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-01 3:18 [jgunthorpe:vfio_reflck_cleanup 3/12] drivers/vfio/vfio.c:743:6: error: conflicting types for 'vfio_init_group_dev' kernel test robot
2021-07-01 9:22 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.