summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2016-10-07 13:01:33 -0700
committerqcabuildsw <qcabuildsw@localhost>2016-11-23 14:44:44 -0800
commit071916b8e6510a560f7c49d5aacd7cec93ccf0ea (patch)
tree068e2c5675e86b8c77e7ee0b07fe0eb700223dfe
parentd61a5d8007581f009d1db38fe0c907941a51103a (diff)
qcacmn: Fix -Wmissing-prototypes in Host Transport layer
We want to enable the compiler's -Wmissing-prototypes switch, but there is existing code that is generating warnings. Fix all warnings in the Host Transport layer. Change-Id: Ic9c7f920883f41176d89419de25b7e02df0b895e CRs-Fixed: 1093231
-rw-r--r--htc/htc.c3
-rw-r--r--htc/htc_send.c12
2 files changed, 8 insertions, 7 deletions
diff --git a/htc/htc.c b/htc/htc.c
index ea3a210f2cf1..1511e2ebbc9a 100644
--- a/htc/htc.c
+++ b/htc/htc.c
@@ -342,7 +342,7 @@ void *htc_get_hif_device(HTC_HANDLE HTCHandle)
return target->hif_dev;
}
-void htc_control_tx_complete(void *Context, HTC_PACKET *pPacket)
+static void htc_control_tx_complete(void *Context, HTC_PACKET *pPacket)
{
HTC_TARGET *target = (HTC_TARGET *) Context;
AR_DEBUG_PRINTF(ATH_DEBUG_TRC,
@@ -394,6 +394,7 @@ htc_setup_epping_credit_allocation(struct hif_opaque_softc *scn,
*
* Return: A_STATUS
*/
+static
A_STATUS htc_setup_target_buffer_assignments(HTC_TARGET *target)
{
HTC_SERVICE_TX_CREDIT_ALLOCATION *pEntry;
diff --git a/htc/htc_send.c b/htc/htc_send.c
index 8b53dab847dc..20e00dae6335 100644
--- a/htc/htc_send.c
+++ b/htc/htc_send.c
@@ -741,9 +741,9 @@ static void queue_htc_pm_packets(HTC_ENDPOINT *endpoint,
*
* Return: None
*/
-void get_htc_send_packets_credit_based(HTC_TARGET *target,
- HTC_ENDPOINT *pEndpoint,
- HTC_PACKET_QUEUE *pQueue)
+static void get_htc_send_packets_credit_based(HTC_TARGET *target,
+ HTC_ENDPOINT *pEndpoint,
+ HTC_PACKET_QUEUE *pQueue)
{
int creditsRequired;
int remainder;
@@ -878,9 +878,9 @@ void get_htc_send_packets_credit_based(HTC_TARGET *target,
}
-void get_htc_send_packets(HTC_TARGET *target,
- HTC_ENDPOINT *pEndpoint,
- HTC_PACKET_QUEUE *pQueue, int Resources)
+static void get_htc_send_packets(HTC_TARGET *target,
+ HTC_ENDPOINT *pEndpoint,
+ HTC_PACKET_QUEUE *pQueue, int Resources)
{
HTC_PACKET *pPacket;