mempool/octeontx2: fix clang build for arm64
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Fri, 5 Jul 2019 04:26:50 +0000 (09:56 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 5 Jul 2019 08:55:46 +0000 (10:55 +0200)
commit29893042c29d83bcaf9f812f72aad2257d153508
treeaf8fba349841c1ee2a47574e41706eff2cc637d2
parentd3065379ff2cd4b937aeccc7e99a8dd3dfd0fa20
mempool/octeontx2: fix clang build for arm64

The ARMv8.1 CASP instruction works with even register pairs and since
there no register constraint in older versions of GCC/Clang, use
explicit register allocation to satisfy CASP requirements.
Remove function level optimization specification as Clang doesn't have
support for it and explicit register allocation removes the need for it.

Fixes build issue with arm64-armv8a-linux-clang.

Fixes: ee338015e7a9 ("mempool/octeontx2: add optimized dequeue operation for arm64")

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