nfp: Remove kernel.h when not needed
Subsystems (3)
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.
Signed-off-by Christophe JAILLET <[email protected]>
Signed-off-by Simon Horman <[email protected]>
--- 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
@@ -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
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.his used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved.Remove
kernel.hwhen 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