[xlnx:master 11230/12317] drivers/remoteproc/mtk_scp.c:463:14: error: incompatible function pointer types initializing 'void *(*)(struct rproc *, u64, int)' (aka 'void *(*)(struct rproc *, unsigned long long, int)') with an expression of type 'void *(struct rproc *, u64, size_t)' ...

kernel test robot lkp at intel.com
Wed Jul 7 13:34:32 PDT 2021


Hi Wendy,

FYI, the error/warning still remains.

tree:   https://github.com/Xilinx/linux-xlnx master
head:   d25c42dcc2a9fed0d00f4f20eded4aa733d51d5b
commit: a324889a971b8e827c53deaffe630b420bde4067 [11230/12317] remoteproc: Add support for peek from remote and acking kick from remote
config: x86_64-randconfig-a012-20210707 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/Xilinx/linux-xlnx/commit/a324889a971b8e827c53deaffe630b420bde4067
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx master
        git checkout a324889a971b8e827c53deaffe630b420bde4067
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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/remoteproc/mtk_scp.c:463:14: error: incompatible function pointer types initializing 'void *(*)(struct rproc *, u64, int)' (aka 'void *(*)(struct rproc *, unsigned long long, int)') with an expression of type 'void *(struct rproc *, u64, size_t)' (aka 'void *(struct rproc *, unsigned long long, unsigned long)') [-Werror,-Wincompatible-function-pointer-types]
           .da_to_va       = scp_da_to_va,
                             ^~~~~~~~~~~~
   1 error generated.
--
>> drivers/remoteproc/ingenic_rproc.c:144:14: error: incompatible function pointer types initializing 'void *(*)(struct rproc *, u64, int)' (aka 'void *(*)(struct rproc *, unsigned long long, int)') with an expression of type 'void *(struct rproc *, u64, size_t)' (aka 'void *(struct rproc *, unsigned long long, unsigned long)') [-Werror,-Wincompatible-function-pointer-types]
           .da_to_va = ingenic_rproc_da_to_va,
                       ^~~~~~~~~~~~~~~~~~~~~~
   1 error generated.


vim +463 drivers/remoteproc/mtk_scp.c

63c13d61eafe46 Erin Lo 2019-11-12  458  
63c13d61eafe46 Erin Lo 2019-11-12  459  static const struct rproc_ops scp_ops = {
63c13d61eafe46 Erin Lo 2019-11-12  460  	.start		= scp_start,
63c13d61eafe46 Erin Lo 2019-11-12  461  	.stop		= scp_stop,
63c13d61eafe46 Erin Lo 2019-11-12  462  	.load		= scp_load,
63c13d61eafe46 Erin Lo 2019-11-12 @463  	.da_to_va	= scp_da_to_va,
63c13d61eafe46 Erin Lo 2019-11-12  464  };
63c13d61eafe46 Erin Lo 2019-11-12  465  

:::::: The code at line 463 was first introduced by commit
:::::: 63c13d61eafe4606f1c16c54da40c4eee78e9edf remoteproc/mediatek: add SCP support for mt8183

:::::: TO: Erin Lo <erin.lo at mediatek.com>
:::::: CC: Bjorn Andersson <bjorn.andersson 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: 39218 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210708/f2c3bed9/attachment-0001.gz>


More information about the linux-arm-kernel mailing list