From: Christophe JAILLET Date: Sat, 4 Jun 2022 06:15:21 +0000 (+0200) Subject: net: dsa: microchip: ksz8xxx: Replace kernel.h with the necessary inclusions X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=67074ae6af59c7d9112535e6f8449bc59f66df40;p=linux.git net: dsa: microchip: ksz8xxx: Replace kernel.h with the necessary inclusions When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved. Replace kernel.h inclusion with the list of what is really being used. Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/41d99ef8629e1db03d4f2662f5556611e0b94652.1654323308.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/dsa/microchip/ksz8.h b/drivers/net/dsa/microchip/ksz8.h index 03da369675c68..cae76f5e7787c 100644 --- a/drivers/net/dsa/microchip/ksz8.h +++ b/drivers/net/dsa/microchip/ksz8.h @@ -7,7 +7,8 @@ #ifndef __KSZ8XXX_H #define __KSZ8XXX_H -#include + +#include enum ksz_regs { REG_IND_CTRL_0,