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 163ABA0544; Tue, 11 Oct 2022 01:27:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ABD9340DFD; Tue, 11 Oct 2022 01:27:29 +0200 (CEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mails.dpdk.org (Postfix) with ESMTP id C728940146 for ; Tue, 11 Oct 2022 01:27:27 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7C7495C019C; Mon, 10 Oct 2022 19:27:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 10 Oct 2022 19:27:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1665444446; x= 1665530846; bh=Ua3GhGxPofqnmz5r4iiIoazuGMCRCTA9F1OTl4JlLpc=; b=N AhI23CItMgWFHJxf+Uc8pFMhhNJtBwlB/5vB3ekmfyv0albGjTkDCm566PI7yHgg d4ltVxj0TPe0BtQzXZ02JcIlC2oMFOYOhwtpYdMKXipLtuPy0XuAvCfQtsrtgfDT tZM93+FhqZlQ2rj843TYAp8uQkbcpwuU5yBUVQXzbtTwKF0FZ48/fAfAS/5LoOUI ZByQnuZ0EEFiGm8zdYc4lhQwV2DFylkn9kaxfcX3JMLqfLO7mDNa/60splc2clTg qwPU0xkYPIcVmdlhRcDn7rT40B/tbG70Du256WCBqiBWXGEEDWcC/JpuU83TAFD0 uvelRKjqc6Xoc4zLJv5pg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1665444446; x= 1665530846; bh=Ua3GhGxPofqnmz5r4iiIoazuGMCRCTA9F1OTl4JlLpc=; b=Z 50IipZoFRtlgix87/Gwv95vmGoTfzpIvVlrudHDt9dPEC6Zo5EV0QrxRCpjRoNlh TIhWp+d814z9ZsvhR1BZ2kECmjBTP1idJvLyI/JG/7mAq/5uZmlLRKTGmzsamgfE E0msTNYpbrLjR4PcaFbPc60bPTk6jD4l/lNeg1pwfmDs/04+3kHo6DnmBLlX5dgL UDFkRc/PqFl3py1rirpW1LzJFfBF7tEe6PJIExOmnGBYqnmTnGNpqXbUfPkt2odK CISTsUeZZCtM3TckdtqBv35g/1fVnk7/T1EVg5zvvGuwuaFgVL/YhKey7jRoPkAk qTZzPBwFikAHxwas4ddOw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeejhedgvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedtjeeiieefhedtfffgvdelteeufeefheeujefgueetfedttdei kefgkeduhedtgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 10 Oct 2022 19:27:25 -0400 (EDT) From: Thomas Monjalon To: Nicolas Chautru Cc: "dev@dpdk.org" , "gakhil@marvell.com" , Ali Alnubani Subject: Re: [PATCH v1] bbdev: prevent clang 3.4.2 compilation error Date: Tue, 11 Oct 2022 01:27:24 +0200 Message-ID: <1953924.zToM8qfIzz@thomas> In-Reply-To: References: <20221010170403.21201-1-nicolas.chautru@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 > > Casting explicitly from enum to uint8_t to avoid compilation > > warning with clang 3.4.2 -Wtautological-constant-out-of-range-compare > > > > Signed-off-by: Nicolas Chautru > > Verified that the build passes with this patch. Thanks Nicolas. > > Tested-by: Ali Alnubani Applied with more complete commit message, thanks: bbdev: fix build with clang 3.4.2 Casting explicitly from enum to uint8_t to avoid compilation warning with clang 3.4.2: rte_bbdev.c:1179:13: error: comparison of constant 4 with expression of type 'enum rte_bbdev_enqueue_status' is always true [-Werror,-Wtautological-constant-out-of-range-compare] Bugzilla ID: 1095 Fixes: 1be86f2e94e4 ("bbdev: add device status info") Fixes: 4f08028c5e24 ("bbdev: expose queue related warning and status")