lkml.org 
[lkml]   [2021]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/mmc/host/sdhci-tegra.c:1821:15: error: implicit declaration of function 'sdhci_suspend_host'; did you mean 'sdhci_add_host'?
tree:   https://github.com/0day-ci/linux/commits/Dmitry-Osipenko/NVIDIA-Tegra-power-management-patches-for-5-16/20210921-021635
head: 0129c946dedb3137ad85ddc9af1511ff2b7d1f72
commit: 610a2d2707f6795f4e90011afd33c39c6f911ca0 mmc: sdhci-tegra: Add runtime PM and OPP support
date: 8 weeks ago
config: m68k-randconfig-r026-20210929 (attached as .config)
compiler: m68k-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://github.com/0day-ci/linux/commit/610a2d2707f6795f4e90011afd33c39c6f911ca0
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dmitry-Osipenko/NVIDIA-Tegra-power-management-patches-for-5-16/20210921-021635
git checkout 610a2d2707f6795f4e90011afd33c39c6f911ca0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k

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/mmc/host/sdhci-tegra.c: In function 'sdhci_tegra_suspend':
>> drivers/mmc/host/sdhci-tegra.c:1821:15: error: implicit declaration of function 'sdhci_suspend_host'; did you mean 'sdhci_add_host'? [-Werror=implicit-function-declaration]
1821 | ret = sdhci_suspend_host(host);
| ^~~~~~~~~~~~~~~~~~
| sdhci_add_host
>> drivers/mmc/host/sdhci-tegra.c:1829:17: error: implicit declaration of function 'sdhci_resume_host'; did you mean 'sdhci_remove_host'? [-Werror=implicit-function-declaration]
1829 | sdhci_resume_host(host);
| ^~~~~~~~~~~~~~~~~
| sdhci_remove_host
cc1: some warnings being treated as errors


vim +1821 drivers/mmc/host/sdhci-tegra.c

610a2d2707f679 Dmitry Osipenko 2021-09-20 1809
610a2d2707f679 Dmitry Osipenko 2021-09-20 1810 static int __maybe_unused sdhci_tegra_suspend(struct device *dev)
610a2d2707f679 Dmitry Osipenko 2021-09-20 1811 {
610a2d2707f679 Dmitry Osipenko 2021-09-20 1812 struct sdhci_host *host = dev_get_drvdata(dev);
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1813 int ret;
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1814
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1815 if (host->mmc->caps2 & MMC_CAP2_CQE) {
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1816 ret = cqhci_suspend(host->mmc);
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1817 if (ret)
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1818 return ret;
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1819 }
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1820
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 @1821 ret = sdhci_suspend_host(host);
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1822 if (ret) {
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1823 cqhci_resume(host->mmc);
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1824 return ret;
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1825 }
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1826
610a2d2707f679 Dmitry Osipenko 2021-09-20 1827 ret = pm_runtime_force_suspend(dev);
610a2d2707f679 Dmitry Osipenko 2021-09-20 1828 if (ret) {
610a2d2707f679 Dmitry Osipenko 2021-09-20 @1829 sdhci_resume_host(host);
610a2d2707f679 Dmitry Osipenko 2021-09-20 1830 cqhci_resume(host->mmc);
610a2d2707f679 Dmitry Osipenko 2021-09-20 1831 return ret;
610a2d2707f679 Dmitry Osipenko 2021-09-20 1832 }
610a2d2707f679 Dmitry Osipenko 2021-09-20 1833
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1834 return 0;
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1835 }
71c733c4e1aeb8 Sowjanya Komatineni 2019-04-11 1836

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-11-12 13:40    [W:0.088 / U:0.760 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site