event/cnxk: fix clang build on Arm
authorRuifeng Wang <ruifeng.wang@arm.com>
Thu, 10 Jun 2021 07:25:10 +0000 (07:25 +0000)
committerJerin Jacob <jerinj@marvell.com>
Wed, 30 Jun 2021 13:03:20 +0000 (15:03 +0200)
commitfdadccfa3fb97acf06641a5fa823b05de1cca0bb
tree328844d033de33badf331bc137b893320dc62f91
parentd97428bfb94c77921bda8e688ff745b0dcab0abc
event/cnxk: fix clang build on Arm

clang-10 build issue log:
drivers/event/cnxk/cnxk_tim_worker.h:372:23:
warning: value size does not match register size
specified by the constraint and modifier [-Wasm-operand-widths]
                             : [rem] "=&r"(rem)
                                           ^
cnxk/cnxk_tim_worker.h:365:17: note: use constraint modifier "w"
                             "ldxr %[rem], [%[crem]]  \n"
                                             ^~~~~~
                                             %w[rem]

Changed variable type to match register size, which placates clang.

Fixes: 300b796262a1 ("event/cnxk: add timer arm routine")
Cc: stable@dpdk.org
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
drivers/event/cnxk/cnxk_tim_worker.h