Message ID | 20210721152550.2976003-1-arnd@kernel.org |
---|---|
State | Accepted |
Commit | c1302e8ce517ed9c417aa4eb19776df4efbbebf4 |
Headers | show |
Series | phy: tegra: xusb: mark PM functions as __maybe_unused | expand |
On 21-07-21, 17:25, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > 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) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Applied, thanks
diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c index 0aadac678191..963de5913e50 100644 --- a/drivers/phy/tegra/xusb.c +++ b/drivers/phy/tegra/xusb.c @@ -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);