diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-02-25 15:57:27 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-02-26 15:43:25 -0800 |
commit | 7f654157f0aefba04cd7f6297351c87b76b47b89 (patch) | |
tree | b14cc70ca9ec21d001fbb35c74b4b1dcffb6d932 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 63c75c053b4160f7b90a418dcc4e5bcfac2fb6fc (diff) |
net: phy: make mdio_bus_phy_suspend/resume as __maybe_unused
When CONFIG_PM_SLEEP is disabled, the compiler warns about unused
functions:
drivers/net/phy/phy_device.c:273:12: error: unused function 'mdio_bus_phy_suspend' [-Werror,-Wunused-function]
static int mdio_bus_phy_suspend(struct device *dev)
drivers/net/phy/phy_device.c:293:12: error: unused function 'mdio_bus_phy_resume' [-Werror,-Wunused-function]
static int mdio_bus_phy_resume(struct device *dev)
The logic is intentional, so just mark these two as __maybe_unused
and remove the incorrect #ifdef.
Fixes: 4c0d2e96ba05 ("net: phy: consider that suspend2ram may cut off PHY power")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20210225145748.404410-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions