Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1279770rwl; Wed, 29 Mar 2023 15:34:43 -0700 (PDT) X-Google-Smtp-Source: AKy350YiVGnbTbcupozuhj7bM7RJ8n+xWCuc/yzwQyymFSnNV26PJfBBiGk6UgUt0wFYCjrRitL0 X-Received: by 2002:aa7:96b1:0:b0:628:cd1:fbbb with SMTP id g17-20020aa796b1000000b006280cd1fbbbmr15844606pfk.27.1680129282829; Wed, 29 Mar 2023 15:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680129282; cv=none; d=google.com; s=arc-20160816; b=YxMJ+0IKys/Rg1przwQRnb6ch+sddH/E5n8db6FJWG2SiuFbBMT0XHEIaIiP456PBt YkbVyGBFBvbCG0mMD340HVRCN9aR72JUsUfixjT/EsKHlctsniakeBDOvqKpLlxZJ8wO VIMGxPhgzRwQ+Tz8Qcbxr4EzbTYUQ2iBv8zsSlzJ2BZcjQa/QdoPPorTpBKFJ9OCzqnO +PWeVaR+HXuuTlRuxR2zxzjPKQbXmJEnCxJSCLwcgrKDU1WvqGX9QeXYDkbs6Ei6/lwU G1su1XqnVux2GG+9nGLz7fASrPqZtgZ9yhiDbonE84Pw+0tdYm947RD43QBIiN6WVZ3p Q4qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=9Q3mKz479x+QcEqaT8Yr/iDdiAGyQBANV9TrA8gf4ck=; b=0RQZwn+9lpY4C2ha0//NkkEqv5COM+aW5DJXfiRc1y9zc1+7FFcbiFG7cGz76FFSJp d7fW/RMW7d8+gLuS4Fv3YVBWHICFPlf9Cf4v+BiuwWO1E9AB5BmcSPaTmPkukF/xO8si J5bA8+AHBoEXWy57ecyjimQpFVdHkllz9SCEspghJZPDu0XiYwqKR8oS+LF8wBAqpeNH rPomj0r6h/z/HtNIM8+eZH5fAzf3p2l47wzVfywKn24NZtNPixw7RRPnkgdXCjtXs2LB RUbLdmeS4WNR8nGZCYYLYgxDsQPllBFjAZAuT6+K7NhT38+Ifz/vVqMo5wKPBiyW8kUu YgOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=brLRzfD+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i71-20020a63874a000000b004fc4c511c57si34183500pge.307.2023.03.29.15.34.29; Wed, 29 Mar 2023 15:34:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=brLRzfD+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229602AbjC2Wcg (ORCPT + 99 others); Wed, 29 Mar 2023 18:32:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbjC2Wcf (ORCPT ); Wed, 29 Mar 2023 18:32:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F4061FFB; Wed, 29 Mar 2023 15:32:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 057D8B82340; Wed, 29 Mar 2023 22:32:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAD8CC433EF; Wed, 29 Mar 2023 22:32:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680129151; bh=rzrOozTmrwuRtHt2xjwHRL8g41kAwGeO5CPWDPvbeTk=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=brLRzfD+8TsFypnXecusp3sgk3xfoy6LxpBOoQ1Ii3XwNKZVZc29NwfyZO9sUhzqy c9ciol+mZO8f02tEZ9MtDx5IY1IIu9rkqqoV9D+Zy6g4xaX4Ik59g8mf82mFUA67PN N9SnHOQ5sYDB6JSGF/I9QGhZOqEfrNQTrzvL5DfgxvJz08+Ao4rF4iZR4LMuphfflB xO0TxfCPGVSoNDagtpL7cETOd6TqXH8h5+80rO/isSNt8unkWZAcmU1omCfldqt3UB CpKUiCnaZTu9WwOzyC2t1hdhsD/46fxqmVVzU697+4ka6Jd0yP5YwepTPlIHjzq5iQ FVxNhGlpuOn0w== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230227085914.2560984-1-arnd@kernel.org> References: <20230227085914.2560984-1-arnd@kernel.org> Subject: Re: [PATCH] clk: tegra20: fix gcc-7 constant overflow warning From: Stephen Boyd Cc: Arnd Bergmann , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= , Miaoqian Lin , linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org To: Arnd Bergmann , Jonathan Hunter , Michael Turquette , Peter De Schrijver , Prashant Gaikwad , Thierry Reding Date: Wed, 29 Mar 2023 15:32:29 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Arnd Bergmann (2023-02-27 00:59:10) > From: Arnd Bergmann >=20 > Older gcc versions get confused by comparing a u32 value to a negative > constant in a switch()/case block: >=20 > drivers/clk/tegra/clk-tegra20.c: In function 'tegra20_clk_measure_input_f= req': > drivers/clk/tegra/clk-tegra20.c:581:2: error: case label does not reduce = to an integer constant > case OSC_CTRL_OSC_FREQ_12MHZ: > ^~~~ > drivers/clk/tegra/clk-tegra20.c:593:2: error: case label does not reduce = to an integer constant > case OSC_CTRL_OSC_FREQ_26MHZ: >=20 > Make the constants unsigned instead. >=20 > Signed-off-by: Arnd Bergmann > --- Applied to clk-next