Hi Honnappa, > -----Original Message----- > From: Honnappa Nagarahalli <honnappa.nagaraha...@arm.com> > Sent: Thursday, September 12, 2019 10:43 PM > To: jer...@marvell.com; Gavin Hu (Arm Technology China) > <gavin...@arm.com>; dev@dpdk.org > Cc: nd <n...@arm.com>; tho...@monjalon.net; hemant.agra...@nxp.com; > Pavan Nikhilesh Bhagavatula <pbhagavat...@marvell.com>; sta...@dpdk.org; > Honnappa Nagarahalli <honnappa.nagaraha...@arm.com>; nd <n...@arm.com> > Subject: RE: [PATCH v2 1/3] test/rcu: fix the compiling error for armv8.2 > > <snip> > > > > Subject: [EXT] [PATCH v2 1/3] test/rcu: fix the compiling error for > > > armv8.2 > > > > > > With "-march=armv8.2-a" specified, a compiling error generated: > > > app/test/test_rcu_qsbr.c:234:10: error: comparison of integer > > > expressions of different signedness: ‘unsigned int’ and ‘int’ > > > [-Werror=sign-compare] > > > > > > Fixes: b87089b0bb19 ("test/rcu: add API and functional tests") > > > Cc: sta...@dpdk.org > > > > > > Signed-off-by: Gavin Hu <gavin...@arm.com> > > > Reviewed-by: Honnappa Nagarahalli <honnappa.nagaraha...@arm.com> > > > Reviewed-by: Steve Capper <steve.cap...@arm.com> > > > > > > Reviewed-by: Jerin Jacob <jer...@marvell.com> > This should be fixed already due to commit 104dbec2081. > Gavin, can you please verify? If yes, we can skip this patch. No, just ran and the issue persisted with the above commit in place. I see the above commit was to fix a limited range of data type issue, this commit is to fix a signedness issue. ~/dpdk/app/test/test_rcu_qsbr.c: In function ‘test_rcu_qsbr_thread_unregister’: ~/dpdk/app/test/test_rcu_qsbr.c:233:10: error: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Werror=sign-compare] if (i == (RTE_MAX_LCORE - 10)) > > > > > > > > --- > > > app/test/test_rcu_qsbr.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/app/test/test_rcu_qsbr.c b/app/test/test_rcu_qsbr.c index > > > 1d273e3..b008c9d 100644 > > > --- a/app/test/test_rcu_qsbr.c > > > +++ b/app/test/test_rcu_qsbr.c > > > @@ -231,7 +231,7 @@ test_rcu_qsbr_thread_unregister(void) > > > /* Update quiescent state counter */ > > > for (i = 0; i < num_threads[j]; i++) { > > > /* Skip one update */ > > > -if (i == (RTE_MAX_LCORE - 10)) > > > +if (i == (unsigned int)(RTE_MAX_LCORE - 10)) > > > continue; > > > rte_rcu_qsbr_quiescent(t[0], > > > (j == 2) ? (RTE_MAX_LCORE - 1) : i); > > > -- > > > 2.7.4 >
Re: [dpdk-dev] [PATCH v2 1/3] test/rcu: fix the compiling error for armv8.2
Gavin Hu (Arm Technology China) Fri, 13 Sep 2019 08:28:51 -0700
- Re: [dpdk-dev] [PATCH v2 1/3] test/rcu: fi... Jerin Jacob Kollanukkaran
- Re: [dpdk-dev] [PATCH v2 1/3] test/rc... Honnappa Nagarahalli
- Re: [dpdk-dev] [PATCH v2 1/3] tes... Gavin Hu (Arm Technology China)
- Re: [dpdk-dev] [PATCH v2 1/3]... Honnappa Nagarahalli