From patchwork Mon Sep 21 13:38:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 78186 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 39F64A04CC; Mon, 21 Sep 2020 15:38:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C6A381D9E4; Mon, 21 Sep 2020 15:38:37 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id ECDAF1D942 for ; Mon, 21 Sep 2020 15:38:36 +0200 (CEST) IronPort-SDR: Ig19IRfQohHR5itH26IZKr0zhg+gE+6RMNmRDSwqNNJRLGp0WwasTtqOkwHR3T4oDYO0N9x+7l COW+bG/3JU+w== X-IronPort-AV: E=McAfee;i="6000,8403,9750"; a="140387195" X-IronPort-AV: E=Sophos;i="5.77,286,1596524400"; d="scan'208";a="140387195" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2020 06:38:35 -0700 IronPort-SDR: TbWpqYLQc7iGGHaJXlJ8mkvrovZ2amQAlBpRl/wxGldWoH5rr4Dg5QlNR8C2RNS1OoFwL/iMD7 XcEtEXp2p8/A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,286,1596524400"; d="scan'208";a="510074226" Received: from silpixa00399752.ir.intel.com (HELO silpixa00399752.ger.corp.intel.com) ([10.237.222.180]) by fmsmga006.fm.intel.com with ESMTP; 21 Sep 2020 06:38:34 -0700 From: Ferruh Yigit To: Nipun Gupta Cc: dev@dpdk.org, Ferruh Yigit Date: Mon, 21 Sep 2020 14:38:28 +0100 Message-Id: <20200921133830.1575872-2-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200921133830.1575872-1-ferruh.yigit@intel.com> References: <20200921133830.1575872-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 2/4] raw/dpaa2: fix build with gcc 11 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Error observed with gcc 11 under development gcc (GCC) 11.0.0 20200920 (experimental) build error: ../drivers/raw/dpaa2_qdma/dpaa2_qdma.c: In function ‘rte_qdma_reset’: ../drivers/raw/dpaa2_qdma/dpaa2_qdma.c:454:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 454 | if (qdma_vqs[i].in_use && (qdma_vqs[i].num_enqueues != | ^~ ../drivers/raw/dpaa2_qdma/dpaa2_qdma.c:457:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 457 | return -EBUSY; | ^~~~~~ Signed-off-by: Ferruh Yigit --- drivers/raw/dpaa2_qdma/dpaa2_qdma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/raw/dpaa2_qdma/dpaa2_qdma.c b/drivers/raw/dpaa2_qdma/dpaa2_qdma.c index 0b9c4e3d7..2cba71c63 100644 --- a/drivers/raw/dpaa2_qdma/dpaa2_qdma.c +++ b/drivers/raw/dpaa2_qdma/dpaa2_qdma.c @@ -452,9 +452,10 @@ rte_qdma_reset(void) /* In case there are pending jobs on any VQ, return -EBUSY */ for (i = 0; i < qdma_dev.max_vqs; i++) { if (qdma_vqs[i].in_use && (qdma_vqs[i].num_enqueues != - qdma_vqs[i].num_dequeues)) + qdma_vqs[i].num_dequeues)) { DPAA2_QDMA_ERR("Jobs are still pending on VQ: %d", i); return -EBUSY; + } } /* Reset HW queues */