summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorRotariu Marian Cristian-B44860 <marian.rotariu@freescale.com>2014-10-08 13:14:13 (GMT)
committerMadalin-Cristian Bucur <madalin.bucur@freescale.com>2015-03-11 13:50:06 (GMT)
commit33e06a3815629a0170eb610e911479eb92fd4952 (patch)
tree283da77f59be636d51c4e028d6f5fb72e9031da6 /drivers/net/ethernet
parentd9078b1495b94f6dcb62376b0f4f4f677346b648 (diff)
downloadlinux-fsl-qoriq-33e06a3815629a0170eb610e911479eb92fd4952.tar.xz
dpaa_eth: fix forward declarations for macless
The function should be properly declared as being extern or static. The lack of scope identifier together with the lack of the forward declaration will result in a sparse error. Change-Id: I0b976be7c27d9b6ae66d1725433fb1aefcc407ba Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/20937 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/32494
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c
index 10bcf43..c13e5cd 100644
--- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c
+++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c
@@ -80,8 +80,6 @@ static void __cold dpa_macless_set_rx_mode(struct net_device *net_dev);
static int dpaa_eth_macless_probe(struct platform_device *_of_dev);
static netdev_features_t
dpa_macless_fix_features(struct net_device *dev, netdev_features_t features);
-static int dpa_macless_netdev_init(struct device_node *dpa_node,
- struct net_device *net_dev);
static const struct net_device_ops dpa_macless_ops = {
.ndo_open = dpa_macless_start,
@@ -265,7 +263,8 @@ static int dpa_fq_probe_macless(struct device *dev, struct list_head *list,
return 0;
}
-struct proxy_device *dpa_macless_proxy_probe(struct platform_device *_of_dev)
+ static struct proxy_device *
+dpa_macless_proxy_probe(struct platform_device *_of_dev)
{
struct device *dev;
const phandle *proxy_prop;