All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [freescale-fslc:5.4-2.1.x-imx 8321/18134] drivers/spi/spi-nxp-fspi.c:1193:12: error: use of undeclared identifier 'nxp_fspi_pm_ops'; did you mean 'nxp_fspi_mem_ops'?
Date: Sat, 15 May 2021 08:43:47 +0800	[thread overview]
Message-ID: <202105150841.kD616AP4-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3492 bytes --]

Hi Han,

FYI, the error/warning still remains.

tree:   https://github.com/Freescale/linux-fslc 5.4-2.1.x-imx
head:   dc9c8a20afa50de2da8773bbabb71464c4ee9a9d
commit: 2c4cf9ce2fcf9581d6625025b76ae73f77dde922 [8321/18134] MLK-23644: spi: spi-nxp-fspi: enable runtime pm for fspi
config: x86_64-randconfig-a012-20210514 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e475d4d69f04597c3f6c34c8ff1899bf44502a94)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/Freescale/linux-fslc/commit/2c4cf9ce2fcf9581d6625025b76ae73f77dde922
        git remote add freescale-fslc https://github.com/Freescale/linux-fslc
        git fetch --no-tags freescale-fslc 5.4-2.1.x-imx
        git checkout 2c4cf9ce2fcf9581d6625025b76ae73f77dde922
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

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 >>):

>> drivers/spi/spi-nxp-fspi.c:1193:12: error: use of undeclared identifier 'nxp_fspi_pm_ops'; did you mean 'nxp_fspi_mem_ops'?
                   .pm =   &nxp_fspi_pm_ops,
                            ^~~~~~~~~~~~~~~
                            nxp_fspi_mem_ops
   drivers/spi/spi-nxp-fspi.c:997:44: note: 'nxp_fspi_mem_ops' declared here
   static const struct spi_controller_mem_ops nxp_fspi_mem_ops = {
                                              ^
>> drivers/spi/spi-nxp-fspi.c:1193:11: error: incompatible pointer types initializing 'const struct dev_pm_ops *' with an expression of type 'const struct spi_controller_mem_ops *' [-Werror,-Wincompatible-pointer-types]
                   .pm =   &nxp_fspi_pm_ops,
                           ^~~~~~~~~~~~~~~~
   2 errors generated.


vim +1193 drivers/spi/spi-nxp-fspi.c

a5356aef6a907c Yogesh Narayan Gaur 2019-01-15  1188  
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15  1189  static struct platform_driver nxp_fspi_driver = {
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15  1190  	.driver = {
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15  1191  		.name	= "nxp-fspi",
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15  1192  		.of_match_table = nxp_fspi_dt_ids,
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15 @1193  		.pm =   &nxp_fspi_pm_ops,
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15  1194  	},
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15  1195  	.probe          = nxp_fspi_probe,
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15  1196  	.remove		= nxp_fspi_remove,
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15  1197  };
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15  1198  module_platform_driver(nxp_fspi_driver);
a5356aef6a907c Yogesh Narayan Gaur 2019-01-15  1199  

:::::: The code at line 1193 was first introduced by commit
:::::: a5356aef6a907c2e2aed0caaa2b88b6021394471 spi: spi-mem: Add driver for NXP FlexSPI controller

:::::: TO: Yogesh Narayan Gaur <yogeshnarayan.gaur@nxp.com>
:::::: CC: Mark Brown <broonie@kernel.org>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29047 bytes --]

                 reply	other threads:[~2021-05-15  0:43 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=202105150841.kD616AP4-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.