Browse Source

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
Jeff Johnson 8 years ago
parent
commit
8a621308c2
2 changed files with 5 additions and 5 deletions
  1. 2 2
      core/sap/dfs/inc/dfs_interface.h
  2. 3 3
      core/sap/dfs/src/dfs_process_phyerr.c

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

+ 3 - 3
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,