]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7019d961f6e4492f35ecbd13aacf0e79cd4c5b2
treeb145607c7668b9df1ae8b4378f73e613b115e4e3
parentf7bb51cc8bf7cab9200852a638d6465e0a78dd85
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>
drivers/net/ethernet/microchip/sparx5/sparx5_main.h