diff options
| author | Konrad Zapalowicz <bergo.torino@gmail.com> | 2014-06-05 14:27:42 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-06-05 18:38:57 -0400 |
| commit | 46cfd6ea23b0a207c87269d86457727dc4485708 (patch) | |
| tree | 30e9a5507c316676d8018102e9d53d405bd74f95 /include/linux | |
| parent | 9a8d4d15d830c5d74abe20a521c48924f40a3510 (diff) | |
net: phy: fix sparse warning in fixed.c
This commit fixes the following sparse warning:
drivers/net/phy/fixed.c:207
- warning: symbol 'fixed_phy_del' was not declared.
Should it be static?
by adding symbol definition to the phy_fixed.h API file. It is ok to do
because the function in question is an exported symbol.
Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/phy_fixed.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/phy_fixed.h b/include/linux/phy_fixed.h index 4f2478b47136..ae612acebb53 100644 --- a/include/linux/phy_fixed.h +++ b/include/linux/phy_fixed.h | |||
| @@ -17,6 +17,7 @@ extern int fixed_phy_add(unsigned int irq, int phy_id, | |||
| 17 | extern int fixed_phy_register(unsigned int irq, | 17 | extern int fixed_phy_register(unsigned int irq, |
| 18 | struct fixed_phy_status *status, | 18 | struct fixed_phy_status *status, |
| 19 | struct device_node *np); | 19 | struct device_node *np); |
| 20 | extern void fixed_phy_del(int phy_addr); | ||
| 20 | #else | 21 | #else |
| 21 | static inline int fixed_phy_add(unsigned int irq, int phy_id, | 22 | static inline int fixed_phy_add(unsigned int irq, int phy_id, |
| 22 | struct fixed_phy_status *status) | 23 | struct fixed_phy_status *status) |
| @@ -29,6 +30,10 @@ static inline int fixed_phy_register(unsigned int irq, | |||
| 29 | { | 30 | { |
| 30 | return -ENODEV; | 31 | return -ENODEV; |
| 31 | } | 32 | } |
| 33 | static inline int fixed_phy_del(int phy_addr) | ||
| 34 | { | ||
| 35 | return -ENODEV; | ||
| 36 | } | ||
| 32 | #endif /* CONFIG_FIXED_PHY */ | 37 | #endif /* CONFIG_FIXED_PHY */ |
| 33 | 38 | ||
| 34 | /* | 39 | /* |
