[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200610014907.148473-1-palmer@dabbelt.com>
Date: Tue, 9 Jun 2020 18:49:07 -0700
From: Palmer Dabbelt <palmer@...belt.com>
To: davem@...emloft.net
Cc: jeffrey.t.kirsher@...el.com, kuba@...nel.org,
intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-team@...roid.com,
Palmer Dabbelt <palmerdabbelt@...gle.com>
Subject: [PATCH] e1000e: Squash an unused function warning
From: Palmer Dabbelt <palmerdabbelt@...gle.com>
e1000e_check_me is only used under CONFIG_PM_SLEEP but exists
unconditionally, which triggers a warning.
Signed-off-by: Palmer Dabbelt <palmerdabbelt@...gle.com>
---
drivers/net/ethernet/intel/e1000e/netdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index a279f4fa9962..f7148d1fcba2 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -134,6 +134,7 @@ static const struct e1000e_me_supported me_supported[] = {
{0}
};
+#ifdef CONFIG_PM_SLEEP
static bool e1000e_check_me(u16 device_id)
{
struct e1000e_me_supported *id;
@@ -145,6 +146,7 @@ static bool e1000e_check_me(u16 device_id)
return false;
}
+#endif
/**
* __ew32_prepare - prepare to write to MAC CSR register on certain parts
--
2.27.0.278.ge193c7cf3a9-goog
Powered by blists - more mailing lists