Re: [PATCH v2] drm/syncobj: add DRM_IOCTL_SYNCOBJ_IMPORT/EXPORT_SYNC_FILE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Erik,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-misc/drm-misc-next]
[also build test ERROR on drm-tip/drm-tip next-20230721]
[cannot apply to drm/drm-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes linus/master v6.5-rc2]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Erik-Kurzinger/drm-syncobj-add-DRM_IOCTL_SYNCOBJ_IMPORT-EXPORT_SYNC_FILE/20230722-003446
base:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link:    https://lore.kernel.org/r/a09e38a6-5ac3-75c1-eadd-38a265e0ae33%40nvidia.com
patch subject: [PATCH v2] drm/syncobj: add DRM_IOCTL_SYNCOBJ_IMPORT/EXPORT_SYNC_FILE
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230722/202307220102.hq8N9hIr-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230722/202307220102.hq8N9hIr-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307220102.hq8N9hIr-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/drm_syncobj.c: In function 'drm_syncobj_fd_to_handle_ioctl':
>> drivers/gpu/drm/drm_syncobj.c:922:71: error: expected ')' before numeric constant
     922 |                                                           args->handle
         |                                                                       ^
         |                                                                       )
     923 |                                                           0 /* binary */);
         |                                                           ~            
   drivers/gpu/drm/drm_syncobj.c:920:58: note: to match this '('
     920 |                 return drm_syncobj_import_sync_file_fence(file_private,
         |                                                          ^
>> drivers/gpu/drm/drm_syncobj.c:920:24: error: too few arguments to function 'drm_syncobj_import_sync_file_fence'
     920 |                 return drm_syncobj_import_sync_file_fence(file_private,
         |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/drm_syncobj.c:745:12: note: declared here
     745 | static int drm_syncobj_import_sync_file_fence(struct drm_file *file_private,
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +922 drivers/gpu/drm/drm_syncobj.c

   902	
   903	int
   904	drm_syncobj_fd_to_handle_ioctl(struct drm_device *dev, void *data,
   905					   struct drm_file *file_private)
   906	{
   907		struct drm_syncobj_handle *args = data;
   908	
   909		if (!drm_core_check_feature(dev, DRIVER_SYNCOBJ))
   910			return -EOPNOTSUPP;
   911	
   912		if (args->pad)
   913			return -EINVAL;
   914	
   915		if (args->flags != 0 &&
   916		    args->flags != DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE)
   917			return -EINVAL;
   918	
   919		if (args->flags & DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE)
 > 920			return drm_syncobj_import_sync_file_fence(file_private,
   921								  args->fd,
 > 922								  args->handle
   923								  0 /* binary */);
   924	
   925		return drm_syncobj_fd_to_handle(file_private, args->fd,
   926						&args->handle);
   927	}
   928	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux