[jgunthorpe:vfio_iommufd 31/32] drivers/vfio/vfio.h:139:1: error: expected identifier or '(' before '{' token

From: kernel test robot
Date: Sat Aug 27 2022 - 17:39:13 EST


tree: https://github.com/jgunthorpe/linux vfio_iommufd
head: e2712af9ab672315cac202aee200eac0d63d7537
commit: e44832b4f99da1885565bf73e49805c2f82a7386 [31/32] vfio: Make vfio_container optionally compiled
config: sparc64-randconfig-c041-20220828 (https://download.01.org/0day-ci/archive/20220828/202208280502.wOrVPveF-lkp@xxxxxxxxx/config)
compiler: sparc64-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/jgunthorpe/linux/commit/e44832b4f99da1885565bf73e49805c2f82a7386
git remote add jgunthorpe https://github.com/jgunthorpe/linux
git fetch --no-tags jgunthorpe vfio_iommufd
git checkout e44832b4f99da1885565bf73e49805c2f82a7386
# 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=sparc64 SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All error/warnings (new ones prefixed by >>):

In file included from drivers/vfio/vfio_main.c:36:
>> drivers/vfio/vfio.h:139:1: error: expected identifier or '(' before '{' token
139 | {
| ^
>> drivers/vfio/vfio.h:138:19: warning: 'vfio_container_use' used but never defined
138 | static inline int vfio_container_use(struct vfio_group *group);
| ^~~~~~~~~~~~~~~~~~
--
In file included from drivers/vfio/vfio_iommufd.c:8:
>> drivers/vfio/vfio.h:139:1: error: expected identifier or '(' before '{' token
139 | {
| ^
drivers/vfio/vfio.h:138:19: warning: 'vfio_container_use' declared 'static' but never defined [-Wunused-function]
138 | static inline int vfio_container_use(struct vfio_group *group);
| ^~~~~~~~~~~~~~~~~~


vim +139 drivers/vfio/vfio.h

137
> 138 static inline int vfio_container_use(struct vfio_group *group);
> 139 {
140 return -EOPNOTSUPP;
141 }
142

--
0-DAY CI Kernel Test Service
https://01.org/lkp