Skip to contentSkip to conversation

net: dsa: hellcreek: Replace kernel.h with what is used

PATCH Applied Andy Shevchenko 3 participants 3 messages Jun 6, 2024 – Jun 10, 2024

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

PATCH 1/1 net: dsa: hellcreek: Replace kernel.h with what is used

kernel.h is included solely for some other existing headers. Include them directly and get rid of kernel.h.

While at it, sort headers alphabetically for easier maintenance.

---
 drivers/net/dsa/hirschmann/hellcreek.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/net/dsa/hirschmann/hellcreek.h +5 -3
index 6874cb9dc361..9c2ed2ba79da 100644
@@ -12,14 +12,16 @@
 
 #include <linux/bitmap.h>
 #include <linux/bitops.h>
+#include <linux/container_of.h>
 #include <linux/device.h>
-#include <linux/kernel.h>
-#include <linux/mutex.h>
-#include <linux/workqueue.h>
 #include <linux/leds.h>
+#include <linux/mutex.h>
 #include <linux/platform_data/hirschmann-hellcreek.h>
 #include <linux/ptp_clock_kernel.h>
 #include <linux/timecounter.h>
+#include <linux/types.h>
+#include <linux/workqueue.h>
+
 #include <net/dsa.h>
 #include <net/pkt_sched.h>
 
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
#2 lore raw
In reply to Andy Shevchenko
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Hello:

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

Quoted 8 lines · On Thu, 6 Jun 2024 19:15:49 +0300 you wrote:

kernel.h is included solely for some other existing headers. Include them directly and get rid of kernel.h.

While at it, sort headers alphabetically for easier maintenance.

[...]

Here is the summary with links:
- [net-next,v1,1/1] net: dsa: hellcreek: Replace kernel.h with what is used

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

You are awesome, thank you!

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