diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-02-25 15:57:27 +0100 |
---|---|---|
committer | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2021-07-08 14:43:07 +0300 |
commit | 4782459dae3b8b58df18b3995d689ca8b50e1b80 (patch) | |
tree | 2ff78889a22868a753eeff2f70cbf6a966dda62e /Documentation/ABI | |
parent | 5f21586d10f542e18200e14c955b3a1c4418c0c5 (diff) |
net: phy: make mdio_bus_phy_suspend/resume as __maybe_unused
commit 7f654157f0aefba04cd7f6297351c87b76b47b89 upstream
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 'Documentation/ABI')
0 files changed, 0 insertions, 0 deletions