From 8a621308c2b51c2058da1dfdefde2bb6e98e14a6 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 7 Oct 2016 10:20:11 -0700 Subject: [PATCH] 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 --- core/sap/dfs/inc/dfs_interface.h | 4 ++-- core/sap/dfs/src/dfs_process_phyerr.c | 6 +++--- 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 ce0a49bcf9..e0bbf90bf2 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 5290a70c0d..efb0f03118 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,