linux_dsm_epyc7002/drivers/net/ethernet/apm/xgene
Arnd Bergmann 1f3d62090d xgene_enet: remove bogus forward declarations
The device match tables for both the xgene_enet driver and its phy driver
have forward declarations that declare an array without a length, leading
to a clang warning when they are not followed by an actual defitinition:

drivers/net/ethernet/apm/xgene/../../../phy/mdio-xgene.h:135:34: warning: tentative array definition assumed to have one element
drivers/net/ethernet/apm/xgene/xgene_enet_main.c:33:36: warning: tentative array definition assumed to have one element

The declarations for the mdio driver are even in a header file, so they
cause duplicate definitions of the tables for each file that includes
them.

This removes all four forward declarations and moves the actual
definitions up a little, so they are in front of their first user. For
the OF match tables, this means having to remove the #ifdef around them,
and passing the actual structure into of_match_device(). This has no
effect on the generated object code though, as the of_match_device
function has an empty stub that does not evaluate its argument, and
the symbol gets dropped either way.

Fixes: 43b3cf6634 ("drivers: net: phy: xgene: Add MDIO driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-02 17:12:20 -05:00
..
Kconfig drivers: net: xgene: Poll link status via GPIO 2016-08-13 11:48:53 -07:00
Makefile drivers: net: xgene: Add support for Classifier engine 2016-02-17 22:08:34 -05:00
xgene_enet_cle.c net: xgene: move xgene_cle_ptree_ewdn data off stack 2016-12-08 21:30:54 -05:00
xgene_enet_cle.h net: xgene: move xgene_cle_ptree_ewdn data off stack 2016-12-08 21:30:54 -05:00
xgene_enet_ethtool.c drivers: net: xgene: ethtool: Add get/set_pauseparam 2016-12-03 15:46:50 -05:00
xgene_enet_hw.c drivers: net: xgene: Add flow control initialization 2016-12-03 15:46:50 -05:00
xgene_enet_hw.h drivers: net: xgene: Add flow control initialization 2016-12-03 15:46:50 -05:00
xgene_enet_main.c xgene_enet: remove bogus forward declarations 2017-02-02 17:12:20 -05:00
xgene_enet_main.h drivers: net: xgene: Add flow control configuration 2016-12-03 15:46:50 -05:00
xgene_enet_ring2.c drivers: net: xgene: Add support for Jumbo frame 2016-12-03 15:46:50 -05:00
xgene_enet_ring2.h drivers: net: xgene: Add ring manager v2 functions 2015-04-30 16:03:13 -04:00
xgene_enet_sgmac.c drivers: net: xgene: Add flow control initialization 2016-12-03 15:46:50 -05:00
xgene_enet_sgmac.h drivers: net: xgene: Fix module unload crash - clkrst sequence 2016-07-25 21:51:43 -07:00
xgene_enet_xgmac.c drivers: net: xgene: Add flow control initialization 2016-12-03 15:46:50 -05:00
xgene_enet_xgmac.h drivers: net: xgene: Add flow control initialization 2016-12-03 15:46:50 -05:00