public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Mark Brown <broonie@kernel.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
Date: Wed, 20 Apr 2022 02:36:21 +0800	[thread overview]
Message-ID: <202204200200.q7QlOOQc-lkp@intel.com> (raw)

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@intel.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

                 reply	other threads:[~2022-04-19 18:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202204200200.q7QlOOQc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=broonie@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mika.westerberg@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox