From 68cf2b9c47fbaeb4dbd67aebbc745eba376cf821 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Tue, 22 Nov 2016 15:57:21 -0800 Subject: qcacld-3.0: Fix -Wmissing-prototypes in EPPING We want to enable the compiler's -Wmissing-prototypes switch, but there is existing code that is generating warnings. Fix all warnings in epping. Change-Id: I025be90e0d2127552f26510a0aefbd9d6f3a1e61 CRs-Fixed: 1093405 --- core/utils/epping/inc/epping_internal.h | 2 ++ core/utils/epping/src/epping_txrx.c | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/utils/epping/inc/epping_internal.h b/core/utils/epping/inc/epping_internal.h index 3ae69fbfe09f..fdd71c417492 100644 --- a/core/utils/epping/inc/epping_internal.h +++ b/core/utils/epping/inc/epping_internal.h @@ -173,6 +173,8 @@ int epping_tx_send(qdf_nbuf_t skb, epping_adapter_t *pAdapter); #ifdef HIF_SDIO HTC_SEND_FULL_ACTION epping_tx_queue_full(void *Context, HTC_PACKET *pPacket); #endif +void epping_tx_dup_pkt(epping_adapter_t *pAdapter, + HTC_ENDPOINT_ID eid, qdf_nbuf_t skb); /* epping_rx signatures */ void epping_rx(void *Context, HTC_PACKET *pPacket); diff --git a/core/utils/epping/src/epping_txrx.c b/core/utils/epping/src/epping_txrx.c index 66364e290e43..43cd77713df8 100644 --- a/core/utils/epping/src/epping_txrx.c +++ b/core/utils/epping/src/epping_txrx.c @@ -117,7 +117,7 @@ end: return; } -void epping_tx_queue_timeout(struct net_device *dev) +static void epping_tx_queue_timeout(struct net_device *dev) { epping_adapter_t *pAdapter; @@ -144,7 +144,7 @@ end: } -int epping_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) +static int epping_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) { epping_adapter_t *pAdapter; int ret = 0; @@ -161,7 +161,7 @@ end: return ret; } -struct net_device_stats *epping_get_stats(struct net_device *dev) +static struct net_device_stats *epping_get_stats(struct net_device *dev) { epping_adapter_t *pAdapter = netdev_priv(dev); @@ -174,7 +174,7 @@ struct net_device_stats *epping_get_stats(struct net_device *dev) return &pAdapter->stats; } -int epping_ndev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) +static int epping_ndev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) { epping_adapter_t *pAdapter; int ret = 0; -- cgit v1.2.3