lkml.org 
[lkml]   [2022]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[jgunthorpe:vfio_iommufd 31/32] drivers/vfio/vfio.h:139:1: error: expected identifier or '(' before '{' token
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@intel.com/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@intel.com>

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

\
 
 \ /
  Last update: 2022-08-27 23:38    [W:0.036 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site