qcacmn: Fix -Wmissing-prototypes in WMI

We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code that is generating warnings. Fix all warnings
in wmi.

Change-Id: I2452ffa4e9fa1de8a7bd75d04dd4a0f94d7cf55c
CRs-Fixed: 1093298
This commit is contained in:
Jeff Johnson
2016-10-07 13:03:02 -07:00
committed by qcabuildsw
parent 4103e4a36e
commit 9366d7a6cb
3 changed files with 20 additions and 10 deletions

View File

@@ -95,7 +95,7 @@ typedef PREPACK struct {
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0))
/* TODO Cleanup this backported function */
int qcacld_bp_seq_printf(struct seq_file *m, const char *f, ...)
static int qcacld_bp_seq_printf(struct seq_file *m, const char *f, ...)
{
va_list args;
@@ -1862,8 +1862,8 @@ QDF_STATUS wmi_unified_cmd_send(wmi_unified_t wmi_handle, wmi_buf_t buf,
*
* Return: event handler's index
*/
int wmi_unified_get_event_handler_ix(wmi_unified_t wmi_handle,
uint32_t event_id)
static int wmi_unified_get_event_handler_ix(wmi_unified_t wmi_handle,
uint32_t event_id)
{
uint32_t idx = 0;
int32_t invalid_idx = -1;
@@ -2043,7 +2043,7 @@ static void wmi_process_fw_event_worker_thread_ctx
*
* Return: none
*/
void wmi_control_rx(void *ctx, HTC_PACKET *htc_packet)
static void wmi_control_rx(void *ctx, HTC_PACKET *htc_packet)
{
struct wmi_unified *wmi_handle = (struct wmi_unified *)ctx;
wmi_buf_t evt_buf;
@@ -2182,7 +2182,7 @@ end:
*
* Return: none
*/
void wmi_rx_event_work(struct work_struct *work)
static void wmi_rx_event_work(struct work_struct *work)
{
struct wmi_unified *wmi = container_of(work, struct wmi_unified,
rx_event_work);
@@ -2364,7 +2364,7 @@ wmi_unified_remove_work(struct wmi_unified *wmi_handle)
*
* @Return: none.
*/
void wmi_htc_tx_complete(void *ctx, HTC_PACKET *htc_pkt)
static void wmi_htc_tx_complete(void *ctx, HTC_PACKET *htc_pkt)
{
struct wmi_unified *wmi_handle = (struct wmi_unified *)ctx;
wmi_buf_t wmi_cmd_buf = GET_HTC_PACKET_NET_BUF_CONTEXT(htc_pkt);