All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] net: hisilicon: hns_mdio: remove incorrect ACPI_PTR annotation
@ 2025-02-25 16:33 Arnd Bergmann
  2025-02-25 16:33 ` [PATCH 2/2] net: xgene-v2: " Arnd Bergmann
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Arnd Bergmann @ 2025-02-25 16:33 UTC (permalink / raw)
  To: Jian Shen, Salil Mehta, Andrew Lunn, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: Arnd Bergmann, Simon Horman, Uwe Kleine-König,
	Krzysztof Kozlowski, netdev, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

Building with W=1 shows a warning about hns_mdio_acpi_match being unused when
CONFIG_ACPI is disabled:

drivers/net/ethernet/hisilicon/hns_mdio.c:631:36: error: unused variable 'hns_mdio_acpi_match' [-Werror,-Wunused-const-variable]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/net/ethernet/hisilicon/hns_mdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/hisilicon/hns_mdio.c b/drivers/net/ethernet/hisilicon/hns_mdio.c
index a1aa6c1f966e..6812be8dc64f 100644
--- a/drivers/net/ethernet/hisilicon/hns_mdio.c
+++ b/drivers/net/ethernet/hisilicon/hns_mdio.c
@@ -640,7 +640,7 @@ static struct platform_driver hns_mdio_driver = {
 	.driver = {
 		   .name = MDIO_DRV_NAME,
 		   .of_match_table = hns_mdio_match,
-		   .acpi_match_table = ACPI_PTR(hns_mdio_acpi_match),
+		   .acpi_match_table = hns_mdio_acpi_match,
 		   },
 };
 
-- 
2.39.5


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-02-27 12:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-25 16:33 [PATCH 1/2] net: hisilicon: hns_mdio: remove incorrect ACPI_PTR annotation Arnd Bergmann
2025-02-25 16:33 ` [PATCH 2/2] net: xgene-v2: " Arnd Bergmann
2025-02-26  3:21 ` [PATCH 1/2] net: hisilicon: hns_mdio: " Jijie Shao
2025-02-26  6:49   ` Arnd Bergmann
2025-02-27 11:53     ` Jijie Shao
2025-02-27 12:03       ` Arnd Bergmann
2025-02-27 12:41         ` Paolo Abeni
2025-02-27 12:50 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.