oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Wolfram Sang <wsa-dev@sang-engineering.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [wsa:renesas/sdhi/tmio-simplification 3/5] drivers/mmc/host/tmio_mmc_core.c:1087:6: error: implicit declaration of function 'of_property_read_bool' is invalid in C99
Date: Wed, 7 Feb 2024 03:45:41 +0800	[thread overview]
Message-ID: <202402070323.JpYfFtkQ-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/sdhi/tmio-simplification
head:   cccb4dda1ee496a1baabb6283db1e5f52808b706
commit: a01061a0afbd18bce634e772e050c78ce6bd8fdc [3/5] mfd: tmio: update include files
config: arm-defconfig (https://download.01.org/0day-ci/archive/20240207/202402070323.JpYfFtkQ-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240207/202402070323.JpYfFtkQ-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402070323.JpYfFtkQ-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/mmc/host/tmio_mmc_core.c:1087:6: error: implicit declaration of function 'of_property_read_bool' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
           if (of_property_read_bool(np, "toshiba,mmc-wrprotect-disable"))
               ^
   1 error generated.
--
>> drivers/mmc/host/renesas_sdhi_sys_dmac.c:459:26: error: use of undeclared identifier 'pm_runtime_force_suspend'
           SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
                                   ^
>> drivers/mmc/host/renesas_sdhi_sys_dmac.c:460:5: error: use of undeclared identifier 'pm_runtime_force_resume'
                                   pm_runtime_force_resume)
                                   ^
>> drivers/mmc/host/renesas_sdhi_sys_dmac.c:459:26: error: use of undeclared identifier 'pm_runtime_force_suspend'
           SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
                                   ^
>> drivers/mmc/host/renesas_sdhi_sys_dmac.c:460:5: error: use of undeclared identifier 'pm_runtime_force_resume'
                                   pm_runtime_force_resume)
                                   ^
>> drivers/mmc/host/renesas_sdhi_sys_dmac.c:459:26: error: use of undeclared identifier 'pm_runtime_force_suspend'
           SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
                                   ^
>> drivers/mmc/host/renesas_sdhi_sys_dmac.c:460:5: error: use of undeclared identifier 'pm_runtime_force_resume'
                                   pm_runtime_force_resume)
                                   ^
   6 errors generated.
--
>> drivers/mmc/host/renesas_sdhi_internal_dmac.c:598:26: error: use of undeclared identifier 'pm_runtime_force_suspend'
           SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
                                   ^
>> drivers/mmc/host/renesas_sdhi_internal_dmac.c:599:5: error: use of undeclared identifier 'pm_runtime_force_resume'
                                   pm_runtime_force_resume)
                                   ^
>> drivers/mmc/host/renesas_sdhi_internal_dmac.c:598:26: error: use of undeclared identifier 'pm_runtime_force_suspend'
           SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
                                   ^
>> drivers/mmc/host/renesas_sdhi_internal_dmac.c:599:5: error: use of undeclared identifier 'pm_runtime_force_resume'
                                   pm_runtime_force_resume)
                                   ^
>> drivers/mmc/host/renesas_sdhi_internal_dmac.c:598:26: error: use of undeclared identifier 'pm_runtime_force_suspend'
           SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
                                   ^
>> drivers/mmc/host/renesas_sdhi_internal_dmac.c:599:5: error: use of undeclared identifier 'pm_runtime_force_resume'
                                   pm_runtime_force_resume)
                                   ^
   6 errors generated.


vim +/of_property_read_bool +1087 drivers/mmc/host/tmio_mmc_core.c

b958a67c6bbe0a drivers/mmc/host/tmio_mmc_pio.c  Guennadi Liakhovetski 2012-06-20  1073  
5a00a971a2b12e drivers/mmc/host/tmio_mmc_pio.c  Guennadi Liakhovetski 2013-02-15  1074  static void tmio_mmc_of_parse(struct platform_device *pdev,
7c53b79766a463 drivers/mmc/host/tmio_mmc_core.c Masahiro Yamada       2018-01-18  1075  			      struct mmc_host *mmc)
5a00a971a2b12e drivers/mmc/host/tmio_mmc_pio.c  Guennadi Liakhovetski 2013-02-15  1076  {
5a00a971a2b12e drivers/mmc/host/tmio_mmc_pio.c  Guennadi Liakhovetski 2013-02-15  1077  	const struct device_node *np = pdev->dev.of_node;
f2218db8154854 drivers/mmc/host/tmio_mmc_core.c Simon Horman          2017-06-16  1078  
5a00a971a2b12e drivers/mmc/host/tmio_mmc_pio.c  Guennadi Liakhovetski 2013-02-15  1079  	if (!np)
5a00a971a2b12e drivers/mmc/host/tmio_mmc_pio.c  Guennadi Liakhovetski 2013-02-15  1080  		return;
5a00a971a2b12e drivers/mmc/host/tmio_mmc_pio.c  Guennadi Liakhovetski 2013-02-15  1081  
788778b0d21a6d drivers/mmc/host/tmio_mmc_core.c Masahiro Yamada       2018-01-18  1082  	/*
788778b0d21a6d drivers/mmc/host/tmio_mmc_core.c Masahiro Yamada       2018-01-18  1083  	 * DEPRECATED:
788778b0d21a6d drivers/mmc/host/tmio_mmc_core.c Masahiro Yamada       2018-01-18  1084  	 * For new platforms, please use "disable-wp" instead of
788778b0d21a6d drivers/mmc/host/tmio_mmc_core.c Masahiro Yamada       2018-01-18  1085  	 * "toshiba,mmc-wrprotect-disable"
788778b0d21a6d drivers/mmc/host/tmio_mmc_core.c Masahiro Yamada       2018-01-18  1086  	 */
ca6b5fe277e91e drivers/mmc/host/tmio_mmc_core.c Rob Herring           2023-03-10 @1087  	if (of_property_read_bool(np, "toshiba,mmc-wrprotect-disable"))
7c53b79766a463 drivers/mmc/host/tmio_mmc_core.c Masahiro Yamada       2018-01-18  1088  		mmc->caps2 |= MMC_CAP2_NO_WRITE_PROTECT;
5a00a971a2b12e drivers/mmc/host/tmio_mmc_pio.c  Guennadi Liakhovetski 2013-02-15  1089  }
5a00a971a2b12e drivers/mmc/host/tmio_mmc_pio.c  Guennadi Liakhovetski 2013-02-15  1090  

:::::: The code at line 1087 was first introduced by commit
:::::: ca6b5fe277e91ebca5101dc00c0e26755f0ed6c4 mmc: Use of_property_read_bool() for boolean properties

:::::: TO: Rob Herring <robh@kernel.org>
:::::: CC: Ulf Hansson <ulf.hansson@linaro.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-02-06 19:46 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=202402070323.JpYfFtkQ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=wsa-dev@sang-engineering.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;
as well as URLs for NNTP newsgroup(s).