Skip to content

Commit 9b9a8bf

Browse files
Andy FlemingJeff Garzik
authored andcommitted
phylib: Fix some sparse warnings
Declared some things static, declared some things in the header. Signed-off-by: Andy Fleming <afleming@freescale.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
1 parent f162b9d commit 9b9a8bf

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎drivers/net/phy/phy.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ static void phy_force_reduction(struct phy_device *phydev)
547547
* Must not be called from interrupt context, or while the
548548
* phydev->lock is held.
549549
*/
550-
void phy_error(struct phy_device *phydev)
550+
static void phy_error(struct phy_device *phydev)
551551
{
552552
mutex_lock(&phydev->lock);
553553
phydev->state = PHY_HALTED;

‎include/linux/phy.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ int mdiobus_register(struct mii_bus *bus);
412412
void mdiobus_unregister(struct mii_bus *bus);
413413
void phy_sanitize_settings(struct phy_device *phydev);
414414
int phy_stop_interrupts(struct phy_device *phydev);
415+
int phy_enable_interrupts(struct phy_device *phydev);
416+
int phy_disable_interrupts(struct phy_device *phydev);
415417

416418
static inline int phy_read_status(struct phy_device *phydev) {
417419
return phydev->drv->read_status(phydev);
@@ -447,5 +449,8 @@ int phy_register_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask,
447449
int (*run)(struct phy_device *));
448450
int phy_scan_fixups(struct phy_device *phydev);
449451

452+
int __init mdio_bus_init(void);
453+
void mdio_bus_exit(void);
454+
450455
extern struct bus_type mdio_bus_type;
451456
#endif /* __PHY_H */

0 commit comments

Comments
 (0)