summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2016-10-07 09:11:01 -0700
committerJeff Johnson <jjohnson@codeaurora.org>2016-10-11 06:24:37 -0700
commit6c3c2b56aaad5fb3f0c53c49cf77e6fc01a58186 (patch)
tree156f6f93fece5575a8c4165644e21ccdc683421d
parentaf2a093bf5c07adea76812d0bee5d6382773a3c4 (diff)
qcacld-3.0: Fix -Wmissing-prototypes in BMI
We want to enable the compiler's -Wmissing-prototypes switch, but there is existing code that is generating warnings. Fix all warnings in BMI. Change-Id: I701a9620ad93b41b5bcfd79d0c048f62e8151a18 CRs-Fixed: 1075533
-rw-r--r--core/bmi/src/bmi.c4
-rw-r--r--core/bmi/src/ol_fw.c13
2 files changed, 9 insertions, 8 deletions
diff --git a/core/bmi/src/bmi.c b/core/bmi/src/bmi.c
index 4b88469782a3..33f5986cca0d 100644
--- a/core/bmi/src/bmi.c
+++ b/core/bmi/src/bmi.c
@@ -333,7 +333,7 @@ QDF_STATUS bmi_write_soc_register(uint32_t address, uint32_t param,
return QDF_STATUS_SUCCESS;
}
-QDF_STATUS
+static QDF_STATUS
bmilz_data(uint8_t *buffer, uint32_t length, struct ol_context *ol_ctx)
{
uint32_t cid;
@@ -455,7 +455,7 @@ QDF_STATUS bmi_sign_stream_start(uint32_t address, uint8_t *buffer,
return QDF_STATUS_SUCCESS;
}
-QDF_STATUS
+static QDF_STATUS
bmilz_stream_start(uint32_t address, struct ol_context *ol_ctx)
{
uint32_t cid;
diff --git a/core/bmi/src/ol_fw.c b/core/bmi/src/ol_fw.c
index e6178a43d3ee..a5fbb0222b62 100644
--- a/core/bmi/src/ol_fw.c
+++ b/core/bmi/src/ol_fw.c
@@ -848,8 +848,8 @@ ol_check_dataset_patch(struct hif_opaque_softc *scn, uint32_t *address)
}
-QDF_STATUS ol_fw_populate_clk_settings(A_refclk_speed_t refclk,
- struct cmnos_clock_s *clock_s)
+static QDF_STATUS ol_fw_populate_clk_settings(A_refclk_speed_t refclk,
+ struct cmnos_clock_s *clock_s)
{
if (!clock_s)
return QDF_STATUS_E_FAILURE;
@@ -913,7 +913,7 @@ QDF_STATUS ol_fw_populate_clk_settings(A_refclk_speed_t refclk,
return QDF_STATUS_SUCCESS;
}
-QDF_STATUS ol_patch_pll_switch(struct ol_context *ol_ctx)
+static QDF_STATUS ol_patch_pll_switch(struct ol_context *ol_ctx)
{
struct hif_opaque_softc *hif = ol_ctx->scn;
QDF_STATUS status = QDF_STATUS_SUCCESS;
@@ -1207,7 +1207,7 @@ end:
/* AXI Start Address */
#define TARGET_ADDR (0xa0000)
-void ol_transfer_codeswap_struct(struct ol_context *ol_ctx)
+static void ol_transfer_codeswap_struct(struct ol_context *ol_ctx)
{
struct pld_codeswap_codeseg_info wlan_codeswap;
QDF_STATUS rv;
@@ -1411,8 +1411,8 @@ QDF_STATUS ol_download_firmware(struct ol_context *ol_ctx)
return status;
}
-int ol_diag_read(struct hif_opaque_softc *scn, uint8_t *buffer,
- uint32_t pos, size_t count)
+static int ol_diag_read(struct hif_opaque_softc *scn, uint8_t *buffer,
+ uint32_t pos, size_t count)
{
int result = 0;
@@ -1549,6 +1549,7 @@ out:
return result;
}
+static
void ol_dump_target_memory(struct hif_opaque_softc *scn, void *memory_block)
{
char *buffer_loc = memory_block;