[linux-next:master 2149/3040] drivers/gpu/drm/panel/panel-newvision-nv3052c.c:478:19: error: initialization of 'void (*)(struct spi_device *)' from incompatible pointer type 'int (*)(struct spi_device *)'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ff511c1c68a5a35ab0b3efb3c306fd80b10d74be
commit: 49956b505c53923723370a8960ae8fcd9e2b2116 [2149/3040] drm/panel: Add panel driver for NewVision NV3052C based LCDs
config: nios2-randconfig-r033-20220408 (https://download.01.org/0day-ci/archive/20220409/202204090833.kpGpCUaF-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=49956b505c53923723370a8960ae8fcd9e2b2116
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 49956b505c53923723370a8960ae8fcd9e2b2116
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash drivers/gpu/drm/panel/

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

Note: the linux-next/master HEAD ff511c1c68a5a35ab0b3efb3c306fd80b10d74be builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/panel/panel-newvision-nv3052c.c:478:19: error: initialization of 'void (*)(struct spi_device *)' from incompatible pointer type 'int (*)(struct spi_device *)' [-Werror=incompatible-pointer-types]
     478 |         .remove = nv3052c_remove,
         |                   ^~~~~~~~~~~~~~
   drivers/gpu/drm/panel/panel-newvision-nv3052c.c:478:19: note: (near initialization for 'nv3052c_driver.remove')
   cc1: some warnings being treated as errors


vim +478 drivers/gpu/drm/panel/panel-newvision-nv3052c.c

   471	
   472	static struct spi_driver nv3052c_driver = {
   473		.driver = {
   474			.name = "nv3052c",
   475			.of_match_table = nv3052c_of_match,
   476		},
   477		.probe = nv3052c_probe,
 > 478		.remove = nv3052c_remove,
   479	};
   480	module_spi_driver(nv3052c_driver);
   481	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux