From: Andrew Rybchenko Subject: Re: [PATCH v2 1/4] add missing static keyword to globals Date: Fri, 5 Oct 2018 18:55:56 +0300 Message-ID: References: <20181004034047.26824-1-ferruh.yigit@intel.com> <20181005162612.31906-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: To: Ferruh Yigit , Reshma Pattan , Hemant Agrawal , "Shreyansh Jain" , Ashish Gupta , "Fiona Trahe" , Pablo de Lara , Akhil Goyal , "Declan Doherty" , Fan Zhang , Rahul Lakkireddy , Gaetan Rivet , Qi Zhang , Xiao Wang , Beilei Xing , Wenzhuo Lu , Konstantin Ananyev , Rasesh Mody , Harish Patil , Shahed Shaikh , Jasvinder Singh , Cristian Dumitrescu Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id 3FDBE1B3A8 for ; Fri, 5 Oct 2018 17:56:55 +0200 (CEST) In-Reply-To: <20181005162612.31906-1-ferruh.yigit@intel.com> Content-Language: en-GB List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/5/18 7:26 PM, Ferruh Yigit wrote: > Some global variables can indeed be static, add static keyword to them. > > Signed-off-by: Ferruh Yigit > --- <...> > diff --git a/drivers/net/sfc/sfc_rx.c b/drivers/net/sfc/sfc_rx.c > index 000cd0b20..e71ddd001 100644 > --- a/drivers/net/sfc/sfc_rx.c > +++ b/drivers/net/sfc/sfc_rx.c > @@ -1126,7 +1126,7 @@ sfc_rx_qfini(struct sfc_adapter *sa, unsigned int sw_index) > /* > * Mapping between RTE RSS hash functions and their EFX counterparts. > */ > -struct sfc_rss_hf_rte_to_efx sfc_rss_hf_map[] = { > +static struct sfc_rss_hf_rte_to_efx sfc_rss_hf_map[] = { I'd prefer "static const" in fact > { ETH_RSS_NONFRAG_IPV4_TCP, > EFX_RX_HASH(IPV4_TCP, 4TUPLE) }, > { ETH_RSS_NONFRAG_IPV4_UDP, <...> Acked-by: Andrew Rybchenko