net: stmmac: Relocate extern declarations in common.h and hwif.h
authorFurong Xu <0x1207@gmail.com>
Sun, 8 Dec 2024 07:02:02 +0000 (15:02 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Dec 2024 02:24:36 +0000 (18:24 -0800)
commit46afe345ff181e3b72830cb12f1e11cc837cc58e
tree7ec0f33ab2e438193d37a56558454a3b370bca84
parent23c57f404bd03c0d7d6f5cb0d5258d2a1c157bcb
net: stmmac: Relocate extern declarations in common.h and hwif.h

The extern declarations should be in a header file that corresponds to
their definition, move these extern declarations to its header file.
Some of them have nowhere to go, so move them to hwif.h since they are
referenced in hwif.c only.

dwmac100_* dwmac1000_* dwmac4_* dwmac410_* dwmac510_* stay in hwif.h,
otherwise you will be flooded with name conflicts from dwmac100.h,
dwmac1000.h and dwmac4.h if hwif.c try to #include these .h files.

Compile tested only.
No functional change intended.

Suggested-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Furong Xu <0x1207@gmail.com>
Link: https://patch.msgid.link/20241208070202.203931-1-0x1207@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.h
drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h
drivers/net/ethernet/stmicro/stmmac/hwif.c
drivers/net/ethernet/stmicro/stmmac/hwif.h
drivers/net/ethernet/stmicro/stmmac/mmc.h
drivers/net/ethernet/stmicro/stmmac/stmmac_est.h
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h