Browse Source

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
Jeff Johnson 8 years ago
parent
commit
3984d67bac
2 changed files with 6 additions and 4 deletions
  1. 2 0
      core/utils/epping/inc/epping_internal.h
  2. 4 4
      core/utils/epping/src/epping_txrx.c

+ 2 - 0
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);
 

+ 4 - 4
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;