[PATCH v10 05/21] hash: remove use of VLAs for Windows built code
Bruce Richardson
bruce.richardson at intel.com
Wed Nov 20 10:00:18 CET 2024
On Tue, Nov 19, 2024 at 07:13:05PM -0800, Andre Muezerie wrote:
> From: Konstantin Ananyev <konstantin.ananyev at huawei.com>
>
> 1) ./lib/hash/rte_cuckoo_hash.c:2362:9
> : warning: ISO C90 forbids variable length array ‘positions’
> 2) ../lib/hash/rte_cuckoo_hash.c:2478:9
> : warning: ISO C90 forbids variable length array ‘positions’
>
> Both rte_hash_lookup_bulk_data() and
> rte_hash_lookup_with_hash_bulk_data() expect
> @num_keys <= RTE_HASH_LOOKUP_BULK_MAX.
> So, for both cases it should be safe to replace VLA with fixed size
> array.
>
> Signed-off-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
> ---
Resending tag from v9
Reviewed-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list