ethtool: untangle the linkmode and ethtool headers
authorJakub Kicinski <kuba@kernel.org>
Thu, 19 Oct 2023 15:28:15 +0000 (08:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2023 11:47:33 +0000 (12:47 +0100)
commit20c6e05bd33deaa6fa890252d7ffc5ad54a0942c
tree3644eb3caabcb054f2c09fb390a1b03b8282780c
parentb4a11b2033b7d3dfdd46592f7036a775b18cecd1
ethtool: untangle the linkmode and ethtool headers

Commit 26c5334d344d ("ethtool: Add forced speed to supported link
modes maps") added a dependency between ethtool.h and linkmode.h.
The dependency in the opposite direction already exists so the
new code was inserted in an awkward place.

The reason for ethtool.h to include linkmode.h, is that
ethtool_forced_speed_maps_init() is a static inline helper.
That's not really necessary.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Paul Greenwalt <paul.greenwalt@intel.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h
include/linux/linkmode.h
net/ethtool/common.c