Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp908185pxa; Wed, 19 Aug 2020 19:25:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4EldnB36RXX5rg50mVtfBIYzu3Rhl/wYcgMWfcMQ+PkFkqj+aolVAkNLR+4Pz6tko2LmY X-Received: by 2002:a17:906:4dd4:: with SMTP id f20mr1292001ejw.170.1597890305017; Wed, 19 Aug 2020 19:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597890305; cv=none; d=google.com; s=arc-20160816; b=APsQzvHeqtJW9ZYS3gtSqzzgP9TSh5E03pJqvwYW2X9ck9bCdOMNXWYV8Noq0cNFp3 i+Y5E937913Oqu5Hqd334nn+WDE55aSt9ft3yQOmUO1n1zdsW4DVA0VhCNtwI6ue+n3t fSK9eqdexPW4Dlyqi4cDeKjAg+ssZU+TwNZi2i/QXBkx0OlzhkPxPyw0bQcWvj7OSURO eN2Yd9fEScjCnbRki9SqzSMu9XOf48ZJGD14VkXJ8t4cCr3kAvxny0nRS4HXN+ETE2UK cNRK8PsM07HKMzPbVJZ6L0F+wzs+fPff4kegHCFEk32iB08j3TY4+8MqbTeLhQL7KE5Z JsPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=OhBPD8BgUmCHgdQAmHAfRjxOvFgr6o95h7qO+Alp+Ao=; b=n8sTDOAh28NHBzcK74HqEQxhqVo/HHlEFARL5vzrhNdwMRTJ+nWlbwURRZC5AdDQMp DS+OD3JFfieQGXdiITUnSlbA2VSZTEJVh6sLXV2kBAt7elIQ726kMApD8D/EaU772EN5 2MdVuJsqyJ0R8BO+QWx3AzjT8D+CVZp7U/JqG9exT1amv/BP52U+gIjJae7iuRIP1i41 vI/nXij7jB1OM962xpq2LNgr7NMsxJSQeqeRdoU0HkKimujakUGj35BGiQKWGIwnGIiK sUN/JFMc7TT+eBN+NQJJRVgBZDTo2kP4XF4sj3kGITzdH2AOB596Cnd6lIBS4EvL5jVF GLvw== 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 o21si336294ejc.533.2020.08.19.19.24.41; Wed, 19 Aug 2020 19:25:05 -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 S1726795AbgHTCYE (ORCPT + 99 others); Wed, 19 Aug 2020 22:24:04 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:9789 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726578AbgHTCYE (ORCPT ); Wed, 19 Aug 2020 22:24:04 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id EA9B2982E81175518C99; Thu, 20 Aug 2020 10:24:00 +0800 (CST) Received: from [127.0.0.1] (10.174.179.108) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Thu, 20 Aug 2020 10:23:57 +0800 Subject: Re: [PATCH v2] net: stmmac: Fix signedness bug in stmmac_probe_config_dt() To: Andrew Lunn References: <20200818143952.50752-1-yuehaibing@huawei.com> <20200818151500.51548-1-yuehaibing@huawei.com> <20200818170448.GH2330298@lunn.ch> CC: , , , , , , , , , , From: Yuehaibing Message-ID: <07d81dd7-f59a-b7ca-64e9-ac1ab9aa4758@huawei.com> Date: Thu, 20 Aug 2020 10:23:56 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20200818170448.GH2330298@lunn.ch> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.108] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/8/19 1:04, Andrew Lunn wrote: > 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. > Thanks, will rework following this. > Andrew > > . >