[xlnx:master 11230/12255] drivers/remoteproc/imx_rproc.c:247:20: 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
Tue May 25 11:21:31 PDT 2021


Hi Wendy,

FYI, the error/warning still remains.

tree:   https://github.com/Xilinx/linux-xlnx master
head:   26749bab0423007140447fbcc18ad863df272c28
commit: a324889a971b8e827c53deaffe630b420bde4067 [11230/12255] remoteproc: Add support for peek from remote and acking kick from remote
config: arm-randconfig-r012-20210525 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 99155e913e9bad5f7f8a247f8bb3a3ff3da74af1)
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
        # 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=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/remoteproc/imx_rproc.c:247:20: 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 int)') [-Werror,-Wincompatible-function-pointer-types]
           .da_to_va       = imx_rproc_da_to_va,
                             ^~~~~~~~~~~~~~~~~~
   1 error generated.


vim +247 drivers/remoteproc/imx_rproc.c

a0ff4aa6f010801 Oleksij Rempel 2017-08-17  243  
a0ff4aa6f010801 Oleksij Rempel 2017-08-17  244  static const struct rproc_ops imx_rproc_ops = {
a0ff4aa6f010801 Oleksij Rempel 2017-08-17  245  	.start		= imx_rproc_start,
a0ff4aa6f010801 Oleksij Rempel 2017-08-17  246  	.stop		= imx_rproc_stop,
a0ff4aa6f010801 Oleksij Rempel 2017-08-17 @247  	.da_to_va       = imx_rproc_da_to_va,
a0ff4aa6f010801 Oleksij Rempel 2017-08-17  248  };
a0ff4aa6f010801 Oleksij Rempel 2017-08-17  249  

:::::: The code at line 247 was first introduced by commit
:::::: a0ff4aa6f010801b2a61c203c6e09d01b110fddf remoteproc: imx_rproc: add a NXP/Freescale imx_rproc driver

:::::: TO: Oleksij Rempel <o.rempel at pengutronix.de>
:::::: 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: 37112 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210526/51b02781/attachment-0001.gz>


More information about the linux-arm-kernel mailing list