mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Avraham Stern <avraham.stern@intel.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	Luca Coelho <luciano.coelho@intel.com>
Subject: drivers/net/wireless//intel/iwlwifi/mvm/ftm-initiator.c:465:2: note: in expansion of macro 'do_div'
Date: Thu, 14 Mar 2019 02:15:40 +0800	[thread overview]
Message-ID: <201903140236.l6MSlM20%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2782 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 58598 bytes --]

                 reply	other threads:[~2019-03-13 18:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201903140236.l6MSlM20%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=avraham.stern@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luciano.coelho@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®