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 D9BCB4624E for ; Mon, 17 Feb 2025 18:06:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA305402BB; Mon, 17 Feb 2025 18:06:26 +0100 (CET) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mails.dpdk.org (Postfix) with ESMTP id 18CD1400D6 for ; Mon, 17 Feb 2025 18:06:25 +0100 (CET) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4398e3dfc66so4887415e9.0 for ; Mon, 17 Feb 2025 09:06:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739811985; x=1740416785; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eR2qKVcgepgkOA2p3z2wqX9kGq5C36JZgDP2lr22jV4=; b=kKevOohLF54/W4AH12/91MIqFsl/ZtZ2f84XGzmXufEg0QkQKbBkMvSiy7Hs72F264 OUs/IfkWRQpmxvDceLSvhBhDmpJmZbGMuHtdZYGqlp00ZC9T62pvW6PWkB9YsRIwY/Tw d+WXZlczomf66A7F8OwShmIJ4ro39RBLwcWUYMnDXiJiytKmUUzmzW6/KMJXlDHCXOPc nMOqHek4GtPAUgLRfZ6fypq6h65sE8UZR1mE7GreCWNEvge0fVIbvMfuHJN4joIlQNrt 1T8S2+A34wQzzi0QNE1ZOChAvR6gts5oLp/5NCck9Hv9NqTBvCC/ac5IJDIo8fanA1cO IYwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739811985; x=1740416785; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eR2qKVcgepgkOA2p3z2wqX9kGq5C36JZgDP2lr22jV4=; b=akoAPepB829IFpQErJRlve4A+Z8jtxWAdJhNu6PP5RYv+//qAc8MYcqcuq23lpjLy1 n3vWs1N9DW56L1toHvPGbnu9UpasPycLmk0eJ0BKo3tmHmfg8/q573LJjL+0U9NyFYDb P6gY5tjEG0NZ2xBqR1LaPSeHymnYL5ZIwv3ONVivDgOSHiflGJPwWIFbAb+SjXk8RA4p xYUudrwMK6TC1bWNxFGn+hMOhDIiuSZmus+PjAQ6kRfVlXbtevgNQuPeg1V9mrF+MDi/ bNcZ6SHoGWm1foZJXNELTh9PtlUwjWl7PYOhVPLR+I20THpXWjAV0VLuBfRDSgSbHXCQ sFxw== X-Forwarded-Encrypted: i=1; AJvYcCV2omjVwYnzAzMqlZbzGa1Fs6rnfxq8IMAF8oRtSegYaxCH8ZMHXFnQfCBSXydAURYTjYaI0pM=@dpdk.org X-Gm-Message-State: AOJu0YzKgHRDwR47orReT7nCKzysoxwNDYm01OuySH5L7z9lCMzZn2ZH FDLxo2uRCuPYlbSCGOWwGSoR2mUg8dbcl1ckFr5H89nFh8/iDLqt5nmXvb0GDXZJJg== X-Gm-Gg: ASbGncuK46QKNgcn//o5UfsfKAe5kHS0J904vSzZXE8cUsaPswh24qYKnR20+NVEmyj Vi2dIFZ0C9GTsHoNUWrwkzKuXEKGHk3WmgrOmcstbWwk5oANegdFf+5/Sn2KBRlv9bab8jZOYya m+IxMCiz1g83AHiHruHeGpcVaJsgVC2+1lgpx8ts2zFE/myO9WoaNkxoRyHPoGd0MQgW+0jzDrW qxiO4l4pl9gmDqwuRfKT7ECNMV6FkFO9Dodd/xiqF4QECQaXq77XwpQVZOKgnhGVeZUqWY9ez0J Hz4YQhkfZ6yM+znfRfFpmA== X-Google-Smtp-Source: AGHT+IFw+LzObf6Pw3ppLV0aaNlhJuiJ7lqoKLfGquHFM7a7Vj4oH+LiuaOVWbtzOoDwXRp816PN+g== X-Received: by 2002:a5d:64ad:0:b0:38d:d299:709f with SMTP id ffacd0b85a97d-38f33f4e5e9mr12424123f8f.48.1739811984222; Mon, 17 Feb 2025 09:06:24 -0800 (PST) Received: from localhost ([2a01:4b00:d036:ae00:f83c:95e7:29fd:a997]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-4396b5267eesm64421575e9.0.2025.02.17.09.06.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2025 09:06:23 -0800 (PST) From: luca.boccassi@gmail.com To: Andre Muezerie Cc: Ajit Khaparde , dpdk stable Subject: patch 'net/bnxt: fix indication of allocation' has been queued to stable release 22.11.8 Date: Mon, 17 Feb 2025 17:04:01 +0000 Message-ID: <20250217170456.1068278-28-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250217170456.1068278-1-luca.boccassi@gmail.com> References: <20250217170456.1068278-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 22.11.8 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/19/25. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/1846a93afdb993010a670fe9ec971ef2215a44b7 Thanks. Luca Boccassi --- >From 1846a93afdb993010a670fe9ec971ef2215a44b7 Mon Sep 17 00:00:00 2001 From: Andre Muezerie Date: Fri, 17 Jan 2025 12:51:33 -0800 Subject: [PATCH] net/bnxt: fix indication of allocation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit 8531f9ba0062032454121f4959cd3d495cd4147e ] 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") Signed-off-by: Andre Muezerie Acked-by: Ajit Khaparde --- 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 acb3372486..02c96e0a14 100644 --- a/drivers/net/bnxt/tf_core/tf_sram_mgr.c +++ b/drivers/net/bnxt/tf_core/tf_sram_mgr.c @@ -898,7 +898,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; } @@ -913,7 +913,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 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-02-17 16:13:17.855475869 +0000 +++ 0028-net-bnxt-fix-indication-of-allocation.patch 2025-02-17 16:13:16.814441593 +0000 @@ -1 +1 @@ -From 8531f9ba0062032454121f4959cd3d495cd4147e Mon Sep 17 00:00:00 2001 +From 1846a93afdb993010a670fe9ec971ef2215a44b7 Mon Sep 17 00:00:00 2001 @@ -8,0 +9,2 @@ +[ upstream commit 8531f9ba0062032454121f4959cd3d495cd4147e ] + @@ -19 +20,0 @@ -Cc: stable@dpdk.org @@ -28 +29 @@ -index 87e8882fed..0dffd74cd5 100644 +index acb3372486..02c96e0a14 100644 @@ -31 +32 @@ -@@ -949,7 +949,7 @@ int tf_sram_mgr_is_allocated(void *sram_handle, +@@ -898,7 +898,7 @@ int tf_sram_mgr_is_allocated(void *sram_handle, @@ -40 +41 @@ -@@ -964,7 +964,7 @@ int tf_sram_mgr_is_allocated(void *sram_handle, +@@ -913,7 +913,7 @@ int tf_sram_mgr_is_allocated(void *sram_handle,