diff options
| author | Tang Yingying <yintang@codeaurora.org> | 2017-01-17 23:28:43 +0800 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-02-09 15:48:23 -0800 |
| commit | b70e662383d7497c0a86b2702f4c0feb09c27876 (patch) | |
| tree | a4414f4b2494491355845ac983ad7330b2c63814 | |
| parent | 5dedc7212d68cadef66aabe1354beb15e3137af4 (diff) | |
qcacld-3.0: Add "static" before function to fix compilation error
Some functions are only used in the file which it is defined
in. Add "static" before function to fix compilation error.
Change-Id: Ie99c8e2a2c4dd6564c19876f8456a47786d3e5cb
CRs-Fixed: 1112463
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 2 | ||||
| -rw-r--r-- | core/sap/src/sap_ch_select.c | 9 | ||||
| -rw-r--r-- | core/wma/src/wma_dev_if.c | 2 | ||||
| -rw-r--r-- | core/wma/src/wma_features.c | 4 |
4 files changed, 10 insertions, 7 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index fea410724f68..2bb8bec63378 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -4996,7 +4996,7 @@ void __hdd_wlan_exit(void) * * Return: void */ -void hdd_skip_acs_scan_timer_handler(void *data) +static void hdd_skip_acs_scan_timer_handler(void *data) { hdd_context_t *hdd_ctx = (hdd_context_t *) data; diff --git a/core/sap/src/sap_ch_select.c b/core/sap/src/sap_ch_select.c index 4183da112e36..6dc64ecf7022 100644 --- a/core/sap/src/sap_ch_select.c +++ b/core/sap/src/sap_ch_select.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -81,6 +81,9 @@ acs_band = eCSR_DOT11_MODE_abg; \ } +#define GET_IE_LEN_IN_BSS_DESC(lenInBss) (lenInBss + sizeof(lenInBss) - \ + ((uintptr_t)OFFSET_OF(tSirBssDescription, ieFields))) + #ifdef FEATURE_WLAN_CH_AVOID sapSafeChannelType safe_channels[NUM_CHANNELS] = { {1, true}, @@ -186,7 +189,7 @@ sapAcsChannelInfo acs_ht40_channels24_g[] = { * Return: true: if channel was added or already present * else false: if channel list was already full. */ -bool +static bool sap_check_n_add_channel(ptSapContext sap_ctx, uint8_t new_channel) { @@ -283,7 +286,7 @@ sap_check_n_add_overlapped_chnls(ptSapContext sap_ctx, uint8_t primary_channel) * * Return: void */ -void sap_process_avoid_ie(tHalHandle hal, +static void sap_process_avoid_ie(tHalHandle hal, ptSapContext sap_ctx, tScanResultHandle scan_result, tSapChSelSpectInfo *spect_info) diff --git a/core/wma/src/wma_dev_if.c b/core/wma/src/wma_dev_if.c index f89fca15a090..52d591093320 100644 --- a/core/wma/src/wma_dev_if.c +++ b/core/wma/src/wma_dev_if.c @@ -743,7 +743,7 @@ send_fail_resp: * * Return: none */ -void wma_find_mcc_ap(tp_wma_handle wma, uint8_t vdev_id, bool add) +static void wma_find_mcc_ap(tp_wma_handle wma, uint8_t vdev_id, bool add) { uint8_t i; uint16_t prev_ch_freq = 0; diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 8a9b82e09001..a82ec7a0f2a3 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -1590,8 +1590,8 @@ int wma_nan_rsp_event_handler(void *handle, uint8_t *event_buf, return 0; } #else -int wma_nan_rsp_event_handler(void *handle, uint8_t *event_buf, - uint32_t len) +static int wma_nan_rsp_event_handler(void *handle, uint8_t *event_buf, + uint32_t len) { return 0; } |
