diff options
author | Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com> | 2014-10-07 15:44:09 (GMT) |
---|---|---|
committer | Madalin-Cristian Bucur <madalin.bucur@freescale.com> | 2015-03-11 13:25:28 (GMT) |
commit | 88ef592b1d1e81bf7e7115787eab843ae351d01a (patch) | |
tree | 4a5e2aeac6d2820f72ae40652534f111bb7ccef6 /drivers | |
parent | 25c482d7b522fcee9d679625d46caca845d7f6e5 (diff) | |
download | linux-fsl-qoriq-88ef592b1d1e81bf7e7115787eab843ae351d01a.tar.xz |
dpaa_eth: move static variable definition
The definition of any static variable should be in the header file. Error
reported by sparse.
Change-Id: Ic419e2cd80c05d1b4618d9260a61b6857aa4874a
Signed-off-by: Rotariu Marian Cristian-B44860 <marian.rotariu@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/20986
Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/32492
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_base.h | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_shared.c | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_base.h b/drivers/net/ethernet/freescale/dpa/dpaa_eth_base.h index 3554e2e..a75e270 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_base.h +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_base.h @@ -38,6 +38,8 @@ #include <linux/net_tstamp.h> /* struct hwtstamp_config */ extern uint8_t advanced_debug; +extern const struct dpa_fq_cbs_t shared_fq_cbs; +extern int __hot dpa_shared_tx(struct sk_buff *skb, struct net_device *net_dev); struct dpa_bp * __cold __must_check /* __attribute__((nonnull)) */ dpa_bp_probe(struct platform_device *_of_dev, size_t *count); diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c index 4bb5942..10bcf43 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_macless.c @@ -70,10 +70,6 @@ static uint16_t macless_tx_timeout = 1000; module_param(macless_tx_timeout, ushort, S_IRUGO); MODULE_PARM_DESC(macless_tx_timeout, "The MACless Tx timeout in ms"); -/* reused from the shared driver */ -extern const struct dpa_fq_cbs_t shared_fq_cbs; -int __hot dpa_shared_tx(struct sk_buff *skb, struct net_device *net_dev); - /* forward declarations */ static int __cold dpa_macless_start(struct net_device *net_dev); static int __cold dpa_macless_stop(struct net_device *net_dev); diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_shared.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_shared.c index c1d6f56..ea88db2 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_shared.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_shared.c @@ -67,7 +67,6 @@ shared_tx_error_dqrr(struct qman_portal *portal, static void shared_ern(struct qman_portal *portal, struct qman_fq *fq, const struct qm_mr_entry *msg); -int __hot dpa_shared_tx(struct sk_buff *skb, struct net_device *net_dev); #define DPA_DESCRIPTION "FSL DPAA Shared Ethernet driver" |