net: phy: stop exporting phy_queue_state_machine
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 13 Feb 2025 21:50:02 +0000 (22:50 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 15 Feb 2025 01:07:46 +0000 (17:07 -0800)
phy_queue_state_machine() isn't used outside phy.c,
so stop exporting it.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/16986d3d-7baf-4b02-a641-e2916d491264@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy.c
include/linux/phy.h

index 347ad1b644978d489176ebd47032caf101c3a8e9..29fb19bb712b0b88c902cb304279e12efbce3b12 100644 (file)
@@ -520,12 +520,12 @@ int __phy_hwtstamp_set(struct phy_device *phydev,
  * @phydev: the phy_device struct
  * @jiffies: Run the state machine after these jiffies
  */
-void phy_queue_state_machine(struct phy_device *phydev, unsigned long jiffies)
+static void phy_queue_state_machine(struct phy_device *phydev,
+                                   unsigned long jiffies)
 {
        mod_delayed_work(system_power_efficient_wq, &phydev->state_queue,
                         jiffies);
 }
-EXPORT_SYMBOL(phy_queue_state_machine);
 
 /**
  * phy_trigger_machine - Trigger the state machine to run now
index 104c0b48999197a12fbc944c17ab77d8c07b90bf..2ab83d24a57334d721a24e4a02b869418ca5e38c 100644 (file)
@@ -2071,7 +2071,6 @@ int phy_drivers_register(struct phy_driver *new_driver, int n,
                         struct module *owner);
 void phy_error(struct phy_device *phydev);
 void phy_state_machine(struct work_struct *work);
-void phy_queue_state_machine(struct phy_device *phydev, unsigned long jiffies);
 void phy_trigger_machine(struct phy_device *phydev);
 void phy_mac_interrupt(struct phy_device *phydev);
 void phy_start_machine(struct phy_device *phydev);