diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-03-04 21:38:42 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-03-07 19:15:06 +0200 |
commit | 688cd8bd2c0fa9dc88e5ced55a73ddc79edf875d (patch) | |
tree | ec849e3748341c246fbe233b33461e48033fe738 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 47c2be0c9bc0181112583b15a7585c30bdb30e70 (diff) |
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: 937b10c0de68 ("iwlwifi: mvm: add debug prints for FTM")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions