1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/intel/iwlwifi
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
..
cfg iwlwifi: mvm: support Bz TX checksum offload 2021-12-21 12:38:15 +02:00
dvm iwlwifi: support 4-bits in MAC step value 2021-12-07 20:05:09 +02:00
fw iwlwifi: yoyo: fix issue with new DBGI_SRAM region read. 2021-12-21 12:38:16 +02:00
mei wlwifi patches for v5.17 v2 2021-12-21 20:07:09 +02:00
mvm iwlwifi: mvm: Use div_s64 instead of do_div in iwl_mvm_ftm_rtt_smoothing() 2022-01-09 16:25:53 -08:00
pcie iwlwifi: pcie: make sure prph_info is set when treating wakeup IRQ 2021-12-21 12:38:16 +02:00
queue iwlwifi: mvm: optionally suppress assert log 2021-12-07 20:06:51 +02:00
iwl-agn-hw.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-config.h iwlwifi: mvm: support Bz TX checksum offload 2021-12-21 12:38:15 +02:00
iwl-context-info-gen3.h iwlwifi: yoyo: fw debug config from context info and preset 2021-10-22 10:49:01 +03:00
iwl-context-info.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-csr.h iwlwifi: fix Bz NMI behaviour 2021-12-21 12:35:04 +02:00
iwl-dbg-tlv.c iwlwifi: yoyo: support TLV-based firmware reset 2021-12-21 12:35:06 +02:00
iwl-dbg-tlv.h iwlwifi: yoyo: fw debug config from context info and preset 2021-10-22 10:49:01 +03:00
iwl-debug.c iwlwifi: allow rate-limited error messages 2021-10-22 10:49:03 +03:00
iwl-debug.h iwlwifi: allow rate-limited error messages 2021-10-22 10:49:03 +03:00
iwl-devtrace-data.h iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
iwl-devtrace-io.h iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
iwl-devtrace-iwlwifi.h iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
iwl-devtrace-msg.h iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
iwl-devtrace-ucode.h iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
iwl-devtrace.c iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
iwl-devtrace.h iwlwifi: remove contact information 2021-10-22 10:48:59 +03:00
iwl-drv.c iwlwifi: remove module loading failure message 2021-12-21 12:35:06 +02:00
iwl-drv.h iwlwifi: mvm: retry init flow if failed 2021-11-22 20:38:17 +02:00
iwl-eeprom-parse.c iwlwifi: iwl-eeprom-parse: mostly dvm only 2021-12-21 12:35:04 +02:00
iwl-eeprom-parse.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-eeprom-read.c iwlwifi: remove redundant iwl_finish_nic_init() argument 2021-10-22 10:49:02 +03:00
iwl-eeprom-read.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-fh.h iwlwifi: do not use __unused as variable name 2021-12-21 12:35:04 +02:00
iwl-io.c iwlwifi: fix Bz NMI behaviour 2021-12-21 12:35:04 +02:00
iwl-io.h iwlwifi: remove redundant iwl_finish_nic_init() argument 2021-10-22 10:49:02 +03:00
iwl-modparams.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-nvm-parse.c This time we have: 2021-12-21 07:41:52 -08:00
iwl-nvm-parse.h iwlwifi: integrate with iwlmei 2021-11-26 18:31:48 +02:00
iwl-op-mode.h iwlwifi: prepare for synchronous error dumps 2021-08-26 23:32:21 +03:00
iwl-phy-db.c iwlwifi: iwl-phy-db: Add missing struct member description for 'trans' 2020-12-11 20:24:25 +02:00
iwl-phy-db.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-prph.h iwlwifi: Read the correct addresses when getting the crf id 2021-12-21 12:35:04 +02:00
iwl-scd.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
iwl-trans.c iwlwifi: trans/pcie: defer transport initialisation 2021-04-14 12:07:21 +03:00
iwl-trans.h iwlwifi: yoyo: support TLV-based firmware reset 2021-12-21 12:35:06 +02:00
Kconfig wireless-drivers-next patches for v5.17 2021-12-17 07:30:07 -08:00
Makefile iwlwifi: mei: add the driver to allow cooperation with CSME 2021-11-26 18:31:47 +02:00