Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3207998imb; Tue, 5 Mar 2019 03:47:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxLoIPt+uuWP/4gsy6IloCq1ohL1KabI1WjusOPUqlIwST7VCFvevex6vgLANTy6wYNvlBv X-Received: by 2002:a17:902:8b8b:: with SMTP id ay11mr815446plb.162.1551786433608; Tue, 05 Mar 2019 03:47:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551786433; cv=none; d=google.com; s=arc-20160816; b=cD/xqVTLWajPTbCWJE3KzGTgohg3bnOg4PPj2hiqP+hFbNneGfkHaRnzGB+duEB9Jn dTn/A9idcJ/U/0ItIdZkX47AV4aUp025EUJg9EDW7HGLRAB2Wo/dKzZJCoTJe9So9JTp pgHZ2GBtZX6iZQW3jBYANoXjuVHO3w0Oy6Sy6TeG1XR65gI6xLYgUuThirE67Fh5rwhf ZDgXDuDzjg3sUR6K0frVsptSb2Icbo69lePC4NqhSDVDdLEqkOLZ8GZLheM/TWXCUcuQ BxtvmA5Dv94iFVYuZPLoNXkBLKHU7+ZVEWj7UqEUZ5AvKPhpr+HczpLoNRraj17roWr5 Axuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:user-agent:references:in-reply-to:date:cc:to:from :message-id; bh=WYa/r2va2nbqoF/J12hVDrT8yH6yRa/zc+JTq7o5qug=; b=KID5N+PtTdbwx15mWGWNAB60vjzP7r3BHvd6pHmy+dTCFi9srkZ9gfy0nNYUb0VYne eA93ouaEgowCBIvrLUKIoawUpEYGpxoC9CHmV0IpGusRfw6qPE+V5wqnkmZwAK5+VOh4 IVA0kNQkmOqdUaWeC7W6TK6j+o/S/CE6vKO3ozioThAfEEfOdpmDu2peGuxa9pwSsUDp yqBHtUWb2BToaTdmugJYp3ZUW/QCKoT4svd4hJAR1y+03aUhL5ax1IKxxqXKKV0ijJet TpIyT/jdxAkN9U3GxCXWdlusAYMnkARJ0k5GLrBlqqZF+hKSqXIUOck11gYVDFlDkn98 uQmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8si7938992plv.137.2019.03.05.03.46.58; Tue, 05 Mar 2019 03:47:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727755AbfCELqg (ORCPT + 99 others); Tue, 5 Mar 2019 06:46:36 -0500 Received: from paleale.coelho.fi ([176.9.41.70]:40552 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726150AbfCELqg (ORCPT ); Tue, 5 Mar 2019 06:46:36 -0500 Received: from 91-156-6-193.elisa-laajakaista.fi ([91.156.6.193] helo=redipa) by farmhouse.coelho.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1h18Wi-00050B-Tw; Tue, 05 Mar 2019 13:46:29 +0200 Message-ID: <2213e2f0199d8165efcbb9a9ee14b99b2e0f5fc5.camel@coelho.fi> From: Luca Coelho To: Kalle Valo , Arnd Bergmann Cc: Johannes Berg , Emmanuel Grumbach , Intel Linux Wireless , "David S. Miller" , Avraham Stern , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 05 Mar 2019 13:46:27 +0200 In-Reply-To: <87a7i9fuef.fsf@kamboji.qca.qualcomm.com> References: <20190304203924.2111146-1-arnd@arndb.de> <87a7i9fuef.fsf@kamboji.qca.qualcomm.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on farmhouse.coelho.fi X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_IP,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH] iwlwifi: fix 64-bit division Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ((rtt_avg)) *' > > (aka 'long long *') and 'uint64_t *' (aka 'unsigned long long *')) > > [-Werror,-Wcompare-distinct-pointer-types] > > do_div(rtt_avg, 6666); > > ^~~~~~~~~~~~~~~~~~~~~ > > include/asm-generic/div64.h:222:28: note: expanded from macro > > 'do_div' > > (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \ > > ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ > > 1 error generated. > > > > Change the do_div() to the simpler div_s64() that can handle > > negative inputs correctly. > > > > Fixes: 937b10c0de68 ("iwlwifi: mvm: add debug prints for FTM") > > Signed-off-by: Arnd Bergmann > > Luca, can I take this directly? Yeah, I guess to make things simpler, and since you're planning to send fixes to 5.1 already anyway, you can just take this one. I'll assign it to you in patchwork. Arnd, this way you'll get it earlier. ;) -- Cheers, Luca.