[tegra-drm:drm/tegra/for-next 1/1] drivers/gpu/drm/tegra/drm.c:858:18: error: initialization of 'int (*)(struct drm_minor *)' from incompatible pointer type 'void (*)(struct drm_minor *)'

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

 



tree:   git://anongit.freedesktop.org/tegra/linux.git drm/tegra/for-next
head:   4e1b4dc4172af081c1feb211ed48b77a008aa054
commit: 4e1b4dc4172af081c1feb211ed48b77a008aa054 [1/1] drm/tegra: Remove checks for debugfs functions return value
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 4e1b4dc4172af081c1feb211ed48b77a008aa054
        # save the attached .config to linux build tree
        GCC_VERSION=9.2.0 make.cross ARCH=arm64 

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/tegra/drm.c:858:18: error: initialization of 'int (*)(struct drm_minor *)' from incompatible pointer type 'void (*)(struct drm_minor *)' [-Werror=incompatible-pointer-types]
     858 |  .debugfs_init = tegra_debugfs_init,
         |                  ^~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/tegra/drm.c:858:18: note: (near initialization for 'tegra_drm_driver.debugfs_init')
   cc1: some warnings being treated as errors

vim +858 drivers/gpu/drm/tegra/drm.c

e450fcc6669705 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2013-02-13  849  
9b57f5f2c53e1f drivers/gpu/drm/tegra/drm.c  Thierry Reding  2013-11-08  850  static struct drm_driver tegra_drm_driver = {
0424fdaf883a68 drivers/gpu/drm/tegra/drm.c  Daniel Vetter   2019-06-17  851  	.driver_features = DRIVER_MODESET | DRIVER_GEM |
6c68b71776e760 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2017-08-15  852  			   DRIVER_ATOMIC | DRIVER_RENDER,
d8f4a9eda00678 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2012-11-15  853  	.open = tegra_drm_open,
bda0ecc45fe20b drivers/gpu/drm/tegra/drm.c  Daniel Vetter   2017-05-08  854  	.postclose = tegra_drm_postclose,
c94bedabb3dd72 drivers/gpu/drm/tegra/drm.c  Noralf Trønnes  2017-12-05  855  	.lastclose = drm_fb_helper_lastclose,
d8f4a9eda00678 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2012-11-15  856  
e450fcc6669705 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2013-02-13  857  #if defined(CONFIG_DEBUG_FS)
e450fcc6669705 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2013-02-13 @858  	.debugfs_init = tegra_debugfs_init,
e450fcc6669705 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2013-02-13  859  #endif
e450fcc6669705 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2013-02-13  860  
1ddbdbd6e996c7 drivers/gpu/drm/tegra/drm.c  Daniel Vetter   2016-04-26  861  	.gem_free_object_unlocked = tegra_bo_free_object,
de2ba664c30fcd drivers/gpu/host1x/drm/drm.c Arto Merilainen 2013-03-22  862  	.gem_vm_ops = &tegra_bo_vm_ops,
3800391db1b22a drivers/gpu/drm/tegra/drm.c  Thierry Reding  2013-12-12  863  
3800391db1b22a drivers/gpu/drm/tegra/drm.c  Thierry Reding  2013-12-12  864  	.prime_handle_to_fd = drm_gem_prime_handle_to_fd,
3800391db1b22a drivers/gpu/drm/tegra/drm.c  Thierry Reding  2013-12-12  865  	.prime_fd_to_handle = drm_gem_prime_fd_to_handle,
3800391db1b22a drivers/gpu/drm/tegra/drm.c  Thierry Reding  2013-12-12  866  	.gem_prime_export = tegra_gem_prime_export,
3800391db1b22a drivers/gpu/drm/tegra/drm.c  Thierry Reding  2013-12-12  867  	.gem_prime_import = tegra_gem_prime_import,
3800391db1b22a drivers/gpu/drm/tegra/drm.c  Thierry Reding  2013-12-12  868  
de2ba664c30fcd drivers/gpu/host1x/drm/drm.c Arto Merilainen 2013-03-22  869  	.dumb_create = tegra_bo_dumb_create,
d8f4a9eda00678 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2012-11-15  870  
d8f4a9eda00678 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2012-11-15  871  	.ioctls = tegra_drm_ioctls,
d8f4a9eda00678 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2012-11-15  872  	.num_ioctls = ARRAY_SIZE(tegra_drm_ioctls),
d8f4a9eda00678 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2012-11-15  873  	.fops = &tegra_drm_fops,
d8f4a9eda00678 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2012-11-15  874  
d8f4a9eda00678 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2012-11-15  875  	.name = DRIVER_NAME,
d8f4a9eda00678 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2012-11-15  876  	.desc = DRIVER_DESC,
d8f4a9eda00678 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2012-11-15  877  	.date = DRIVER_DATE,
d8f4a9eda00678 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2012-11-15  878  	.major = DRIVER_MAJOR,
d8f4a9eda00678 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2012-11-15  879  	.minor = DRIVER_MINOR,
d8f4a9eda00678 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2012-11-15  880  	.patchlevel = DRIVER_PATCHLEVEL,
d8f4a9eda00678 drivers/gpu/drm/tegra/drm.c  Thierry Reding  2012-11-15  881  };
776dc38403676f drivers/gpu/host1x/drm/drm.c Thierry Reding  2013-10-14  882  

:::::: The code at line 858 was first introduced by commit
:::::: e450fcc6669705ef49784080ac6dd8513df37763 drm/tegra: Add list of framebuffers to debugfs

:::::: TO: Thierry Reding <thierry.reding@xxxxxxxxxxxxxxxxx>
:::::: CC: Thierry Reding <thierry.reding@xxxxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

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