[dpdk-dev] [PATCH 2/5] lpm: fix compilation on ARM BE
Hemant Agrawal
hemant.agrawal at nxp.com
Wed Dec 13 13:23:23 CET 2017
On 12/11/2017 6:11 PM, Bruce Richardson wrote:
> 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 <michalx.kobylinski at intel.com>
>> Cc: stable at dpdk.org
>>
>> Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
>> ---
>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
>
Thanks for review. I found a better solution, I will be sending a v2.
More information about the dev
mailing list