Skip to content

Commit

Permalink
net: sparx5: Add #include to remove warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Casper Andersson authored and David S. Miller committed Feb 28, 2022
1 parent 4d08b7b commit 90d4025
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/microchip/sparx5/sparx5_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 90d4025

Please sign in to comment.