[geert-renesas-drivers:master 64/99] drivers/gpu/drm/tiny/panel-mipi-dbi.c:391:12: error: incompatible function pointer types initializing 'void (*)(struct spi_device *)' with an expression of 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/geert/renesas-drivers.git master
head:   6a5d6020e6854b38797ea17807457dcdc858aa29
commit: a3b63172d757ac1a27e1f179585052f38e0ddd8c [64/99] Merge remote-tracking branch 'drm/drm-next' into renesas-drivers
config: hexagon-randconfig-r045-20220322 (https://download.01.org/0day-ci/archive/20220323/202203230213.cy4sjibp-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 85e9b2687a13d1908aa86d1b89c5ce398a06cd39)
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/geert/renesas-drivers.git/commit/?id=a3b63172d757ac1a27e1f179585052f38e0ddd8c
        git remote add geert-renesas-drivers https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git
        git fetch --no-tags geert-renesas-drivers master
        git checkout a3b63172d757ac1a27e1f179585052f38e0ddd8c
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/gpu/drm/tiny/

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/tiny/panel-mipi-dbi.c:391:12: error: incompatible function pointer types initializing 'void (*)(struct spi_device *)' with an expression of type 'int (struct spi_device *)' [-Werror,-Wincompatible-function-pointer-types]
           .remove = panel_mipi_dbi_spi_remove,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.


vim +391 drivers/gpu/drm/tiny/panel-mipi-dbi.c

0e65e2e6abb09d8 Noralf Trønnes 2022-02-27  381  
0e65e2e6abb09d8 Noralf Trønnes 2022-02-27  382  static struct spi_driver panel_mipi_dbi_spi_driver = {
0e65e2e6abb09d8 Noralf Trønnes 2022-02-27  383  	.driver = {
0e65e2e6abb09d8 Noralf Trønnes 2022-02-27  384  		.name = "panel-mipi-dbi-spi",
0e65e2e6abb09d8 Noralf Trønnes 2022-02-27  385  		.owner = THIS_MODULE,
0e65e2e6abb09d8 Noralf Trønnes 2022-02-27  386  		.of_match_table = panel_mipi_dbi_spi_of_match,
0e65e2e6abb09d8 Noralf Trønnes 2022-02-27  387  		.pm = &panel_mipi_dbi_pm_ops,
0e65e2e6abb09d8 Noralf Trønnes 2022-02-27  388  	},
0e65e2e6abb09d8 Noralf Trønnes 2022-02-27  389  	.id_table = panel_mipi_dbi_spi_id,
0e65e2e6abb09d8 Noralf Trønnes 2022-02-27  390  	.probe = panel_mipi_dbi_spi_probe,
0e65e2e6abb09d8 Noralf Trønnes 2022-02-27 @391  	.remove = panel_mipi_dbi_spi_remove,
0e65e2e6abb09d8 Noralf Trønnes 2022-02-27  392  	.shutdown = panel_mipi_dbi_spi_shutdown,
0e65e2e6abb09d8 Noralf Trønnes 2022-02-27  393  };
0e65e2e6abb09d8 Noralf Trønnes 2022-02-27  394  module_spi_driver(panel_mipi_dbi_spi_driver);
0e65e2e6abb09d8 Noralf Trønnes 2022-02-27  395  

:::::: The code at line 391 was first introduced by commit
:::::: 0e65e2e6abb09d84a75c51999e3a6cf80f30c929 drm/tiny: Add MIPI DBI compatible SPI driver

:::::: TO: Noralf Trønnes <noralf@xxxxxxxxxxx>
:::::: CC: Maxime Ripard <maxime@xxxxxxxxxx>

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



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux