nfp: Remove kernel.h when not needed
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 7 Jun 2022 12:51:03 +0000 (14:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Jun 2022 17:05:19 +0000 (10:05 -0700)
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 <christophe.jaillet@wanadoo.fr>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20220607125103.487801-1-simon.horman@corigine.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/nfpcore/crc32.h

index afab6f0fc564cc50b29972c3c15a4d742b9c951a..6ad43c7cefe60d70f9a4a878c7528912475e286f 100644 (file)
@@ -4,7 +4,6 @@
 #ifndef NFP_CRC32_H
 #define NFP_CRC32_H
 
-#include <linux/kernel.h>
 #include <linux/crc32.h>
 
 /**