summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhaoyang Liu <zhaoyang@codeaurora.org>2017-04-10 17:28:08 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-04-17 17:44:14 -0700
commitba7586ca465a4d4e06680a760d7eb4afb33947bf (patch)
tree14eec1687d92233252eb702eb9099b754816d8c2
parent15d203ef98affe7dd7a5c251b8d3f741780e1e8a (diff)
qcacld-2.0: fix build error on kernel 4.4.55
Fix compliation error on kernel version 4.4.55. It is caused by wrong format type about the result of macro abs. Use type cast to avoid format mismatch issue. Change-Id: I77caffd89187214c81f50b3a497783d05ef609e3 CRs-Fixed: 2031285
-rw-r--r--CORE/SERVICES/DFS/src/dfs_phyerr_tlv.c2
-rw-r--r--CORE/SME/src/csr/csrNeighborRoam.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/CORE/SERVICES/DFS/src/dfs_phyerr_tlv.c b/CORE/SERVICES/DFS/src/dfs_phyerr_tlv.c
index a2e29b4e9aab..8ec07e0370cc 100644
--- a/CORE/SERVICES/DFS/src/dfs_phyerr_tlv.c
+++ b/CORE/SERVICES/DFS/src/dfs_phyerr_tlv.c
@@ -607,7 +607,7 @@ tlv_calc_event_freq_chirp(struct ath_dfs *dfs, struct rx_radar_status *rs,
bin_resolution % 1000,
radar_fft_long_period,
total_bw / 100,
- abs(total_bw % 100));
+ (long int)abs(total_bw % 100));
#endif
total_bw /= 100; /* back to KHz */
diff --git a/CORE/SME/src/csr/csrNeighborRoam.c b/CORE/SME/src/csr/csrNeighborRoam.c
index 664bcd89a9bd..86463b2e06d6 100644
--- a/CORE/SME/src/csr/csrNeighborRoam.c
+++ b/CORE/SME/src/csr/csrNeighborRoam.c
@@ -2042,7 +2042,7 @@ csrNeighborRoamProcessScanResults(tpAniSirGlobal pMac,
VOS_TRACE (VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_DEBUG,
FL("Scan result: BSSID "MAC_ADDRESS_STR" (Rssi %ld, Ch:%d)"),
MAC_ADDR_ARRAY(pScanResult->BssDescriptor.bssId),
- abs(pScanResult->BssDescriptor.rssi),
+ (long int)abs(pScanResult->BssDescriptor.rssi),
pScanResult->BssDescriptor.channelId);
#endif
if ((VOS_TRUE == vos_mem_compare(pScanResult->BssDescriptor.bssId,