net: sparx5: Add #include to remove warning
authorCasper Andersson <casper.casan@gmail.com>
Fri, 25 Feb 2022 12:43:27 +0000 (13:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Feb 2022 11:34:26 +0000 (11:34 +0000)
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>
drivers/net/ethernet/microchip/sparx5/sparx5_main.h

index a1acc9b..d40e18c 100644 (file)
@@ -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 */