Re: [PATCH] drm/vgem: create a render node for vgem

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

 



Hi Emil,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on sof-driver-fuweitax/master]
[also build test ERROR on v4.19 next-20181019]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Emil-Velikov/drm-vgem-create-a-render-node-for-vgem/20181026-233734
base:   https://github.com/fuweitax/linux master
config: i386-randconfig-x077-201842 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/vgem/vgem_drv.c:436:21: error: expected '}' before ';' token
           DRIVER_RENDER;
                        ^
   drivers/gpu/drm/vgem/vgem_drv.c:424:13: warning: 'vgem_release' defined but not used [-Wunused-function]
    static void vgem_release(struct drm_device *dev)
                ^~~~~~~~~~~~
   drivers/gpu/drm/vgem/vgem_drv.c:401:12: warning: 'vgem_prime_mmap' defined but not used [-Wunused-function]
    static int vgem_prime_mmap(struct drm_gem_object *obj,
               ^~~~~~~~~~~~~~~
   drivers/gpu/drm/vgem/vgem_drv.c:393:13: warning: 'vgem_prime_vunmap' defined but not used [-Wunused-function]
    static void vgem_prime_vunmap(struct drm_gem_object *obj, void *vaddr)
                ^~~~~~~~~~~~~~~~~
   drivers/gpu/drm/vgem/vgem_drv.c:380:14: warning: 'vgem_prime_vmap' defined but not used [-Wunused-function]
    static void *vgem_prime_vmap(struct drm_gem_object *obj)
                 ^~~~~~~~~~~~~~~
   drivers/gpu/drm/vgem/vgem_drv.c:355:31: warning: 'vgem_prime_import_sg_table' defined but not used [-Wunused-function]
    static struct drm_gem_object *vgem_prime_import_sg_table(struct drm_device *dev,
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/vgem/vgem_drv.c:347:31: warning: 'vgem_prime_import' defined but not used [-Wunused-function]
    static struct drm_gem_object* vgem_prime_import(struct drm_device *dev,
                                  ^~~~~~~~~~~~~~~~~
   drivers/gpu/drm/vgem/vgem_drv.c:340:25: warning: 'vgem_prime_get_sg_table' defined but not used [-Wunused-function]
    static struct sg_table *vgem_prime_get_sg_table(struct drm_gem_object *obj)
                            ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/vgem/vgem_drv.c:333:13: warning: 'vgem_prime_unpin' defined but not used [-Wunused-function]
    static void vgem_prime_unpin(struct drm_gem_object *obj)
                ^~~~~~~~~~~~~~~~
   drivers/gpu/drm/vgem/vgem_drv.c:315:12: warning: 'vgem_prime_pin' defined but not used [-Wunused-function]
    static int vgem_prime_pin(struct drm_gem_object *obj)
               ^~~~~~~~~~~~~~
   drivers/gpu/drm/vgem/vgem_drv.c:253:30: warning: 'vgem_ioctls' defined but not used [-Wunused-variable]
    static struct drm_ioctl_desc vgem_ioctls[] = {
                                 ^~~~~~~~~~~
   drivers/gpu/drm/vgem/vgem_drv.c:227:12: warning: 'vgem_gem_dumb_map' defined but not used [-Wunused-function]
    static int vgem_gem_dumb_map(struct drm_file *file, struct drm_device *dev,
               ^~~~~~~~~~~~~~~~~
   drivers/gpu/drm/vgem/vgem_drv.c:204:12: warning: 'vgem_gem_dumb_create' defined but not used [-Wunused-function]
    static int vgem_gem_dumb_create(struct drm_file *file, struct drm_device *dev,
               ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/vgem/vgem_drv.c:145:13: warning: 'vgem_postclose' defined but not used [-Wunused-function]
    static void vgem_postclose(struct drm_device *dev, struct drm_file *file)
                ^~~~~~~~~~~~~~
   drivers/gpu/drm/vgem/vgem_drv.c:125:12: warning: 'vgem_open' defined but not used [-Wunused-function]
    static int vgem_open(struct drm_device *dev, struct drm_file *file)
               ^~~~~~~~~
   drivers/gpu/drm/vgem/vgem_drv.c:50:13: warning: 'vgem_gem_free_object' defined but not used [-Wunused-function]
    static void vgem_gem_free_object(struct drm_gem_object *obj)
                ^~~~~~~~~~~~~~~~~~~~

vim +436 drivers/gpu/drm/vgem/vgem_drv.c

   433	
   434	static struct drm_driver vgem_driver = {
   435		.driver_features		= DRIVER_GEM | DRIVER_PRIME |
 > 436						  DRIVER_RENDER;
   437		.release			= vgem_release,
   438		.open				= vgem_open,
   439		.postclose			= vgem_postclose,
   440		.gem_free_object_unlocked	= vgem_gem_free_object,
   441		.gem_vm_ops			= &vgem_gem_vm_ops,
   442		.ioctls				= vgem_ioctls,
   443		.num_ioctls 			= ARRAY_SIZE(vgem_ioctls),
   444		.fops				= &vgem_driver_fops,
   445	
   446		.dumb_create			= vgem_gem_dumb_create,
   447		.dumb_map_offset		= vgem_gem_dumb_map,
   448	
   449		.prime_handle_to_fd = drm_gem_prime_handle_to_fd,
   450		.prime_fd_to_handle = drm_gem_prime_fd_to_handle,
   451		.gem_prime_pin = vgem_prime_pin,
   452		.gem_prime_unpin = vgem_prime_unpin,
   453		.gem_prime_import = vgem_prime_import,
   454		.gem_prime_export = drm_gem_prime_export,
   455		.gem_prime_import_sg_table = vgem_prime_import_sg_table,
   456		.gem_prime_get_sg_table = vgem_prime_get_sg_table,
   457		.gem_prime_vmap = vgem_prime_vmap,
   458		.gem_prime_vunmap = vgem_prime_vunmap,
   459		.gem_prime_mmap = vgem_prime_mmap,
   460	
   461		.name	= DRIVER_NAME,
   462		.desc	= DRIVER_DESC,
   463		.date	= DRIVER_DATE,
   464		.major	= DRIVER_MAJOR,
   465		.minor	= DRIVER_MINOR,
   466	};
   467	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[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