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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 644D4C433EF for ; Wed, 6 Apr 2022 13:12:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E93B883D2F; Wed, 6 Apr 2022 15:12:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="de5djMdQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3933683D48; Wed, 6 Apr 2022 15:12:45 +0200 (CEST) Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 90F9A83D2A for ; Wed, 6 Apr 2022 15:12:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=olteanv@gmail.com Received: by mail-ed1-x533.google.com with SMTP id r10so2589901eda.1 for ; Wed, 06 Apr 2022 06:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=DoHRrE0sbrFBFdqGCKEMM5yie8RgihN4WxrN52dj1Fs=; b=de5djMdQd5TTn4sGJzEQTjxZK+AARHlfIExGJOHjDBlzAqElr3+9LpmlO5gcB2LfHh lW0CP+83dxPdMwoKkSc8I5k1ISHdGXszBQ9TFdGjtjs9Rr+Qmkd7PGamKbYerpD6GjVY 2RrDjAMN/u5QNpQ/DhZo+sMBI7pO+y3oxEK4iFG6Mo2swQyU6ajQE1eI+rQXNrKpFe5M AnBTCvhaCtAx+aA6kXRyxMOCYVBgNA8NyFEXiwTxJu+fd80k3+A0FhDBXgsmTPB3FCjX qQdgP5b9CsTMYCjNIfa6Dw+Gp6Pb7JImRzldeUCQpQQ3UPTOT5EAN9dfQ/2R0b75b8QD 6evg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=DoHRrE0sbrFBFdqGCKEMM5yie8RgihN4WxrN52dj1Fs=; b=mISiOYoqg+q8EekRLu3/NMJb1OSxiyoG2kQnn+aobkXs22XBFZ2Ucox1lKPcXPQb/H GIhBhRl3Wzw6yKKWcpiXRQgdP3Ube83ALeUz5a8rTWEpzYfqS/vwb7HrO34H7+YD1ZS/ a5GPW5NalpYM+aRvqcLDVhguqGFdLWjT23/vJtKr6D+LdFjQw2waofHYyy1vMB0ftCCy 2WilDUzdkPu+VUWg5irA3Ertbr63oRPo7i8ngMGw1NKG7nJ9BApOf4RW1QfFfLODu1/y 9Ngm8Q/6RuwjnOHfABVocll/sZxs0YHklm305HqCAeBdft+pLcrE3BruFa8m5Pv2BR97 r4gg== X-Gm-Message-State: AOAM530CbNcOrhsucF4SfniJ2dfn20rslSX8Mi1LVGkn1mFwYhnriKaE cieI5AnJDiqyOuRfJQ/tfYQ= X-Google-Smtp-Source: ABdhPJy6H49igIvroHlgLZdM8tjPLx4IpQSfEug4lt+JnznYUbdV0fkTvjjKIqKTviRRKe2Dy/pgzw== X-Received: by 2002:a05:6402:26c8:b0:419:2e54:9262 with SMTP id x8-20020a05640226c800b004192e549262mr8632176edd.61.1649250758845; Wed, 06 Apr 2022 06:12:38 -0700 (PDT) Received: from skbuf ([188.26.57.45]) by smtp.gmail.com with ESMTPSA id u3-20020a17090657c300b006d01de78926sm6561087ejr.22.2022.04.06.06.12.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:12:38 -0700 (PDT) Date: Wed, 6 Apr 2022 16:12:36 +0300 From: Vladimir Oltean To: Marek =?utf-8?B?QmVow7pu?= Cc: Joe Hershberger , Ramon Fried , u-boot@lists.denx.de, Marek =?utf-8?B?QmVow7pu?= Subject: Re: [PATCH u-boot-net v3 01/14] net: mdio-uclass: fix type for phy_mode_str and phy_handle_str Message-ID: <20220406131236.ifqogmrrdy7ouuee@skbuf> References: <20220329200845.13435-1-kabel@kernel.org> <20220329200845.13435-2-kabel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220329200845.13435-2-kabel@kernel.org> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On Tue, Mar 29, 2022 at 10:08:32PM +0200, Marek Behún wrote: > From: Marek Behún > > These global variables should both have type > static const char * const > > Signed-off-by: Marek Behún > Reviewed-by: Ramon Fried > --- Reviewed-by: Vladimir Oltean > net/mdio-uclass.c | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > > diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c > index e74e34f78f..5735afe49e 100644 > --- a/net/mdio-uclass.c > +++ b/net/mdio-uclass.c > @@ -17,13 +17,14 @@ > > /* DT node properties for MAC-PHY interface */ > #define PHY_MODE_STR_CNT 2 > -static const char *phy_mode_str[PHY_MODE_STR_CNT] = { "phy-mode", > - "phy-connection-type" }; > +static const char * const phy_mode_str[PHY_MODE_STR_CNT] = { > + "phy-mode", "phy-connection-type" > +}; > /* DT node properties that reference a PHY node */ > #define PHY_HANDLE_STR_CNT 3 > -const char *phy_handle_str[PHY_HANDLE_STR_CNT] = { "phy-handle", > - "phy", > - "phy-device" }; > +static const char * const phy_handle_str[PHY_HANDLE_STR_CNT] = { > + "phy-handle", "phy", "phy-device" > +}; > > void dm_mdio_probe_devices(void) > { > -- > 2.34.1 >