]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: make exported variables non-static
authorDenis Efremov <efremov@linux.com>
Wed, 10 Jul 2019 18:03:24 +0000 (21:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Jul 2019 22:26:29 +0000 (15:26 -0700)
commit0005dc9fbf1c37106687111ceecccf421c30e097
tree5b14a3eb40917022fdc0282c0a55f4b06a181473
parent27d9c97c2f6846a3070fd3f6b1423d2da2575c22
net: phy: make exported variables non-static

The variables phy_basic_ports_array, phy_fibre_port_array and
phy_all_ports_features_array are declared static and marked
EXPORT_SYMBOL_GPL(), which is at best an odd combination.
Because the variables were decided to be a part of API, this commit
removes the static attributes and adds the declarations to the header.

Fixes: 1adbfd4fe348 ("net: ethernet: Convert phydev advertize and supported from u32 to link mode")
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c
include/linux/phy.h