test/rcu: fix build with low core count
authorHonnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Fri, 16 Oct 2020 06:03:48 +0000 (01:03 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 30 Oct 2020 14:43:57 +0000 (15:43 +0100)
commit0ca6007efc3a74f5d4184a7844a40cc7f4ad2c1d
tree16aab8fee9703d32078d90fddf07154b0761cf95
parent27b549c12df2ef2db6b271795b4df7b14a2d9c2c
test/rcu: fix build with low core count

When RTE_MAX_LCORE value is small, following compiler errors
are observed.

../app/test/test_rcu_qsbr.c:296:54: error: iteration 2 invokes
undefined behavior [-Werror=aggressive-loop-optimizations]

../app/test/test_rcu_qsbr.c:315:55: error: array subscript is above
array bounds [-Werror=array-bounds]

Fixes: b87089b0bb19 ("test/rcu: add API and functional tests")
Cc: stable@dpdk.org
Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Tested-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Reviewed-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
app/test/test_rcu_qsbr.c