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 A32ED46053; Fri, 17 Jan 2025 21:51:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C56F402B5; Fri, 17 Jan 2025 21:51:44 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 98AD74003C; Fri, 17 Jan 2025 21:51:43 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id A644820591BE; Fri, 17 Jan 2025 12:51:42 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A644820591BE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1737147102; bh=ibIcSn40P+65pt/n1Cl0s3n8VdyYg8a0ZZ5xttgtFXI=; h=From:To:Cc:Subject:Date:From; b=iibES0SqM62sDqy4kKwAF+CC5LvK7mSP4LOjN+5vqnaBJv3Yjw1lRtZ5ub9e29PSg dTzC5tkrQMGDP65ZhagMUgtxrtXlSRLjzNI/jMuudWU7wqvK7piacve6ndfzgGSZ9z k145SwzUByA5/QBEsuUHTgVXhePYACTv51gDdcYQ= From: Andre Muezerie To: Ajit Khaparde , Somnath Kotur , Farah Smith , Shahaji Bhosle , Peter Spreadborough Cc: dev@dpdk.org, Andre Muezerie , stable@dpdk.org Subject: [PATCH] drivers/net: fix indication of allocation Date: Fri, 17 Jan 2025 12:51:33 -0800 Message-Id: <1737147093-11172-1-git-send-email-andremue@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 When experimenting with the -std=c2x compiler option the error below popped up: ../drivers/net/bnxt/tf_core/tf_sram_mgr.c:952:39: error: incompatible types when assigning to type ‘_Bool *’ from type ‘_Bool’ The code indicates that the intention was to assign false to the bool being pointed to, not to the pointer itself. Fixes: 37ff91c158a3 ("net/bnxt: add SRAM manager model") Cc: stable@dpdk.org Signed-off-by: Andre Muezerie --- drivers/net/bnxt/tf_core/tf_sram_mgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bnxt/tf_core/tf_sram_mgr.c b/drivers/net/bnxt/tf_core/tf_sram_mgr.c index 87e8882fed..0dffd74cd5 100644 --- a/drivers/net/bnxt/tf_core/tf_sram_mgr.c +++ b/drivers/net/bnxt/tf_core/tf_sram_mgr.c @@ -949,7 +949,7 @@ int tf_sram_mgr_is_allocated(void *sram_handle, tf_sram_slice_2_str(parms->slice_size), tf_sram_bank_2_str(parms->bank_id)); - parms->is_allocated = false; + *parms->is_allocated = false; goto done; } @@ -964,7 +964,7 @@ int tf_sram_mgr_is_allocated(void *sram_handle, if (block == NULL) { TFP_DRV_LOG(ERR, "block not found in list 0x%x\n", parms->sram_offset); - parms->is_allocated = false; + *parms->is_allocated = false; goto done; } -- 2.47.2.vfs.0.1