Message ID | 20220225124327.ef4uzmeo3imnxrvv@wse-c0155 (mailing list archive) |
---|---|
State | Accepted |
Commit | 90d4025285748448809701a44cf466a3f5443eaa |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net] net: sparx5: Add #include to remove warning | expand |
Hello: This patch was applied to netdev/net.git (master) by David S. Miller <davem@davemloft.net>: On Fri, 25 Feb 2022 13:43:27 +0100 you wrote: > main.h uses NUM_TARGETS from main_regs.h, but > the missing include never causes any errors > because everywhere main.h is (currently) > included, main_regs.h is included before. > But since it is dependent on main_regs.h > it should always be included. > > [...] Here is the summary with links: - [net] net: sparx5: Add #include to remove warning https://git.kernel.org/netdev/net/c/90d402528574 You are awesome, thank you!
diff --git a/drivers/net/ethernet/microchip/sparx5/sparx5_main.h b/drivers/net/ethernet/microchip/sparx5/sparx5_main.h index a1acc9b461f2..d40e18ce3293 100644 --- a/drivers/net/ethernet/microchip/sparx5/sparx5_main.h +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_main.h @@ -16,6 +16,8 @@ #include <linux/phylink.h> #include <linux/hrtimer.h> +#include "sparx5_main_regs.h" + /* Target chip type */ enum spx5_target_chiptype { SPX5_TARGET_CT_7546 = 0x7546, /* SparX-5-64 Enterprise */