]> 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)
commit90d4025285748448809701a44cf466a3f5443eaa
treeb145607c7668b9df1ae8b4378f73e613b115e4e3
parent4d08b7b57ece83a1c31c633a7e4e27f121157f9c
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