From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id E136E68A5 for ; Wed, 9 Dec 2015 21:55:54 +0100 (CET) Received: by mail-wm0-f46.google.com with SMTP id v187so3542633wmv.1 for ; Wed, 09 Dec 2015 12:55:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=DHY1gjqQr/Lio2FWTYyWBC7Sc6AjqcTxPe9eNev/8hE=; b=LNxfFmyzxuP3HwzD6R8L1Kvd969tpD7kFjqOi1yjZhR8eYfOVr5H/mxJ4RrkL4TnLg zcHv9ctVMGR5RqEA4GcD/+GUyjtage2cKNXfaP7NNoRvHrGnifLBC4FUG1HXMDPXakDd jWtXb13exyi5QZAJBa3fJE4INIlBIUX8/1awZtiBYI6irvc/hpW1akomZd0qAasdrLJr ILDrBD23TxONgdA0n/8cPgUpeKmjuP1Ylu26sbLbdoBFW15dUVYn6kB3trSLVFZBX1xG UBonHHyGGrp7nTNr5Lo3BK13hvTIHuPRzeVbQJegl629FMwvAA+3OKljDPi8pRKvIUXN Nu0Q== 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=DHY1gjqQr/Lio2FWTYyWBC7Sc6AjqcTxPe9eNev/8hE=; b=IimFqYBso9OycaaMbvNdypYCPVPbxUcgP2rrLYFM/gtiNVlupVYRP6P7lyyIddb6BE xApRnnpqNBFdkXaswHjd3N1q5Pinz9pn5s6pQ96FDO03j9JdnrsFFoQ5twqrTYWMMxIi J2vlMJrL1qUR7VSqhhGbuM8DMLjiJEzqk+yY9vyeAaC+d0ackRjGJrhYGs2ceuANxjYL byMppX0UiUFDCAjS9zw9Ax4v01yXxLaPqD1SuA2epP+vpeVoyFn8hCHaqIT0agAxEaDJ IYg6EjtQLTVWkEAV8jPMg4KeDCekHT9ihuIibscLjQMjgjOGPaj6gXTQ3s7zqpoH56Ja 7Cmw== X-Gm-Message-State: ALoCoQkBDt7Q74eL0XWxQbbu6RbhRTJ6bMAw+/Otr7TI68L3/KM6MxTgO4fUEYpShY4jtDALtJPoFm+DGqwKdoPfi2WYB5ip4g== X-Received: by 10.194.209.195 with SMTP id mo3mr8460125wjc.16.1449694554780; Wed, 09 Dec 2015 12:55:54 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id gl4sm9360186wjd.17.2015.12.09.12.55.53 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 09 Dec 2015 12:55:54 -0800 (PST) From: Thomas Monjalon To: "De Lara Guarch, Pablo" Date: Wed, 09 Dec 2015 21:54:38 +0100 Message-ID: <3855694.xcpzN8qJoX@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1449663630-83289-1-git-send-email-pablo.de.lara.guarch@intel.com> <1449671209-102009-1-git-send-email-pablo.de.lara.guarch@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v5] examples/vhost: fix strict aliasing error on gcc 4.4.7 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: Wed, 09 Dec 2015 20:55:55 -0000 2015-12-09 14:33, Xie, Huawei: > On 12/9/2015 10:27 PM, De Lara Guarch, Pablo wrote: > > From: "De Lara Guarch, Pablo" > > > > Fixes following error on gcc 4.4.7: > > > > make: Entering directory `/tmp/dpdk-tmp/examples/vhost' > > CC main.o > > cc1: warnings being treated as errors > > /tmp/dpdk-tmp/examples/vhost/main.c: In function =E2=80=98new_devic= e=E2=80=99: > > /tmp/dpdk-tmp/x86_64-native-linuxapp-gcc/include/rte_ring.h:740: er= ror: > > dereferencing pointer =E2=80=98mbuf.486=E2=80=99 does break str= ict-aliasing rules > > /tmp/dpdk-tmp/examples/vhost/main.c:1503: note: initialized from he= re > > ... > > /tmp/dpdk-tmp/examples/vhost/main.c:1503: note: initialized from he= re > > /tmp/dpdk-tmp/x86_64-native-linuxapp-gcc/include/rte_ring.h:740: er= ror: > > dereferencing pointer =E2=80=98({anonymous})=E2=80=99 does brea= k strict-aliasing rules > > /tmp/dpdk-tmp/examples/vhost/main.c:1804: note: initialized from he= re > > make[1]: *** [main.o] Error 1 > > > > Fixes: d19533e8 ("examples/vhost: copy old vhost example") > > > > Reported-by: Qian Xu > > Signed-off-by: Pablo de Lara > Acked-by: Huawei Xie Applied, thanks