linux/drivers/net/wireless/intel/iwlwifi
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
..
cfg iwlwifi: add new cards for 22000 and killer series and change the market name 2019-02-20 20:48:01 +02:00
dvm iwlwifi: dvm: no need to check return value of debugfs_create functions 2019-02-20 20:47:56 +02:00
fw wireless-drivers-next patches for 5.1 2019-02-22 12:56:24 -08:00
mvm iwlwifi: fix 64-bit division 2019-03-07 19:15:06 +02:00
pcie iwlwifi: add new cards for 22000 and killer series and change the market name 2019-02-20 20:48:01 +02:00
Kconfig iwlwifi: make IWLWIFI depend on CFG80211 2019-01-16 20:09:05 +02:00
Makefile iwlwifi: trans: parse and store debug ini TLVs 2018-11-23 13:01:06 +02:00
iwl-agn-hw.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
iwl-config.h iwlwifi: add new cards for 22000 and killer series and change the market name 2019-02-20 20:48:01 +02:00
iwl-context-info-gen3.h iwlwifi: update gen3 interrupts - sw error and image response 2018-07-26 13:16:16 +03:00
iwl-context-info.h iwlwifi: pcie: set RB size according to user settings 2018-09-28 08:57:27 +03:00
iwl-csr.h iwlwifi: introduce device family AX210 2019-02-14 11:29:45 +02:00
iwl-dbg-tlv.c iwlwifi: dbg_ini: remove redundant dram buffer allocation 2019-02-04 12:28:06 +02:00
iwl-dbg-tlv.h iwlwifi: trans: support loading ini TLVs from external file 2018-11-23 13:01:06 +02:00
iwl-debug.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
iwl-debug.h iwlwifi: pcie: add TPT oriented prints 2019-02-14 11:29:42 +02:00
iwl-devtrace-data.h iwlwifi: trace: change trace to trace one TB at a time 2018-10-08 10:35:27 +03:00
iwl-devtrace-io.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
iwl-devtrace-iwlwifi.h iwlwifi: remove ucode error tracepoint 2018-09-28 08:57:22 +03:00
iwl-devtrace-msg.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
iwl-devtrace-ucode.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
iwl-devtrace.c iwlwifi: remove ucode error tracepoint 2018-09-28 08:57:22 +03:00
iwl-devtrace.h iwlwifi: add 80211 hdr offset to trace data 2018-08-31 11:38:29 +03:00
iwl-drv.c iwlwifi: iwl-drv: no need to check return value of debugfs_create functions 2019-02-20 20:47:56 +02:00
iwl-drv.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
iwl-eeprom-parse.c iwlwifi: eeprom-parse: use struct_size() in kzalloc() 2019-02-20 20:47:54 +02:00
iwl-eeprom-parse.h iwlwifi: move iwl_nvm_check_version() into dvm 2018-12-14 13:04:46 +02:00
iwl-eeprom-read.c iwlwifi: refactor NIC init sequence 2019-02-04 12:28:09 +02:00
iwl-eeprom-read.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
iwl-fh.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
iwl-io.c iwlwifi: add force NMI for AX210 devices 2019-02-14 11:29:48 +02:00
iwl-io.h iwlwifi: align to new periphery address space for AX210 family 2019-02-14 11:29:48 +02:00
iwl-modparams.h iwlwifi: move iwl_enable_{rx,tx}_ampdu to iwl-modparams.h 2019-01-29 16:10:30 +02:00
iwl-nvm-parse.c wireless-drivers-next patches for 5.1 2019-02-22 12:56:24 -08:00
iwl-nvm-parse.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
iwl-op-mode.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
iwl-phy-db.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
iwl-phy-db.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
iwl-prph.h iwlwifi: add force NMI for AX210 devices 2019-02-14 11:29:48 +02:00
iwl-scd.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
iwl-trans.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
iwl-trans.h iwlwifi: receive umac and lmac error table addresses from TLVs 2019-02-14 11:29:45 +02:00