mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
generic: fix no previous prototype
It seems new kernel version introduced -Wmissing-prototypes. This new warning reported drivers that define non static function that are used statically in the driver. Fix this by declaring making those function actually static if not defined in any header and not used outside of the single driver. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
1d300215e5
commit
25ebc3de2e
@ -227,7 +227,7 @@ static void b53_set_vlan_entry(struct b53_device *dev, u16 vid, u16 members,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void b53_set_forwarding(struct b53_device *dev, int enable)
|
static void b53_set_forwarding(struct b53_device *dev, int enable)
|
||||||
{
|
{
|
||||||
u8 mgmt;
|
u8 mgmt;
|
||||||
|
|
||||||
|
@ -254,7 +254,7 @@ static int __rtl8366_smi_read_reg(struct rtl8366_smi *smi, u32 addr, u32 *data)
|
|||||||
#define MDC_MDIO_WRITE_OP 0x0003
|
#define MDC_MDIO_WRITE_OP 0x0003
|
||||||
#define MDC_REALTEK_PHY_ADDR 0x0
|
#define MDC_REALTEK_PHY_ADDR 0x0
|
||||||
|
|
||||||
int __rtl8366_mdio_read_reg(struct rtl8366_smi *smi, u32 addr, u32 *data)
|
static int __rtl8366_mdio_read_reg(struct rtl8366_smi *smi, u32 addr, u32 *data)
|
||||||
{
|
{
|
||||||
u32 phy_id = smi->phy_id;
|
u32 phy_id = smi->phy_id;
|
||||||
struct mii_bus *mbus = smi->ext_mbus;
|
struct mii_bus *mbus = smi->ext_mbus;
|
||||||
@ -1527,7 +1527,7 @@ static void rtl8366_smi_reset(struct rtl8366_smi *smi, bool active)
|
|||||||
reset_control_deassert(smi->reset);
|
reset_control_deassert(smi->reset);
|
||||||
}
|
}
|
||||||
|
|
||||||
int rtl8366_smi_probe_of(struct platform_device *pdev, struct rtl8366_smi *smi)
|
static int rtl8366_smi_probe_of(struct platform_device *pdev, struct rtl8366_smi *smi)
|
||||||
{
|
{
|
||||||
int sck = of_get_named_gpio(pdev->dev.of_node, "gpio-sck", 0);
|
int sck = of_get_named_gpio(pdev->dev.of_node, "gpio-sck", 0);
|
||||||
int sda = of_get_named_gpio(pdev->dev.of_node, "gpio-sda", 0);
|
int sda = of_get_named_gpio(pdev->dev.of_node, "gpio-sda", 0);
|
||||||
@ -1577,7 +1577,7 @@ static inline int rtl8366_smi_probe_of(struct platform_device *pdev, struct rtl8
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int rtl8366_smi_probe_plat(struct platform_device *pdev, struct rtl8366_smi *smi)
|
static int rtl8366_smi_probe_plat(struct platform_device *pdev, struct rtl8366_smi *smi)
|
||||||
{
|
{
|
||||||
struct rtl8366_platform_data *pdata = pdev->dev.platform_data;
|
struct rtl8366_platform_data *pdata = pdev->dev.platform_data;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user