From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by dpdk.org (Postfix) with ESMTP id 532455961 for ; Mon, 16 Jun 2014 05:22:05 +0200 (CEST) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 15 Jun 2014 20:22:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,483,1400050800"; d="scan'208";a="445846585" Received: from shilc102.sh.intel.com ([10.239.39.44]) by azsmga001.ch.intel.com with ESMTP; 15 Jun 2014 20:22:19 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shilc102.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id s5G3MFLR017291; Mon, 16 Jun 2014 11:22:17 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id s5G3MDUf000595; Mon, 16 Jun 2014 11:22:15 +0800 Received: (from mcao7@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id s5G3MCOm000591; Mon, 16 Jun 2014 11:22:12 +0800 From: Min Cao To: dev@dpdk.org Date: Mon, 16 Jun 2014 11:22:10 +0800 Message-Id: <1402888931-471-1-git-send-email-min.cao@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [dpdk-stv] [PATCH 0/1] Fix the pointer 'ctx1' uninitialized error with gcc4.5.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2014 03:22:05 -0000 Description: This patch is aimed to fix the the pointer 'ctx1' uninitialized error with gcc4.5.1 as described below. Download dpdk source code from http://dpdk.org, and compile the source code(commit cc333208d5658fea642098b665cd429e6cda54a9). It has the following compilation error on fedora14 with gcc4.5.1 while it is fine on Fedorak20 with gcc4.8.2: "dpdk/lib/librte_kvargs/rte_kvargs.c:51:14: error: 'ctx1' may be used uninitialized in this function" According to the latest DPDK OS Building Test Report(commit:cc333208d5658fea642098b665cd429e6cda54a9, the master branch from http://dpdk.org), this error also occurs on SUSE11SP2_64 with gcc4.5.1, SUSE11SP3_32 with gcc4.5.1 and SUSE11SP3_64 with gcc4.3.4. Initializing the pointer can solve this problem. Signed-off-by: Cao Min Acked-by: Liu, Jijiang Tested-by: Waterman Cao Zhan Zhaochen (1): Fix the pointer 'ctx1' uninitialized error with gcc 4.5.1 lib/librte_kvargs/rte_kvargs.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) -- 1.7.3.1