tree:
https://github.com/thierryreding/linux for-5.11/suspend
head: 00480d8a4afba78936d3a3ca2c4272538affb838
commit: b8561a2e4c1332363e61ebf6f2b04a8aaee8cfeb [18/23] xhci: tegra: Enable ELPG for
runtime/system PM
config: arm64-randconfig-r015-20201113 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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/thierryreding/linux/commit/b8561a2e4c1332363e61ebf6f2b...
git remote add thierryreding
https://github.com/thierryreding/linux
git fetch --no-tags thierryreding for-5.11/suspend
git checkout b8561a2e4c1332363e61ebf6f2b04a8aaee8cfeb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/usb/host/xhci-tegra.c: In function 'tegra_xusb_runtime_suspend':
> drivers/usb/host/xhci-tegra.c:2179:8: error: implicit declaration
of function 'tegra_xusb_enter_elpg'; did you mean 'tegra_pm_enter_lp2'?
[-Werror=implicit-function-declaration]
2179 | ret =
tegra_xusb_enter_elpg(tegra, true);
| ^~~~~~~~~~~~~~~~~~~~~
| tegra_pm_enter_lp2
drivers/usb/host/xhci-tegra.c: In function 'tegra_xusb_runtime_resume':
> drivers/usb/host/xhci-tegra.c:2191:8: error: implicit declaration
of function 'tegra_xusb_exit_elpg'; did you mean 'tegra_xusb_get_phy'?
[-Werror=implicit-function-declaration]
2191 | err =
tegra_xusb_exit_elpg(tegra, true);
| ^~~~~~~~~~~~~~~~~~~~
| tegra_xusb_get_phy
At top level:
drivers/usb/host/xhci-tegra.c:1285:13: warning: 'is_host_mode_phy' defined but
not used [-Wunused-function]
1285 | static bool is_host_mode_phy(struct tegra_xusb *tegra, unsigned int phy_type,
unsigned int index)
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +2179 drivers/usb/host/xhci-tegra.c
2170
2171 #ifdef CONFIG_PM
2172 static int tegra_xusb_runtime_suspend(struct device *dev)
2173 {
2174 struct tegra_xusb *tegra = dev_get_drvdata(dev);
2175 int ret;
2176
2177 synchronize_irq(tegra->mbox_irq);
2178 mutex_lock(&tegra->lock);
2179 ret = tegra_xusb_enter_elpg(tegra, true);
2180 mutex_unlock(&tegra->lock);
2181
2182 return ret;
2183 }
2184
2185 static int tegra_xusb_runtime_resume(struct device *dev)
2186 {
2187 struct tegra_xusb *tegra = dev_get_drvdata(dev);
2188 int err;
2189
2190 mutex_lock(&tegra->lock);
2191 err = tegra_xusb_exit_elpg(tegra, true);
2192 mutex_unlock(&tegra->lock);
2193
2194 return err;
2195 }
2196 #endif
2197
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org