Skip to contentSkip to conversation

drivers: net: xgene: Don't use "proxy" headers

PATCH Applied Andy Shevchenko 2 participants 2 messages Feb 24, 2025 – Feb 26, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: net: xgene: Don't use "proxy" headers

Update header inclusions to follow IWYU (Include What You Use) principle.

In this case replace *gpio.h, which are subject to remove by the GPIOLIB subsystem, with the respective headers that are being used by the driver.

---
 drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c +8 -2
index 86607b79c09f..cc3b1631c905 100644
@@ -6,8 +6,14 @@
  *	    Keyur Chudgar <[email protected]>
  */
 
-#include <linux/of_gpio.h>
-#include <linux/gpio.h>
+#include <linux/acpi.h>
+#include <linux/clk.h>
+#include <linux/err.h>
+#include <linux/gpio/consumer.h>
+#include <linux/io.h>
+#include <linux/types.h>
+#include <linux/workqueue.h>
+
 #include "xgene_enet_main.h"
 #include "xgene_enet_hw.h"
 #include "xgene_enet_xgmac.h"
Signature · 1 line
2.45.1.3035.g276e886db78b
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Mon, 24 Feb 2025 14:00:37 +0200 you wrote:

Update header inclusions to follow IWYU (Include What You Use) principle.

In this case replace *gpio.h, which are subject to remove by the GPIOLIB subsystem, with the respective headers that are being used by the driver.

[...]

Here is the summary with links:
- [net-next,v1,1/1] drivers: net: xgene: Don't use "proxy" headers

    https://git.kernel.org/netdev/net-next/c/ad530283d3c8

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html