Skip to contentSkip to conversation

nfp: Remove kernel.h when not needed

PATCH Applied Simon Horman 2 participants 2 messages Jun 7, 2022 – Jun 8, 2022

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

PATCH 1/1 nfp: Remove kernel.h when not needed

From: Christophe JAILLET <[email protected]>

When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.

Remove kernel.h when it is not needed.

---
 drivers/net/ethernet/netronome/nfp/nfpcore/crc32.h | 1 -
 1 file changed, 1 deletion(-)

Reposting now that net-next has re-opened

drivers/net/ethernet/netronome/nfp/nfpcore/crc32.h +0 -1
index afab6f0fc564..6ad43c7cefe6 100644
@@ -4,7 +4,6 @@
 #ifndef NFP_CRC32_H
 #define NFP_CRC32_H
 
-#include <linux/kernel.h>
 #include <linux/crc32.h>
 
 /**
Signature · 1 line
2.30.2
#1 lore raw
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Hello:

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

Quoted 8 lines · On Tue, 7 Jun 2022 14:51:03 +0200 you wrote:

From: Christophe JAILLET <[email protected]>

When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.

Remove kernel.h when it is not needed.

[...]

Here is the summary with links:
- [net-next,repost] nfp: Remove kernel.h when not needed

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

You are awesome, thank you!

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