phy: tegra: xusb: mark PM functions as __maybe_unused
PATCH 1/1 phy: tegra: xusb: mark PM functions as __maybe_unused
From: Arnd Bergmann <[email protected]>
When these are not referenced, gcc prints a harmless warning:
drivers/phy/tegra/xusb.c:1286:12: error: 'tegra_xusb_padctl_resume_noirq' defined but not used [-Werror=unused-function]
1286 | static int tegra_xusb_padctl_resume_noirq(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/phy/tegra/xusb.c:1276:12: error: 'tegra_xusb_padctl_suspend_noirq' defined but not used [-Werror=unused-function]
1276 | static int tegra_xusb_padctl_suspend_noirq(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Fixes c545a9056712 ("phy: tegra: xusb: Add sleepwalk and suspend/resume")
Signed-off-by Arnd Bergmann <[email protected]>
--- drivers/phy/tegra/xusb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/phy/tegra/xusb.c +2 -2
@@ -1273,7 +1273,7 @@ static int tegra_xusb_padctl_remove(struct platform_device *pdev)return err; } -static int tegra_xusb_padctl_suspend_noirq (struct device *dev) +static __maybe_unused int tegra_xusb_padctl_suspend_noirq (struct device *dev) {struct tegra_xusb_padctl *padctl =dev_get_drvdata (dev);
@@ -1283,7 +1283,7 @@ static int tegra_xusb_padctl_suspend_noirq(struct device *dev)return 0 ; } -static int tegra_xusb_padctl_resume_noirq (struct device *dev) +static __maybe_unused int tegra_xusb_padctl_resume_noirq (struct device *dev) {struct tegra_xusb_padctl *padctl =dev_get_drvdata (dev);
Signature · 1 line
2.29.2
Quoted 11 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
When these are not referenced, gcc prints a harmless warning:
drivers/phy/tegra/xusb.c:1286:12: error: 'tegra_xusb_padctl_resume_noirq' defined but not used [-Werror=unused-function]
1286 | static inttegra_xusb_padctl_resume_noirq(struct device *dev)| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/phy/tegra/xusb.c:1276:12: error: 'tegra_xusb_padctl_suspend_noirq' defined but not used [-Werror=unused-function] 1276 | static int tegra_xusb_padctl_suspend_noirq(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Applied, thanks
Signature · 1 line
~Vinod