[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)...

From: kernel test robot <hidden>
Date: 2021-08-25 20:31:18
Also in: oe-kbuild-all

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 <redacted>

All errors (new ones prefixed by >>):
quoted
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 [off-list ref]
:::::: CC: Bjorn Andersson [off-list ref]

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help