[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204200200.q7QlOOQc-lkp@intel.com>
Date: Wed, 20 Apr 2022 02:36:21 +0800
From: kernel test robot <lkp@...el.com>
To: Mika Westerberg <mika.westerberg@...ux.intel.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Mark Brown <broonie@...nel.org>
Subject: [broonie-ci:file4opaUI 20/24] drivers/spi/spi-intel.c:808:38: error:
passing argument 2 of 'iop->exec_op' from incompatible pointer type
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git file4opaUI
head: 64ef86292800d770fcd8916cf07b1bea58559680
commit: 246bb4cbc6a55a247e5e0afd57c91e0dec0c77c3 [20/24] spi: intel: Implement dirmap hooks
config: powerpc-randconfig-r022-20220419 (https://download.01.org/0day-ci/archive/20220420/202204200200.q7QlOOQc-lkp@intel.com/config)
compiler: powerpc-linux-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://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git/commit/?id=246bb4cbc6a55a247e5e0afd57c91e0dec0c77c3
git remote add broonie-ci https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git
git fetch --no-tags broonie-ci file4opaUI
git checkout 246bb4cbc6a55a247e5e0afd57c91e0dec0c77c3
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/spi/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from include/linux/mtd/spi-nor.h:10,
from drivers/spi/spi-intel.c:13:
include/linux/mtd/cfi.h:62:2: warning: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work. [-Wcpp]
62 | #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
| ^~~~~~~
drivers/spi/spi-intel.c: In function 'intel_spi_dirmap_read':
>> drivers/spi/spi-intel.c:808:38: error: passing argument 2 of 'iop->exec_op' from incompatible pointer type [-Werror=incompatible-pointer-types]
808 | ret = iop->exec_op(ispi, desc->mem, iop, &op);
| ~~~~^~~~~
| |
| struct spi_mem *
drivers/spi/spi-intel.c:808:38: note: expected 'const struct intel_spi_mem_op *' but argument is of type 'struct spi_mem *'
drivers/spi/spi-intel.c:808:45: error: passing argument 3 of 'iop->exec_op' from incompatible pointer type [-Werror=incompatible-pointer-types]
808 | ret = iop->exec_op(ispi, desc->mem, iop, &op);
| ^~~
| |
| const struct intel_spi_mem_op *
drivers/spi/spi-intel.c:808:45: note: expected 'const struct spi_mem_op *' but argument is of type 'const struct intel_spi_mem_op *'
>> drivers/spi/spi-intel.c:808:15: error: too many arguments to function 'iop->exec_op'
808 | ret = iop->exec_op(ispi, desc->mem, iop, &op);
| ^~~
drivers/spi/spi-intel.c: In function 'intel_spi_dirmap_write':
drivers/spi/spi-intel.c:824:38: error: passing argument 2 of 'iop->exec_op' from incompatible pointer type [-Werror=incompatible-pointer-types]
824 | ret = iop->exec_op(ispi, desc->mem, iop, &op);
| ~~~~^~~~~
| |
| struct spi_mem *
drivers/spi/spi-intel.c:824:38: note: expected 'const struct intel_spi_mem_op *' but argument is of type 'struct spi_mem *'
drivers/spi/spi-intel.c:824:45: error: passing argument 3 of 'iop->exec_op' from incompatible pointer type [-Werror=incompatible-pointer-types]
824 | ret = iop->exec_op(ispi, desc->mem, iop, &op);
| ^~~
| |
| const struct intel_spi_mem_op *
drivers/spi/spi-intel.c:824:45: note: expected 'const struct spi_mem_op *' but argument is of type 'const struct intel_spi_mem_op *'
drivers/spi/spi-intel.c:824:15: error: too many arguments to function 'iop->exec_op'
824 | ret = iop->exec_op(ispi, desc->mem, iop, &op);
| ^~~
cc1: some warnings being treated as errors
vim +808 drivers/spi/spi-intel.c
794
795 static ssize_t intel_spi_dirmap_read(struct spi_mem_dirmap_desc *desc, u64 offs,
796 size_t len, void *buf)
797 {
798 struct intel_spi *ispi = spi_master_get_devdata(desc->mem->spi->master);
799 const struct intel_spi_mem_op *iop = desc->priv;
800 struct spi_mem_op op = desc->info.op_tmpl;
801 int ret;
802
803 /* Fill in the gaps */
804 op.addr.val = offs;
805 op.data.nbytes = len;
806 op.data.buf.in = buf;
807
> 808 ret = iop->exec_op(ispi, desc->mem, iop, &op);
809 return ret ? ret : len;
810 }
811
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists