Re: [dpdk-dev] [RFC 0/2] gcc 10 disable stringop-overflow warning

2020-04-01 Thread Kevin Traynor
On 31/03/2020 15:53, Stephen Hemminger wrote: > On Tue, 31 Mar 2020 15:08:26 +0100 > Kevin Traynor wrote: > >> struct virtchnl_rss_key { >> u16 vsi_id; >> u16 key_len; >> u8 key[1]; /* RSS hash key, packed bytes */ >> ^ >> }; >> >> Then in iavf_conf

Re: [dpdk-dev] [RFC 0/2] gcc 10 disable stringop-overflow warning

2020-03-31 Thread Stephen Hemminger
On Tue, 31 Mar 2020 15:08:26 +0100 Kevin Traynor wrote: > struct virtchnl_rss_key { > u16 vsi_id; > u16 key_len; > u8 key[1]; /* RSS hash key, packed bytes */ > ^ > }; > > Then in iavf_configure_rss_key() > > len = sizeof(*rss_key) + vf->vf_

Re: [dpdk-dev] [RFC 0/2] gcc 10 disable stringop-overflow warning

2020-03-31 Thread Kevin Traynor
On 25/03/2020 14:18, Thomas Monjalon wrote: > 25/03/2020 15:11, Kevin Traynor: >> This is a blunt way to remove this warning. >> >> Some alternatives are: >> - disable the warning for individual components >> - components rework to statically allocate memory for parts of structs >> impacted >> >>

Re: [dpdk-dev] [RFC 0/2] gcc 10 disable stringop-overflow warning

2020-03-25 Thread Thomas Monjalon
25/03/2020 15:11, Kevin Traynor: > This is a blunt way to remove this warning. > > Some alternatives are: > - disable the warning for individual components > - components rework to statically allocate memory for parts of structs > impacted > > Maybe there's some other solutions? In general, I a