From ba7586ca465a4d4e06680a760d7eb4afb33947bf Mon Sep 17 00:00:00 2001 From: Zhaoyang Liu Date: Mon, 10 Apr 2017 17:28:08 +0800 Subject: 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 --- CORE/SERVICES/DFS/src/dfs_phyerr_tlv.c | 2 +- CORE/SME/src/csr/csrNeighborRoam.c | 2 +- 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, -- cgit v1.2.3