From patchwork Tue May 2 13:50:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerin Jacob Kollanukkaran X-Patchwork-Id: 126661 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BCE7C42A2F; Tue, 2 May 2023 15:50:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ACF4C42B8E; Tue, 2 May 2023 15:50:58 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id D91BC40E2D; Tue, 2 May 2023 15:50:56 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 342CVYtj026411; Tue, 2 May 2023 06:50:56 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=o2VLQWe2DXWitCCIVX7Jh+qQNJQB4zHGhXCBorBt0d4=; b=Gs0bnmF+N1DE9idxnraSe3X15Xc3+nP4ZzBQeQdYQp7vll4aSFkvJHTrgJKZp324ntGQ 8nZD+xvlUPc7wZf4Zd6y2qEcj/hp/PVDmegpR3NARu3tvRf7RcYc+K+HBoKfvd0N8JkU KoMcbSJq/XeqMXZwnBYsuWWXvYmrI9nQAMJk8NiNV6sS9b2fWXE+DuIIFSb61/U8QYiy lVS+3za8eGlQ0pPDnSLguYk9fFjob7QCiL2G+3zOaasXPSV9MQRUnIp0hMFkabAhrN2v uvSgn4m1eL7RmQG3qqrD0cTqSgaSnuHTQzVdTkRYjlrRIb0bvFbu6jj1NaRmU0q3+OUD 4w== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3qavhehkdp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 02 May 2023 06:50:55 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 2 May 2023 06:50:53 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Tue, 2 May 2023 06:50:53 -0700 Received: from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14]) by maili.marvell.com (Postfix) with ESMTP id EFCBF3F7052; Tue, 2 May 2023 06:50:50 -0700 (PDT) From: To: , Cristian Dumitrescu , Jasvinder Singh CC: , , , , Jerin Jacob , Subject: [dpdk-dev] [PATCH v1] examples/ip_pipeline: fix build issue with GCC 13 Date: Tue, 2 May 2023 19:20:44 +0530 Message-ID: <20230502135045.3541570-1-jerinj@marvell.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: bKFWSDzYfvD4tay3SC8RmegI5EcKJZ8G X-Proofpoint-GUID: bKFWSDzYfvD4tay3SC8RmegI5EcKJZ8G X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-02_08,2023-04-27_01,2023-02-09_01 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 From: Jerin Jacob Fix the following build issue by initializing req to NULL for the local variable. In function 'thread_msg_handle', inlined from 'thread_main' at ../examples/ip_pipeline/thread.c:3130:6: ../examples/ip_pipeline/thread.c:535:20: warning: 'req' may be used uninitialized [-Wmaybe-uninitialized] 535 | if (req == NULL) | ^ ../examples/ip_pipeline/thread.c: In function 'thread_main': ../examples/ip_pipeline/thread.c:433:32: note: 'req' was declared here 433 | struct thread_msg_req *req; Bugzilla ID: 1220 Fixes: a8bd581de397 ("examples/ip_pipeline: add thread runtime") Cc: stable@dpdk.org Signed-off-by: Jerin Jacob Acked-by: Cristian Dumitrescu Tested-by: Daxue Gao Acked-by: Cristian Dumitrescu Tested-by: Ali Alnubani Tested-by: Daxue Gao --- examples/ip_pipeline/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ip_pipeline/thread.c b/examples/ip_pipeline/thread.c index 82d5f87c38..9817657ca9 100644 --- a/examples/ip_pipeline/thread.c +++ b/examples/ip_pipeline/thread.c @@ -430,7 +430,7 @@ thread_pipeline_disable(uint32_t thread_id, static inline struct thread_msg_req * thread_msg_recv(struct rte_ring *msgq_req) { - struct thread_msg_req *req; + struct thread_msg_req *req = NULL; int status = rte_ring_sc_dequeue(msgq_req, (void **) &req);