Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3246081pxa; Tue, 18 Aug 2020 10:06:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyARTOSBiUJ0wQzUdrb48DGsKOOPFNWfRRSkIu+SPXRgD2ZsQNIi3J9U/GauZA9oZnBV/HL X-Received: by 2002:a17:906:390c:: with SMTP id f12mr4564767eje.28.1597770419542; Tue, 18 Aug 2020 10:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597770419; cv=none; d=google.com; s=arc-20160816; b=f52sVzXuC83iZiOsNqwEG2nBWhVyzszdpWiSm7kRPyzGqnydVXMeNOd5qR8bSf50qT 0aqSJG5Xl8GMCvL8U3LJ5ehI/PYqQetmKfWA2+tdjX+luVVwpdpK16wmamS+Tm79Lhyf ud9WxiqmWj4NsRkcdL2qhyj3LLiucJ4w1fId0GLyXsi00D1ln7h6z6E9HlItPvGR5MPk X04vk/nQAfvV5Qs5rv8CQAIpmhwFVc6AjbRz80ExLikxgrlHbqKTfSSuHRff1/6P4wt+ idYDNkh5n1+Tk3+etpB3q2HPJx+LpZ10XBhRCIfBmjWwj8utSu/fVpx0icut8R4Mtl8x o71Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zCiyUXUr0NFJkQGX1005WbEPDOGQO0nIreuu2d65+ts=; b=wbQxXBrSiRUCBqxUvn4YUs41dTqLMI89ISGV35jbdALu7h5/qFhFz4onF2NBko8hIe o/v3u3xt6XK73/q0alrUyxMQV35Wp+N9+eNrDK5K3Y0E1qY49s3wFaC8jLcabcYAbhpH P0GsiDhc4Mm2LzqLfjCN3AdTWRSskxlLZDDtrnmRLbZdbTHxOKOJQgFxraPh+litG5YL zaRt0YHV/6e4i3D2M7Y5iSdWX1qima2b6TfpCFa38tGpqQWmP+C8z+N0Z3EnghD+xhQy 2H86qKFirdyQKoIa9TPjVqr4GkGSmNWbiDk2XE2uf0Phjy8tYzfYGmkbKzcKFRNzgBud szjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u21si14488636edi.143.2020.08.18.10.06.36; Tue, 18 Aug 2020 10:06:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728445AbgHRRFq (ORCPT + 99 others); Tue, 18 Aug 2020 13:05:46 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:59498 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728367AbgHRRFX (ORCPT ); Tue, 18 Aug 2020 13:05:23 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1k852W-009wPo-DE; Tue, 18 Aug 2020 19:04:48 +0200 Date: Tue, 18 Aug 2020 19:04:48 +0200 From: Andrew Lunn To: YueHaibing Cc: peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, davem@davemloft.net, kuba@kernel.org, mcoquelin.stm32@gmail.com, ajayg@nvidia.com, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: stmmac: Fix signedness bug in stmmac_probe_config_dt() Message-ID: <20200818170448.GH2330298@lunn.ch> References: <20200818143952.50752-1-yuehaibing@huawei.com> <20200818151500.51548-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200818151500.51548-1-yuehaibing@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 18, 2020 at 11:15:00PM +0800, YueHaibing wrote: > The "plat->phy_interface" variable is an enum and in this context GCC > will treat it as an unsigned int so the error handling is never > triggered. > > Fixes: b9f0b2f634c0 ("net: stmmac: platform: fix probe for ACPI devices") > Signed-off-by: YueHaibing Hi YueHaibing Please take a look at: commit 0c65b2b90d13c1deaee6449304dd367c5d4eb8ae Author: Andrew Lunn Date: Mon Nov 4 02:40:33 2019 +0100 net: of_get_phy_mode: Change API to solve int/unit warnings You probably want to follow this basic idea. Andrew