]> git.baikalelectronics.ru Git - kernel.git/commit
mtk-star-emac: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Wed, 27 May 2020 13:34:45 +0000 (15:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 18:32:39 +0000 (11:32 -0700)
commit16f98c8892d0213e7ed417af0597242983650999
tree010dddbf7ed770c8218bde3ca182288f53390395
parent2ab7ba44ea4aa408e8fd58d9776f68f1d44f62e4
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: 8c62308a9f55 ("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>
drivers/net/ethernet/mediatek/mtk_star_emac.c