[arm:for-next 21/26] drivers/mailbox/arm_mhuv2.c:1129:13: error: incompatible function pointer types initializing 'void amba_device with an expression of type 'int (struct amba_device

kernel test robot lkp at intel.com
Tue Feb 2 14:00:47 EST 2021


tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git for-next
head:   d6bae7564ab1254b46ee3a3953ce1eb682a09602
commit: 3fd269e74f2feec973f45ee11d822faeda4fe284 [21/26] amba: Make the remove callback return void
config: arm-randconfig-r012-20210202 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 275c6af7d7f1ed63a03d05b4484413e447133269)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
        git fetch --no-tags arm for-next
        git checkout 3fd269e74f2feec973f45ee11d822faeda4fe284
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

>> drivers/mailbox/arm_mhuv2.c:1129:13: error: incompatible function pointer types initializing 'void (*)(struct amba_device *)' with an expression of type 'int (struct amba_device *)' [-Werror,-Wincompatible-function-pointer-types]
           .remove         = mhuv2_remove,
                             ^~~~~~~~~~~~
   1 error generated.


vim +1129 drivers/mailbox/arm_mhuv2.c

5a6338cce9f413 Viresh Kumar 2020-11-17  1122  
5a6338cce9f413 Viresh Kumar 2020-11-17  1123  static struct amba_driver mhuv2_driver = {
5a6338cce9f413 Viresh Kumar 2020-11-17  1124  	.drv = {
5a6338cce9f413 Viresh Kumar 2020-11-17  1125  		.name	= "arm-mhuv2",
5a6338cce9f413 Viresh Kumar 2020-11-17  1126  	},
5a6338cce9f413 Viresh Kumar 2020-11-17  1127  	.id_table	= mhuv2_ids,
5a6338cce9f413 Viresh Kumar 2020-11-17  1128  	.probe		= mhuv2_probe,
5a6338cce9f413 Viresh Kumar 2020-11-17 @1129  	.remove		= mhuv2_remove,
5a6338cce9f413 Viresh Kumar 2020-11-17  1130  };
5a6338cce9f413 Viresh Kumar 2020-11-17  1131  module_amba_driver(mhuv2_driver);
5a6338cce9f413 Viresh Kumar 2020-11-17  1132  

:::::: The code at line 1129 was first introduced by commit
:::::: 5a6338cce9f4133c478d3b10b300f96dd644379a mailbox: arm_mhuv2: Add driver

:::::: TO: Viresh Kumar <viresh.kumar at linaro.org>
:::::: CC: Jassi Brar <jaswinder.singh at linaro.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 41430 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210203/8822ada7/attachment-0001.gz>


More information about the linux-arm-kernel mailing list