[xlnx:master 11230/12418] 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
Wed Aug 25 13:27:44 PDT 2021


Hi Wendy,

FYI, the error/warning still remains.

tree:   https://github.com/Xilinx/linux-xlnx master
head:   45cd0074cdf1ddd710b28848e6a860b442babfcc
commit: a324889a971b8e827c53deaffe630b420bde4067 [11230/12418] remoteproc: Add support for peek from remote and acking kick from remote
config: arm64-buildonly-randconfig-r005-20210825 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-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=arm64 

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 long)') [-Werror,-Wincompatible-function-pointer-types]
           .da_to_va       = imx_rproc_da_to_va,
                             ^~~~~~~~~~~~~~~~~~
   1 error generated.


vim +247 drivers/remoteproc/imx_rproc.c

a0ff4aa6f01080 Oleksij Rempel 2017-08-17  243  
a0ff4aa6f01080 Oleksij Rempel 2017-08-17  244  static const struct rproc_ops imx_rproc_ops = {
a0ff4aa6f01080 Oleksij Rempel 2017-08-17  245  	.start		= imx_rproc_start,
a0ff4aa6f01080 Oleksij Rempel 2017-08-17  246  	.stop		= imx_rproc_stop,
a0ff4aa6f01080 Oleksij Rempel 2017-08-17 @247  	.da_to_va       = imx_rproc_da_to_va,
a0ff4aa6f01080 Oleksij Rempel 2017-08-17  248  };
a0ff4aa6f01080 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: 35414 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210826/76eac2a5/attachment-0001.gz>


More information about the linux-arm-kernel mailing list