On Thu, Nov 02, 2017 at 03:38:52PM +0530, Hemant Agrawal wrote:
> Compiling on ARM BE using Linaro toolchain caused following
> error/warnings.
>
> rte_lpm.c: In function ‘add_depth_big_v20’:
> rte_lpm.c:911:4: error: braces around scalar initializer [-Werror]
> { .group_idx = (uint8_t)tbl8_group_index, },
> ^
> rte_lpm.c:911:4: note: (near initialization for
> ‘new_tbl24_entry.depth’)
> rte_lpm.c:911:6:error: field name not in record or union initializer
> { .group_idx = (uint8_t)tbl8_group_index, },
> ^
> rte_lpm.c:911:6: note: (near initialization for
> ‘new_tbl24_entry.depth’)
> rte_lpm.c:914:13: error: initialized field overwritten
> [-Werror=override-init]
> .depth = 0,
>
> Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field")
> Cc: Michal Kobylinski <[email protected]>
> Cc: [email protected]
>
> Signed-off-by: Hemant Agrawal <[email protected]>
> ---
Acked-by: Bruce Richardson <[email protected]>