From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3ACFBC4332F for ; Thu, 20 Oct 2022 15:15:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229940AbiJTPPn (ORCPT ); Thu, 20 Oct 2022 11:15:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbiJTPPl (ORCPT ); Thu, 20 Oct 2022 11:15:41 -0400 Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 350603B987 for ; Thu, 20 Oct 2022 08:15:27 -0700 (PDT) Received: (wp-smtpd smtp.wp.pl 4459 invoked from network); 20 Oct 2022 17:15:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1666278923; bh=fEnzvgcsJeNbZprUh21cKq/9USyvXftXBPCl1AVe/Jk=; h=From:To:Cc:Subject; b=gHxB2v0TC5KTHeARoHbdR1J9nsxImZ+simA4h1p7+eLoRpQKxKuoawwD4XEN08PCR DM2JjkyX4mucggCkalp1oQJeaak7lwkNhpqQ7m4P4ZeWTFcLgJHoq100/OToqXp+XG X74WiqsM0cEA+P2PFXiAum2TuQSLfjz93fPY4BPg= Received: from 89-64-7-202.dynamic.chello.pl (HELO localhost) (stf_xl@wp.pl@[89.64.7.202]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 20 Oct 2022 17:15:23 +0200 Date: Thu, 20 Oct 2022 17:15:22 +0200 From: Stanislaw Gruszka To: "Colin King (gmail)" Cc: Tomislav =?utf-8?Q?Po=C5=BEega?= , Helmut Schaa , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "linux-wireless@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: wifi: rt2x00: add TX LOFT calibration for MT7620 Message-ID: <20221020151522.GA99236@wp.pl> References: <01410678-ab7d-1733-8d5a-e06d1a4b6c9e@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <01410678-ab7d-1733-8d5a-e06d1a4b6c9e@gmail.com> X-WP-MailID: 78bdfce7f51fbd7d7bf58efa97131f14 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000000 [0SM0] Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Oct 20, 2022 at 02:45:22PM +0100, Colin King (gmail) wrote: > I noticed a signed / unsigned comparison warning when building linux-next > with clang. I believe it was introduced in the following commit: > > commit dab902fe1d29dc0fa1dccc8d13dc89ffbf633881 > Author: Tomislav Požega > Date: Sat Sep 17 21:28:43 2022 +0100 > > wifi: rt2x00: add TX LOFT calibration for MT7620 > > > The warning is as follows: > > drivers/net/wireless/ralink/rt2x00/rt2800lib.c:9472:15: warning: result of > comparison of constant -7 with expression of type 'char' is always false > [-Wtautological-constant-out-of-range-compare] > gerr = (gerr < -0x07) ? -0x07 : (gerr > 0x05) ? 0x05 : gerr; This was very currently addressed: https://lore.kernel.org/linux-wireless/20221019155541.3410813-1-Jason@zx2c4.com/ Regards Stanislaw