public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [jgunthorpe:vfio_iommufd 31/32] drivers/vfio/vfio.h:139:1: error: expected identifier or '(' before '{' token
@ 2022-08-27 21:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-08-27 21:37 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: kbuild-all, linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-27 21:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-27 21:37 [jgunthorpe:vfio_iommufd 31/32] drivers/vfio/vfio.h:139:1: error: expected identifier or '(' before '{' token kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox