oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [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
@ 2024-02-06 19:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-06 19:45 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-06 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-06 19:45 [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 kernel test robot

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