From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [jgunthorpe:vfio_reflck_cleanup 3/12] drivers/vfio/vfio.c:743:6: error: conflicting types for 'vfio_init_group_dev'
Date: Thu, 01 Jul 2021 17:22:54 +0800 [thread overview]
Message-ID: <202107011748.eY55knsb-lkp@intel.com> (raw)
[-- 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 --]
next reply other threads:[~2021-07-01 9:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-01 9:22 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
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
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=202107011748.eY55knsb-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 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.