mempool/octeontx2: fix possible arm64 ABI break
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Thu, 18 Jul 2019 06:51:11 +0000 (12:21 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 18 Jul 2019 22:13:27 +0000 (00:13 +0200)
commit5b40ec6b966260e0ff66a8a2c689664f75d6a0e6
tree6d60014d5ab00d404656658cd8a424cc200c0db4
parent7d4acfc7416d411fbbbf3cd27872025d0f80d47a
mempool/octeontx2: fix possible arm64 ABI break

Since direct register access is used in npa_lf_aura_op_alloc_bulk()
use __rte_noinline instead of __rte_always_inline to preserve ABI.
Based on the compiler npa_lf_aura_op_alloc_bulk might be inlined
differently which may lead to undefined behaviour due to handcoded
asm.

Fixes: 29893042c29d ("mempool/octeontx2: fix clang build for arm64")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/mempool/octeontx2/otx2_mempool_ops.c