tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5453a3df2a5eb49bc24615d4cf0d66b2aae05e5f commit: 937b10c0de68c56512fb8cd484af3c0b356fc09e iwlwifi: mvm: add debug prints for FTM date: 4 weeks ago config: mips-allmodconfig (attached as .config) compiler: mips-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 937b10c0de68c56512fb8cd484af3c0b356fc09e # save the attached .config to linux build tree GCC_VERSION=7.2.0 make.cross ARCH=mips
All warnings (new ones prefixed by >>): In file included from arch/mips/include/asm/div64.h:12:0, from include/linux/kernel.h:207, from include/linux/skbuff.h:17, from include/linux/if_ether.h:23, from include/linux/etherdevice.h:25, from drivers/net/wireless//intel/iwlwifi/mvm/ftm-initiator.c:62: drivers/net/wireless//intel/iwlwifi/mvm/ftm-initiator.c: In function 'iwl_mvm_debug_range_resp': include/asm-generic/div64.h:222:28: warning: comparison of distinct pointer types lacks a cast (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \ ^ >> drivers/net/wireless//intel/iwlwifi/mvm/ftm-initiator.c:465:2: note: in >> expansion of macro 'do_div' do_div(rtt_avg, 6666); ^~~~~~ vim +/do_div +465 drivers/net/wireless//intel/iwlwifi/mvm/ftm-initiator.c 459 460 static void iwl_mvm_debug_range_resp(struct iwl_mvm *mvm, u8 index, 461 struct cfg80211_pmsr_result *res) 462 { 463 s64 rtt_avg = res->ftm.rtt_avg * 100; 464 > 465 do_div(rtt_avg, 6666); 466 467 IWL_DEBUG_INFO(mvm, "entry %d\n", index); 468 IWL_DEBUG_INFO(mvm, "\tstatus: %d\n", res->status); 469 IWL_DEBUG_INFO(mvm, "\tBSSID: %pM\n", res->addr); 470 IWL_DEBUG_INFO(mvm, "\thost time: %llu\n", res->host_time); 471 IWL_DEBUG_INFO(mvm, "\tburst index: %hhu\n", res->ftm.burst_index); 472 IWL_DEBUG_INFO(mvm, "\tsuccess num: %u\n", res->ftm.num_ftmr_successes); 473 IWL_DEBUG_INFO(mvm, "\trssi: %d\n", res->ftm.rssi_avg); 474 IWL_DEBUG_INFO(mvm, "\trssi spread: %hhu\n", res->ftm.rssi_spread); 475 IWL_DEBUG_INFO(mvm, "\trtt: %lld\n", res->ftm.rtt_avg); 476 IWL_DEBUG_INFO(mvm, "\trtt var: %llu\n", res->ftm.rtt_variance); 477 IWL_DEBUG_INFO(mvm, "\trtt spread: %llu\n", res->ftm.rtt_spread); 478 IWL_DEBUG_INFO(mvm, "\tdistance: %lld\n", rtt_avg); 479 } 480 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip