linux/drivers/net/wireless/intel/iwlwifi/mvm
Arnd Bergmann 688cd8bd2c iwlwifi: fix 64-bit division
do_div() expects unsigned operands and otherwise triggers a warning like:

drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c:465:2: error: comparison of distinct pointer types ('typeof ((rtt_avg)) *' (aka 'long long *') and 'uint64_t *' (aka 'unsigned long long *')) [-Werror,-Wcompare-distinct-pointer-types]
        do_div(rtt_avg, 6666);
        ^~~~~~~~~~~~~~~~~~~~~
include/asm-generic/div64.h:222:28: note: expanded from macro 'do_div'
        (void)(((typeof((n)) *)0) == ((uint64_t *)0));  \
               ~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~
1 error generated.

Change the do_div() to the simpler div_s64() that can handle
negative inputs correctly.

Fixes: 937b10c0de ("iwlwifi: mvm: add debug prints for FTM")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-03-07 19:15:06 +02:00
..
binding.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
coex.c iwlwifi: mvm: simplify some return conditions 2019-02-04 12:27:18 +02:00
constants.h iwlwifi: mvm: support non-transmitting AP 2019-02-20 20:47:57 +02:00
d3.c iwlwifi: receive umac and lmac error table addresses from TLVs 2019-02-14 11:29:45 +02:00
debugfs-vif.c iwlwifi: mvm: disable completely low latency mode with debugfs 2019-01-29 16:10:32 +02:00
debugfs.c iwlwifi: mvm: add read debugfs for he_sniffer_params 2019-02-20 20:47:57 +02:00
debugfs.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
ftm-initiator.c iwlwifi: fix 64-bit division 2019-03-07 19:15:06 +02:00
ftm-responder.c iwlwifi: mvm: support FTM responder 2019-02-14 11:29:43 +02:00
fw-api.h iwlwifi: mvm: add location APIs 2019-01-29 16:10:31 +02:00
fw.c iwlwifi: fix false-positive maybe-uninitialized warning 2019-02-20 20:47:54 +02:00
led.c iwlwifi: mvm: add fall through comments where needed 2019-02-04 12:27:20 +02:00
mac80211.c wireless-drivers-next patches for 5.1 2019-02-22 12:56:24 -08:00
mac-ctxt.c iwlwifi: mvm: support non-transmitting AP 2019-02-20 20:47:57 +02:00
Makefile iwlwifi: mvm: support FTM initiator 2019-02-14 11:29:43 +02:00
mvm.h iwlwifi: mvm: remove IWL_MVM_INIT_STATUS_REG_HW_INIT_COMPLETE 2019-02-20 20:47:57 +02:00
nvm.c iwlwifi: mvm: save and export regdb blob from the NVM 2019-01-29 16:10:30 +02:00
offloading.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
ops.c iwlwifi: mvm: remove IWL_MVM_INIT_STATUS_REG_HW_INIT_COMPLETE 2019-02-20 20:47:57 +02:00
phy-ctxt.c iwlwifi: mvm: add fall through comments where needed 2019-02-04 12:27:20 +02:00
power.c iwlwifi: mvm: add support for 32kHz external clock indication 2019-02-14 11:29:47 +02:00
quota.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
rs-fw.c iwlwifi: mvm: support mac80211 AMSDU 2019-01-25 20:57:20 +02:00
rs.c iwlwifi: mvm: implement VHT extended NSS support in rs.c 2019-02-20 20:47:59 +02:00
rs.h iwlwifi: mvm: always init rs_fw with 20MHz bandwidth rates 2018-08-31 11:38:38 +03:00
rx.c iwlwifi: mvm: add fall through comments where needed 2019-02-04 12:27:20 +02:00
rxmq.c iwlwifi: mvm: fix the spatial reuse parsing for HE_TRIG PPDUs 2019-02-14 11:29:51 +02:00
scan.c iwiwifi: mvm: Fix FW scan concurrency support assumptions 2019-02-14 11:29:49 +02:00
sf.c iwlwifi: mvm: make num_active_macs unsigned 2019-01-25 20:57:21 +02:00
sta.c iwlwifi: introduce device family AX210 2019-02-14 11:29:45 +02:00
sta.h iwlwifi: mvm: fix AP mode in WEP 2019-02-04 12:27:20 +02:00
tdls.c iwlwifi: mvm: Change FW channel info API 2019-01-29 16:10:32 +02:00
testmode.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
time-event.c iwlwifi: mvm: Fix possible NULL pointer dereference 2019-02-14 11:29:46 +02:00
time-event.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
tt.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
tx.c iwlwifi: mvm: add some debug data to TX path 2019-02-20 20:47:59 +02:00
utils.c iwlwifi: receive umac and lmac error table addresses from TLVs 2019-02-14 11:29:45 +02:00