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>

authored by Andy Fleming and committed by Jeff Garzik 9b9a8bfc f162b9d5

+6 -1
+1 -1
drivers/net/phy/phy.c
··· 547 547 * Must not be called from interrupt context, or while the 548 548 * phydev->lock is held. 549 549 */ 550 - void phy_error(struct phy_device *phydev) 550 + static void phy_error(struct phy_device *phydev) 551 551 { 552 552 mutex_lock(&phydev->lock); 553 553 phydev->state = PHY_HALTED;
+5
include/linux/phy.h
··· 412 412 void mdiobus_unregister(struct mii_bus *bus); 413 413 void phy_sanitize_settings(struct phy_device *phydev); 414 414 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); 415 417 416 418 static inline int phy_read_status(struct phy_device *phydev) { 417 419 return phydev->drv->read_status(phydev); ··· 448 446 int phy_register_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask, 449 447 int (*run)(struct phy_device *)); 450 448 int phy_scan_fixups(struct phy_device *phydev); 449 + 450 + int __init mdio_bus_init(void); 451 + void mdio_bus_exit(void); 451 452 452 453 extern struct bus_type mdio_bus_type; 453 454 #endif /* __PHY_H */