1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/intel/iwlwifi/mvm
Nathan Chancellor 4ccdcc8ffd iwlwifi: mvm: Use div_s64 instead of do_div in iwl_mvm_ftm_rtt_smoothing()
When building ARCH=arm allmodconfig:

drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c: In function ‘iwl_mvm_ftm_rtt_smoothing’:
./include/asm-generic/div64.h:222:35: error: comparison of distinct pointer types lacks a cast [-Werror]
  222 |         (void)(((typeof((n)) *)0) == ((uint64_t *)0));  \
      |                                   ^~
drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c:1070:9: note: in expansion of macro ‘do_div’
 1070 |         do_div(rtt_avg, 100);
      |         ^~~~~~

do_div() has to be used with an unsigned 64-bit integer dividend but
rtt_avg is a signed 64-bit integer.

div_s64() expects a signed 64-bit integer dividend and signed 32-bit
divisor, which fits this scenario, so use that function here to fix the
warning.

Fixes: 8b0f92549f ("iwlwifi: mvm: fix 32-bit build in FTM")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20211227191757.2354329-1-nathan@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-01-09 16:25:53 -08:00
..
binding.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
coex.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
constants.h iwlwifi: mvm: change old-SN drop threshold 2021-12-21 12:35:06 +02:00
d3.c iwlwifi: mvm: d3: support v12 wowlan status 2021-12-07 20:06:35 +02:00
debugfs-vif.c iwlwifi: mvm: pass the clock type to iwl_mvm_get_sync_time() 2021-06-22 15:11:09 +03:00
debugfs.c iwlwifi: mvm: add dbg_time_point to debugfs 2021-12-20 20:41:30 +02:00
debugfs.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
ftm-initiator.c iwlwifi: mvm: Use div_s64 instead of do_div in iwl_mvm_ftm_rtt_smoothing() 2022-01-09 16:25:53 -08:00
ftm-responder.c iwlwifi: mvm: add support for 160Mhz in ranging measurements 2021-10-22 10:48:58 +03:00
fw-api.h iwlwifi: mvm/api: define system control command 2021-12-07 20:06:45 +02:00
fw.c iwlwifi: mvm: remove card state notification code 2021-12-21 12:38:16 +02:00
led.c iwlwifi: mvm: Fix fall-through warnings for Clang 2020-12-11 20:20:24 +02:00
mac-ctxt.c iwlwifi: rename CHANNEL_SWITCH_NOA_NOTIF to CHANNEL_SWITCH_START_NOTIF 2021-10-28 12:04:12 +03:00
mac80211.c wireless-drivers-next patches for v5.17 2021-12-23 09:12:37 -08:00
Makefile iwlwifi: mvm: add vendor commands needed for iwlmei 2021-11-26 18:31:48 +02:00
mvm.h iwlwifi: mvm: remove card state notification code 2021-12-21 12:38:16 +02:00
nvm.c iwlwifi: mvm: fix WGDS table print in iwl_mvm_chub_update_mcc() 2021-10-28 12:04:11 +03:00
offloading.c iwlwifi: mvm: introduce iwl_proto_offload_cmd_v4 2021-06-22 16:57:56 +03:00
ops.c wireless-drivers-next patches for v5.17 2021-12-23 09:12:37 -08:00
phy-ctxt.c iwlwifi: mvm: add support for PHY context command v4 2021-12-07 20:06:36 +02:00
power.c iwlwifi: mvm: set inactivity timeouts also for PS-poll 2021-10-22 10:49:04 +03:00
quota.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
rfi.c iwlwifi: mvm: rfi: update rfi table 2021-12-21 12:35:05 +02:00
rs-fw.c iwlwifi: rs: add support for TLC config command ver 4 2021-12-21 12:35:05 +02:00
rs.c iwlwifi: mvm: Support new TX_RSP and COMPRESSED_BA_RES versions 2021-10-22 10:49:02 +03:00
rs.h iwlwifi: mvm: Support version 3 of tlc_update_notif. 2021-10-22 10:49:00 +03:00
rx.c iwlwifi: mvm: add support for statistics update version 15 2021-12-07 20:06:40 +02:00
rxmq.c iwlwifi: mvm: drop too short packets silently 2021-12-21 12:38:16 +02:00
scan.c iwlwifi: mvm: correctly set schedule scan profiles 2021-12-21 12:35:07 +02:00
sf.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
sta.c iwlwifi: mvm: fix delBA vs. NSSN queue sync race 2021-12-07 20:04:56 +02:00
sta.h iwlwifi: integrate with iwlmei 2021-11-26 18:31:48 +02:00
tdls.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +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 AUX ROC removal 2021-12-21 12:38:15 +02:00
time-event.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
tt.c iwlwifi: mvm: tt: Replace thermal_notify_framework 2021-04-22 13:11:35 +02:00
tx.c iwlwifi: mvm: support Bz TX checksum offload 2021-12-21 12:38:15 +02:00
utils.c iwlwifi: mvm: add support for statistics update version 15 2021-12-07 20:06:40 +02:00
vendor-cmd.c codel: remove unnecessary pkt_sched.h include 2021-12-22 15:03:51 -08:00