From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 376F8C310 for ; Mon, 20 Apr 2015 14:45:51 +0200 (CEST) Received: by wgsk9 with SMTP id k9so177425354wgs.3 for ; Mon, 20 Apr 2015 05:45:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=eVFIuQhjbqj0OqTeQKa59ZlCsQ56Ty6HDZMDOxN0lYA=; b=EshVK97jq0oHd34z2D91YiY5XxEgrXaJvi99/kzQO+8Ao1HoOQrVCy1cWUYK0XcC2s T8YDLSjAqdzIMHQzvNZNoyv3OAymZ/UiBFOuEomWZmSKZLvEFOLeiso3+SfyBXJW+jPp 7HVLeBJ+INWvrfFIH1aA4nVPbx53i9+M9HD8oXy30V/Ez31+/ukS7V09/qBgXDpvyUtP GsM3F5Au9TSguXauza0G2hK4uY0O2Id5mkp1QW9f8qiqfgducNUqJZcw1bQrdySTmPKI 0zILxLg1QSwdzfFDOiC60o9/XarMwR5IN4jKB9+Bs7PM5IJsSZ03ru+PQk8A5y+44i5l ihvg== X-Gm-Message-State: ALoCoQnkh/Mibzy/c9tj+Ba+SfJo0APJwvvHciRdiBiRJU3Cc3IIQF7cuKAC2dzzcClvHisZ3qkb X-Received: by 10.180.88.99 with SMTP id bf3mr15176754wib.75.1429533951056; Mon, 20 Apr 2015 05:45:51 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id it5sm15136300wid.3.2015.04.20.05.45.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2015 05:45:50 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Mon, 20 Apr 2015 14:44:42 +0200 Message-ID: <4644506.8crX46iRBs@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: <553365A5.20405@cloudius-systems.com> References: <1429130956-17828-1-git-send-email-thomas.monjalon@6wind.com> <1429222237-8002-1-git-send-email-thomas.monjalon@6wind.com> <553365A5.20405@cloudius-systems.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v3 1/2] mk: fix build with gcc 4.4 and clang 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, 20 Apr 2015 12:45:51 -0000 > > With GCC 4.4.7 from CentOS 6.5, the following errors arise: > > > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c: In function 'ixgbe_dev_rx_queue_setup': > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c:2509: error: missing initializer > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c:2509: error: (near initialization for 'dev_info.driver_name') > > > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c: In function 'ixgbe_set_rsc': > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c:4072: error: missing initializer > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c:4072: error: (near initialization for 'dev_info.driver_name') > > > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c: In function 'ixgbe_recv_pkts_lro_single_alloc': > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c:1479: error: 'next_rsc_entry' may be used uninitialized in this function > > lib/librte_pmd_ixgbe/ixgbe_rxtx.c:1480: error: 'next_rxe' may be used uninitialized in this function > > > > The "missing initializer" warning is a GCC bug which seems fixed in 4.7. > > The same warning is thrown by clang. > > The "may be used uninitialized" warning is another GCC bug which seems fixed in 4.7. > > > > Fixes: 8eecb3295aed ("ixgbe: add LRO support") > > > > Signed-off-by: Thomas Monjalon > > Acked-by: Vlad Zolotarov Applied, thanks