diff options
author | Casper Andersson <casper.casan@gmail.com> | 2022-02-25 13:43:27 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-28 12:34:26 +0100 |
commit | 90d4025285748448809701a44cf466a3f5443eaa (patch) | |
tree | b145607c7668b9df1ae8b4378f73e613b115e4e3 /drivers/net | |
parent | net/smc: Fix cleanup when register ULP fails (diff) | |
download | linux-90d4025285748448809701a44cf466a3f5443eaa.tar.xz linux-90d4025285748448809701a44cf466a3f5443eaa.zip |
net: sparx5: Add #include to remove warning
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.
Signed-off-by: Casper Andersson <casper.casan@gmail.com>
Reviewed-by: Joacim Zetterling <joacim.zetterling@westermo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/microchip/sparx5/sparx5_main.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |