Re: [PATCH 3/5] tc: fix compiler warnings in ip6 pedit

2020-11-30 Thread Petr Machata
Stephen Hemminger writes: > Gcc-10 complains about referencing a zero size array. > This occurs because the array of keys is actually in the following > structure which is part of the overall selector. > > The original code was safe, but better to just use the key > array directly. > > Fixes: 2

[PATCH 3/5] tc: fix compiler warnings in ip6 pedit

2020-11-29 Thread Stephen Hemminger
Gcc-10 complains about referencing a zero size array. This occurs because the array of keys is actually in the following structure which is part of the overall selector. The original code was safe, but better to just use the key array directly. Fixes: 2d9a8dc439ee ("tc: p_ip6: Support pedit of IP