mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 12:50:52 +07:00
mtk-star-emac: mark PM functions as __maybe_unused
Without CONFIG_PM, the compiler warns about two unused functions:
drivers/net/ethernet/mediatek/mtk_star_emac.c:1472:12: error: unused function 'mtk_star_suspend' [-Werror,-Wunused-function]
drivers/net/ethernet/mediatek/mtk_star_emac.c:1488:12: error: unused function 'mtk_star_resume' [-Werror,-Wunused-function]
Mark these as __maybe_unused.
Fixes: 8c7bd5a454
("net: ethernet: mtk-star-emac: new driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
20f6a05ef6
commit
f99c0646ef
@ -1468,7 +1468,7 @@ static int mtk_star_mdio_init(struct net_device *ndev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int mtk_star_suspend(struct device *dev)
|
||||
static __maybe_unused int mtk_star_suspend(struct device *dev)
|
||||
{
|
||||
struct mtk_star_priv *priv;
|
||||
struct net_device *ndev;
|
||||
@ -1484,7 +1484,7 @@ static int mtk_star_suspend(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int mtk_star_resume(struct device *dev)
|
||||
static __maybe_unused int mtk_star_resume(struct device *dev)
|
||||
{
|
||||
struct mtk_star_priv *priv;
|
||||
struct net_device *ndev;
|
||||
|
Loading…
Reference in New Issue
Block a user