[dpdk-dev] [PATCH v2 1/4] add missing static keyword to globals

Thomas Monjalon thomas at monjalon.net
Sun Oct 28 12:04:23 CET 2018


05/10/2018 17:55, Andrew Rybchenko:
> On 10/5/18 7:26 PM, Ferruh Yigit wrote:
> > --- a/drivers/net/sfc/sfc_rx.c
> > +++ b/drivers/net/sfc/sfc_rx.c
> > -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

Yes, please add const to such structures in a v3.





More information about the dev mailing list