Re: [PATCH] iwlwifi: fix 64-bit division

2019-03-07 Thread Kalle Valo
Arnd Bergmann wrote: > 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

Re: [PATCH] iwlwifi: fix 64-bit division

2019-03-05 Thread Luca Coelho
On Tue, 2019-03-05 at 13:11 +0200, Kalle Valo wrote: > Arnd Bergmann writes: > > > 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

Re: [PATCH] iwlwifi: fix 64-bit division

2019-03-05 Thread Kalle Valo
Arnd Bergmann writes: > 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

Re: [PATCH] iwlwifi: fix 64-bit division

2019-03-05 Thread Luciano Coelho
On Tue, 2019-03-05 at 09:37 +0100, Arnd Bergmann wrote: > On Tue, Mar 5, 2019 at 7:44 AM Luciano Coelho < > luciano.coe...@intel.com> wrote: > > On Mon, 2019-03-04 at 21:38 +0100, Arnd Bergmann wrote: > > This was already fixed with this patch: > > > > https://patchwork.kernel.org/patch/10823267/

Re: [PATCH] iwlwifi: fix 64-bit division

2019-03-05 Thread Arnd Bergmann
On Tue, Mar 5, 2019 at 7:44 AM Luciano Coelho wrote: > On Mon, 2019-03-04 at 21:38 +0100, Arnd Bergmann wrote: > This was already fixed with this patch: > > https://patchwork.kernel.org/patch/10823267/ > > ...but it hasn't reached the mainline yet. > > I'm planning to send it to the v5.1-rc

Re: [PATCH] iwlwifi: fix 64-bit division

2019-03-04 Thread Luciano Coelho
Hi Arnd, On Mon, 2019-03-04 at 21:38 +0100, Arnd Bergmann wrote: > 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

[PATCH] iwlwifi: fix 64-bit division

2019-03-04 Thread Arnd Bergmann
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 *'))