From 624240a83e70f00588b5a64a843748590b65df1e Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 30 Nov 2016 11:03:54 -0800 Subject: [PATCH] qcacld-3.0: Fix -Wmissing-prototypes in sch_api.c We want to enable the compiler's -Wmissing-prototypes switch, but there is existing code in sch_api.c that is generating warnings. To address these warnings: 1) remove unused/obsolete functions sch_get_cfp_count() and sch_get_cfp_dur_remaining(). 2) make local function lim_remove_p2p_ie_from_add_ie() static. Change-Id: I9d211c920cef24fe2a105c6620b4fac5221b2ebc CRs-Fixed: 1095738 --- core/mac/src/pe/sch/sch_api.c | 52 +++-------------------------------- 1 file changed, 4 insertions(+), 48 deletions(-) diff --git a/core/mac/src/pe/sch/sch_api.c b/core/mac/src/pe/sch/sch_api.c index 1debe34dfa74..ef8153e5aa74 100644 --- a/core/mac/src/pe/sch/sch_api.c +++ b/core/mac/src/pe/sch/sch_api.c @@ -65,50 +65,6 @@ /* */ /* ------------------------------------------------------------------- */ -/* -------------------------------------------------------------------- */ -/** - * sch_get_cfp_count - * - * FUNCTION: - * Function used by other Sirius modules to read CFPcount - * - * LOGIC: - * - * ASSUMPTIONS: - * - * NOTE: - * - * @param None - * @return None - */ - -uint8_t sch_get_cfp_count(tpAniSirGlobal pMac) -{ - return pMac->sch.schObject.gSchCFPCount; -} - -/* -------------------------------------------------------------------- */ -/** - * sch_get_cfp_dur_remaining - * - * FUNCTION: - * Function used by other Sirius modules to read CFPDuration remaining - * - * LOGIC: - * - * ASSUMPTIONS: - * - * NOTE: - * - * @param None - * @return None - */ - -uint16_t sch_get_cfp_dur_remaining(tpAniSirGlobal pMac) -{ - return pMac->sch.schObject.gSchCFPDurRemaining; -} - /* -------------------------------------------------------------------- */ /** * sch_init_globals @@ -331,10 +287,10 @@ tSirRetStatus sch_send_beacon_req(tpAniSirGlobal pMac, uint8_t *beaconPayload, return retCode; } -uint32_t lim_remove_p2p_ie_from_add_ie(tpAniSirGlobal pMac, - tpPESession psessionEntry, - uint8_t *addIeWoP2pIe, - uint32_t *addnIELenWoP2pIe) +static uint32_t lim_remove_p2p_ie_from_add_ie(tpAniSirGlobal pMac, + tpPESession psessionEntry, + uint8_t *addIeWoP2pIe, + uint32_t *addnIELenWoP2pIe) { uint32_t left = psessionEntry->addIeParams.probeRespDataLen; uint8_t *ptr = psessionEntry->addIeParams.probeRespData_buff;