summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2016-10-07 10:20:11 -0700
committerqcabuildsw <qcabuildsw@localhost>2016-10-17 21:59:06 -0700
commit8a621308c2b51c2058da1dfdefde2bb6e98e14a6 (patch)
tree3e0702a11e27641fb06027b5692be8c9baeaecbe
parent61353074e5d9d0d29e4478ca221b9c65f5c1ec63 (diff)
qcacld-3.0: Fix -Wmissing-prototypes in sap/dfs
We want to enable the compiler's -Wmissing-prototypes switch, but there is existing code that is generating warnings. Fix all warnings in sap/dfs. Change-Id: I05b091f33d94a0219d4113d49c392828ed4350b8 CRs-Fixed: 1075555
-rw-r--r--core/sap/dfs/inc/dfs_interface.h4
-rw-r--r--core/sap/dfs/src/dfs_process_phyerr.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/core/sap/dfs/inc/dfs_interface.h b/core/sap/dfs/inc/dfs_interface.h
index ce0a49bcf93b..e0bbf90bf285 100644
--- a/core/sap/dfs/inc/dfs_interface.h
+++ b/core/sap/dfs/inc/dfs_interface.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011-2015 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2016 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -68,7 +68,7 @@
* EXPORT_SYMBOL(dfs_init_radar_filters);
* EXPORT_SYMBOL(dfs_getchanstate);
*/
-
+uint16_t dfs_usenol(struct ieee80211com *ic);
uint16_t dfs_isdfsregdomain(struct ieee80211com *ic);
int dfs_attach(struct ieee80211com *ic);
void dfs_detach(struct ieee80211com *ic);
diff --git a/core/sap/dfs/src/dfs_process_phyerr.c b/core/sap/dfs/src/dfs_process_phyerr.c
index 5290a70c0db9..efb0f0311871 100644
--- a/core/sap/dfs/src/dfs_process_phyerr.c
+++ b/core/sap/dfs/src/dfs_process_phyerr.c
@@ -143,7 +143,7 @@ dfs_get_event_freqcentre(struct ath_dfs *dfs, int is_pri, int is_ext, int is_dc)
*
* Return 1 on success or 0 on failure.
*/
-int
+static int
dfs_process_phyerr_owl(struct ath_dfs *dfs, void *buf, uint16_t datalen,
uint8_t rssi, uint8_t ext_rssi, uint32_t rs_tstamp,
uint64_t fulltsf, struct dfs_phy_err *e)
@@ -205,7 +205,7 @@ dfs_process_phyerr_owl(struct ath_dfs *dfs, void *buf, uint16_t datalen,
/*
* Process a Sowl/Howl style phy error.
*/
-int
+static int
dfs_process_phyerr_sowl(struct ath_dfs *dfs, void *buf, uint16_t datalen,
uint8_t rssi, uint8_t ext_rssi, uint32_t rs_tstamp,
uint64_t fulltsf, struct dfs_phy_err *e)
@@ -357,7 +357,7 @@ dfs_process_phyerr_sowl(struct ath_dfs *dfs, void *buf, uint16_t datalen,
/*
* Process a Merlin/Osprey style phy error.
*/
-int
+static int
dfs_process_phyerr_merlin(struct ath_dfs *dfs, void *buf,
uint16_t datalen, uint8_t rssi, uint8_t ext_rssi,
uint32_t rs_tstamp, uint64_t fulltsf,