From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2FD37A0C51; Thu, 10 Jun 2021 09:25:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D4A34067C; Thu, 10 Jun 2021 09:25:34 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id EBF984003C for ; Thu, 10 Jun 2021 09:25:33 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 409CDD6E; Thu, 10 Jun 2021 00:25:33 -0700 (PDT) Received: from net-arm-n1amp-01.shanghai.arm.com (net-arm-n1amp-01.shanghai.arm.com [10.169.210.99]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6B0963F719; Thu, 10 Jun 2021 00:25:31 -0700 (PDT) From: Ruifeng Wang To: Pavan Nikhilesh , Shijith Thotton Cc: dev@dpdk.org, nd@arm.com, Ruifeng Wang Date: Thu, 10 Jun 2021 07:25:10 +0000 Message-Id: <20210610072511.232027-1-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] event/cnxk: fix clang warning on Arm X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Build with Clang-10 has warning: 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) ^ drivers/event/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: pbhagavatula@marvell.com Signed-off-by: Ruifeng Wang --- drivers/event/cnxk/cnxk_tim_worker.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/event/cnxk/cnxk_tim_worker.h b/drivers/event/cnxk/cnxk_tim_worker.h index 7caeb1a8fb..78e36ffafe 100644 --- a/drivers/event/cnxk/cnxk_tim_worker.h +++ b/drivers/event/cnxk/cnxk_tim_worker.h @@ -320,7 +320,7 @@ cnxk_tim_add_entry_mp(struct cnxk_tim_ring *const tim_ring, struct cnxk_tim_ent *chunk; struct cnxk_tim_bkt *bkt; uint64_t lock_sema; - int16_t rem; + int64_t rem; __retry: cnxk_tim_get_target_bucket(tim_ring, rel_bkt, &bkt, &mirr_bkt); -- 2.25.1