[xilinx-xlnx:xlnx_rebase_v5.10 711/1981] drivers/remoteproc/omap_remoteproc.c:760:27: error: initialization of 'void * (*)(struct rproc *, u64, int)' {aka 'void * (*)(struct rproc *, long long unsigned int, int)'} from incompatible pointer type 'void * (*)(struct rproc *, u64, size_t)' {aka '...

kernel test robot lkp at intel.com
Thu Dec 16 23:19:53 PST 2021


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.10
head:   87ec9a2d98a7a7dfc98b57348a0ec310fd170e4b
commit: dbb49124cb3ba0ebd03cca4efa2c91cf0164d071 [711/1981] remoteproc: Add support for peek from remote and acking kick from remote
config: arm-omap2plus_defconfig (https://download.01.org/0day-ci/archive/20211217/202112171543.NBBFgvB7-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
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
        # https://github.com/Xilinx/linux-xlnx/commit/dbb49124cb3ba0ebd03cca4efa2c91cf0164d071
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.10
        git checkout dbb49124cb3ba0ebd03cca4efa2c91cf0164d071
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/mach-omap2/ arch/arm/mm/ drivers/gpu/drm/omapdrm/ drivers/remoteproc/

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/omap_remoteproc.c:760:27: error: initialization of 'void * (*)(struct rproc *, u64,  int)' {aka 'void * (*)(struct rproc *, long long unsigned int,  int)'} from incompatible pointer type 'void * (*)(struct rproc *, u64,  size_t)' {aka 'void * (*)(struct rproc *, long long unsigned int,  unsigned int)'} [-Werror=incompatible-pointer-types]
     760 |         .da_to_va       = omap_rproc_da_to_va,
         |                           ^~~~~~~~~~~~~~~~~~~
   drivers/remoteproc/omap_remoteproc.c:760:27: note: (near initialization for 'omap_rproc_ops.da_to_va')
   cc1: some warnings being treated as errors
--
>> drivers/remoteproc/wkup_m3_rproc.c:109:27: error: initialization of 'void * (*)(struct rproc *, u64,  int)' {aka 'void * (*)(struct rproc *, long long unsigned int,  int)'} from incompatible pointer type 'void * (*)(struct rproc *, u64,  size_t)' {aka 'void * (*)(struct rproc *, long long unsigned int,  unsigned int)'} [-Werror=incompatible-pointer-types]
     109 |         .da_to_va       = wkup_m3_rproc_da_to_va,
         |                           ^~~~~~~~~~~~~~~~~~~~~~
   drivers/remoteproc/wkup_m3_rproc.c:109:27: note: (near initialization for 'wkup_m3_rproc_ops.da_to_va')
   cc1: some warnings being treated as errors


vim +760 drivers/remoteproc/omap_remoteproc.c

530a1b57e8590f2 Suman Anna     2020-03-24  755  
c008fad264f61ef Bhumika Goyal  2017-01-01  756  static const struct rproc_ops omap_rproc_ops = {
34ed5a33b1218ef Ohad Ben-Cohen 2011-10-20  757  	.start		= omap_rproc_start,
34ed5a33b1218ef Ohad Ben-Cohen 2011-10-20  758  	.stop		= omap_rproc_stop,
34ed5a33b1218ef Ohad Ben-Cohen 2011-10-20  759  	.kick		= omap_rproc_kick,
530a1b57e8590f2 Suman Anna     2020-03-24 @760  	.da_to_va	= omap_rproc_da_to_va,
34ed5a33b1218ef Ohad Ben-Cohen 2011-10-20  761  };
34ed5a33b1218ef Ohad Ben-Cohen 2011-10-20  762  

:::::: The code at line 760 was first introduced by commit
:::::: 530a1b57e8590f2ebbb6a35effa0efa988aabf6c remoteproc/omap: Add the rproc ops .da_to_va() implementation

:::::: TO: Suman Anna <s-anna at ti.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



More information about the linux-arm-kernel mailing list