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 CF5D7A0524 for ; Fri, 5 Feb 2021 12:20:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C22F24067B; Fri, 5 Feb 2021 12:20:08 +0100 (CET) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mails.dpdk.org (Postfix) with ESMTP id 093EB1606CC for ; Fri, 5 Feb 2021 12:20:08 +0100 (CET) Received: by mail-wm1-f44.google.com with SMTP id f16so5700472wmq.5 for ; Fri, 05 Feb 2021 03:20:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Y0+aUFqpSB7DcVAtKpCL55tKnADwtU9dqDQTXt4u/D8=; b=CPC+Cgm2qV2MrPTIIz0GXVn1byyOQIwRPk0ZbKMVTh+1EBROd9HjyvLh83eq3O3sNb oMpZfAtPlFq8tyJ9g6hcFhUuDelanaopvxkA1ihCLZ68RyR0Iux1gajeCjWPptlpejLf O5wdcyvwP0kUvzV7Ae7Py0Q9rKvV/CwqrBmttIJBFHWlbbqlNxoq+NCi6nhN4sJ1CMJh YiJwYLRadY0ogx8glhgqdSFEiqcHiSc9YNT1eV6UqirP1rrXn11LbawvP2Htw1bjDGXI +qHmEk/dwjeFeLMt8oz/NmY9n5aeXQ5bm1GGxHSI7OkQN+LkX0+sE2MYY8x0NLf+KaNL PvCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Y0+aUFqpSB7DcVAtKpCL55tKnADwtU9dqDQTXt4u/D8=; b=biZJgclKPlkt5/TbkeJg9LPvdjq8AMlWTJoU2+BFwF4rtpkd/mBFsq+JwV+akA4QEB 5buYtuCAV6Tfx+lWf0VtqSRy42FDk3vAol5JY1Ja5xYaszXprEvjLAhrdvSt8+dFWW+k bRD0LvoqTMxV9iCmne4wY8lulG5kR1hWbplS9kv2ovi/2IzHeMZreCvjjJtPAGExodmH XfmsPs7cs7foVh0FN34ZhVgtmUUSyR6Mt6nOm76mTFnzMwjgxt+HmIvx8HMDPb2len+t 8zNy23M1yqt7tvKQJOhqiaKikYNaHrle3So/SODWSQSnlts2ePiBZ9jg6vU2eEthuztZ xqtQ== X-Gm-Message-State: AOAM531QOb7TB/eFGLoqTaRAkLL3B2C+M4Uk2InCkiPmNjBoOL7ItxJH TguX50dafMJaW7l3vumBmwk= X-Google-Smtp-Source: ABdhPJxaXziUOdgh1hkeGoJK6tFPoFsuJ5vmeQjtmhX41fte7WZdc0tmQ1f+Op0zUAZd3Ecz2z22XA== X-Received: by 2002:a1c:8157:: with SMTP id c84mr3230606wmd.24.1612524007806; Fri, 05 Feb 2021 03:20:07 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id j185sm8936717wma.1.2021.02.05.03.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 03:20:07 -0800 (PST) From: luca.boccassi@gmail.com To: Ferruh Yigit Cc: David Marchand , dpdk stable Date: Fri, 5 Feb 2021 11:15:01 +0000 Message-Id: <20210205111920.1272063-15-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210205111920.1272063-1-luca.boccassi@gmail.com> References: <20210205111920.1272063-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'app/procinfo: remove useless assignment' has been queued to stable release 20.11.1 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.1 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/07/21. 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/d8282edc783a4297291b903f9b87a6176766d4dc Thanks. Luca Boccassi --- >From d8282edc783a4297291b903f9b87a6176766d4dc Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Thu, 19 Nov 2020 11:58:54 +0000 Subject: [PATCH] app/procinfo: remove useless assignment [ upstream commit ff1047ba5b3128bfd710fc05d2f5adaa259bf88c ] 'flag' is initialized to '0' but it is overwritten later, moving the declaration where it is used and initialize with actual value. Fixes: 0101a0ec6217 ("app/procinfo: add --show-mempool") Signed-off-by: Ferruh Yigit Reviewed-by: David Marchand --- app/proc-info/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index 106b44d6fb..44249dd2cb 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -1264,8 +1264,6 @@ show_ring(char *name) static void show_mempool(char *name) { - uint64_t flags = 0; - snprintf(bdr_str, MAX_STRING_LEN, " show - MEMPOOL "); STATS_BDR_STR(10, bdr_str); @@ -1273,8 +1271,8 @@ show_mempool(char *name) struct rte_mempool *ptr = rte_mempool_lookup(name); if (ptr != NULL) { struct rte_mempool_ops *ops; + uint64_t flags = ptr->flags; - flags = ptr->flags; ops = rte_mempool_get_ops(ptr->ops_index); printf(" - Name: %s on socket %d\n" " - flags:\n" -- 2.29.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-02-05 11:18:29.999932504 +0000 +++ 0015-app-procinfo-remove-useless-assignment.patch 2021-02-05 11:18:28.594687075 +0000 @@ -1 +1 @@ -From ff1047ba5b3128bfd710fc05d2f5adaa259bf88c Mon Sep 17 00:00:00 2001 +From d8282edc783a4297291b903f9b87a6176766d4dc Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit ff1047ba5b3128bfd710fc05d2f5adaa259bf88c ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org