From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 7B9287CDA for ; Thu, 2 May 2019 17:56:51 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 23E1D231B2; Thu, 2 May 2019 11:56:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 02 May 2019 11:56:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=/O8Azgmm7bs774s27GjNzeqxi3uO4lewp6BMXGuLUAg=; b=SE7axYKgiiR0 ZVEZ+KJsNhZ1AadQdkhYd2b0HYEX3ggjp9vJmS2F6yge8/5eAlb2BTbM+au8GwN8 axNs+G192d6SNkeoMbf0x73MXvl5crwzoz6MlbW7a//bLcw0kHwxIq7Sxwbsi6hG bTJ/Alk/zyz/Ql/7N9haSDXoTkd9wZc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=/O8Azgmm7bs774s27GjNzeqxi3uO4lewp6BMXGuLU Ag=; b=jGUkO3/CLbsqylzqGXjRFak5RR512pMfXFs7TaTuh83sG3BvS0KKWn4hc V7RAKrVwe0XJg3Ya7GJlMiUJWyxULbYYjBbx4MxXskKOTXccFXBbvEekLxyDI02V OfMMz4kw3uio3/9vjBOFbj7pMD54kmRBXk4GNLDxQxlDG8l+/2okwTIqgF2wSd3U 2eyHezUO+XEQUeVyEHeEnYXCVDb316kpFuIF+YM2QTnfM3tCcmQYz4C5lk9QaOlT kgmS2uHiJgjaMVF07ezIH/xKhi+fLF1uxehUfQnDTJPfeXvMa72LPJYGk3se4B1f /w3eJDV4j/60daCLR2AG0qQzb5rsA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrieelgdeliecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthhqredttddtjeenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhho mhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 9E033E4382; Thu, 2 May 2019 11:56:49 -0400 (EDT) From: Thomas Monjalon To: Reshma Pattan Cc: dev@dpdk.org, David Marchand Date: Thu, 02 May 2019 17:56:48 +0200 Message-ID: <1787462.1VlDKmKezL@xps> In-Reply-To: References: <20190502093334.7546-1-reshma.pattan@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] mk: disable warning with gcc 9 on Fedora 30 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 May 2019 15:56:51 -0000 02/05/2019 17:00, David Marchand: > On Thu, May 2, 2019 at 11:33 AM Reshma Pattan > wrote: >=20 > > gcc 9 on Fedora 30 gives an error > > "taking address of packed member may result in an > > unaligned pointer value" warnings. > > > > For clang builds this warning is already disabled, > > so disable "-Waddress-of-packed-member" for gcc builds > > also. > > > > Snippet of build error: > > ...lib/librte_eal/linux/eal/eal_memalloc.c: In function =E2=80=98alloc_= seg_walk=E2=80=99: > > ...lib/librte_eal/linux/eal/eal_memalloc.c:768:12: error: taking address > > of packed member of =E2=80=98struct rte_mem_config=E2=80=99 may result = in an unaligned > > pointer value [-Werror=3Daddress-of-packed-member] > > 768 | cur_msl =3D &mcfg->memsegs[msl_idx]; > > | ^~~~~~~~~~~~~~~~~~~~~~~ > > > > Signed-off-by: Reshma Pattan > > > > > Tested on rhel-7 and fedora-30. > Tested-by: David Marchand Applied, thanks From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 66F58A0AC5 for ; Thu, 2 May 2019 17:56:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 35BD81B1A0; Thu, 2 May 2019 17:56:53 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 7B9287CDA for ; Thu, 2 May 2019 17:56:51 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 23E1D231B2; Thu, 2 May 2019 11:56:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 02 May 2019 11:56:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=/O8Azgmm7bs774s27GjNzeqxi3uO4lewp6BMXGuLUAg=; b=SE7axYKgiiR0 ZVEZ+KJsNhZ1AadQdkhYd2b0HYEX3ggjp9vJmS2F6yge8/5eAlb2BTbM+au8GwN8 axNs+G192d6SNkeoMbf0x73MXvl5crwzoz6MlbW7a//bLcw0kHwxIq7Sxwbsi6hG bTJ/Alk/zyz/Ql/7N9haSDXoTkd9wZc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=/O8Azgmm7bs774s27GjNzeqxi3uO4lewp6BMXGuLU Ag=; b=jGUkO3/CLbsqylzqGXjRFak5RR512pMfXFs7TaTuh83sG3BvS0KKWn4hc V7RAKrVwe0XJg3Ya7GJlMiUJWyxULbYYjBbx4MxXskKOTXccFXBbvEekLxyDI02V OfMMz4kw3uio3/9vjBOFbj7pMD54kmRBXk4GNLDxQxlDG8l+/2okwTIqgF2wSd3U 2eyHezUO+XEQUeVyEHeEnYXCVDb316kpFuIF+YM2QTnfM3tCcmQYz4C5lk9QaOlT kgmS2uHiJgjaMVF07ezIH/xKhi+fLF1uxehUfQnDTJPfeXvMa72LPJYGk3se4B1f /w3eJDV4j/60daCLR2AG0qQzb5rsA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrieelgdeliecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthhqredttddtjeenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhho mhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 9E033E4382; Thu, 2 May 2019 11:56:49 -0400 (EDT) From: Thomas Monjalon To: Reshma Pattan Cc: dev@dpdk.org, David Marchand Date: Thu, 02 May 2019 17:56:48 +0200 Message-ID: <1787462.1VlDKmKezL@xps> In-Reply-To: References: <20190502093334.7546-1-reshma.pattan@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] mk: disable warning with gcc 9 on Fedora 30 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190502155648.qwAwXHLdEBvY83nJ7q2uxSsZ7DOEgUkIPARhCcKKjGI@z> 02/05/2019 17:00, David Marchand: > On Thu, May 2, 2019 at 11:33 AM Reshma Pattan > wrote: >=20 > > gcc 9 on Fedora 30 gives an error > > "taking address of packed member may result in an > > unaligned pointer value" warnings. > > > > For clang builds this warning is already disabled, > > so disable "-Waddress-of-packed-member" for gcc builds > > also. > > > > Snippet of build error: > > ...lib/librte_eal/linux/eal/eal_memalloc.c: In function =E2=80=98alloc_= seg_walk=E2=80=99: > > ...lib/librte_eal/linux/eal/eal_memalloc.c:768:12: error: taking address > > of packed member of =E2=80=98struct rte_mem_config=E2=80=99 may result = in an unaligned > > pointer value [-Werror=3Daddress-of-packed-member] > > 768 | cur_msl =3D &mcfg->memsegs[msl_idx]; > > | ^~~~~~~~~~~~~~~~~~~~~~~ > > > > Signed-off-by: Reshma Pattan > > > > > Tested on rhel-7 and fedora-30. > Tested-by: David Marchand Applied, thanks