From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AB747A0471 for ; Wed, 14 Aug 2019 12:19:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 80FE41B19; Wed, 14 Aug 2019 12:19:36 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20081.outbound.protection.outlook.com [40.107.2.81]) by dpdk.org (Postfix) with ESMTP id E30901D7; Wed, 14 Aug 2019 12:19:34 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TYnw+1jKvU+o1k6Q5f7kHHDLPnNUNYRQuqVZdRAFzABiBUU6iP/UnjLpaCl+EL3iCMP8NxUD1GPvF7QEPRYMO5ZTjOh2P0SFAmYquuIJmIWbnCa5/eqQ0f+nymiz6DqkocZvd7bLn8CY7Gho1gf08nNavakI3Np1q6bs+Wu7+HJKVjbvrPCC8vCRCGGqzzWhPl7LsZOnoHck82EsYRfPoBTpspq0urB8xt1vFKdTxr/NO6XODVEokw6UYwUfHSuAlAEAOAgS3MnmkxTx6FId1+xpd9QNuOoOqaLe6eqWV11u4jZnTeStkdadcJIdiVJbvNgiVeLeZtNseaMKTIf08A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mFSIb+y5q+u0Sojtk19QTn7EN+hC9Z/sVAdEbr/rOF8=; b=MyBlRBQEKP2rEpR9q+PUukem4NnU7ga9S/35IQUJHdNLiWnAQ9ieS7X7oNcPN6vVMI6AwMZT2vtbgPGLk4P9JBhpdKKnFmGwqadFQtQTlGKWt6l5kg3WC9SeQKxE0UwG8IYmlirQ//vu9dXQQN3HyxfJGnaEHPh1uDb37q3iGEvZjP7Q34JYjEh2d9sKQLtTKGla2UB2Hc7BIaZ79ikqv3saVYipP41uPVU45MoqAPgQuNnBfeUl2ij1SdnxfUOsbP5wfx1lu3PexE8TiQJlkGvpD7yoOxIK9B9Tc1616E1pyZ1B4lneqCaJYw6PEL9cG3REwrC+jqom9rQJAwfR7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mFSIb+y5q+u0Sojtk19QTn7EN+hC9Z/sVAdEbr/rOF8=; b=T8CTjY/gVOqyoakXty5/EPC7wAUtECldyiQ1Ykghd5h6NC9rUZCPi5udcKds2tQPNKUIf8yx30y5Yo7X9Od25V3okGGicv1yQ9QfePlDCu23w4sF5yC9APZ+Aq4YupmBVJ/YzcyXMwOdZ0hufOme/nyy3dNWjbK+wwZ694QGnt0= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (52.133.39.139) by AM0PR0502MB3700.eurprd05.prod.outlook.com (52.133.44.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.15; Wed, 14 Aug 2019 10:19:33 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::ccc2:2dd4:ca86:7639]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::ccc2:2dd4:ca86:7639%3]) with mapi id 15.20.2157.022; Wed, 14 Aug 2019 10:19:33 +0000 From: Matan Azrad To: Thomas Monjalon , "bruce.richardson@intel.com" , Shahaf Shuler , Yongseok Koh , Slava Ovsiienko CC: "dev@dpdk.org" , Adrien Mazarguil , "stable@dpdk.org" Thread-Topic: [PATCH 4/6] net/mlx: fix build with make and recent gcc Thread-Index: AQHVUWJHHzeLqd4sH0269sLNCCSA+qb6UaJg Date: Wed, 14 Aug 2019 10:19:33 +0000 Message-ID: References: <20190812230358.988-1-thomas@monjalon.net> <20190812230358.988-5-thomas@monjalon.net> In-Reply-To: <20190812230358.988-5-thomas@monjalon.net> Accept-Language: en-US, he-IL Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ec05476c-cd4e-470e-db01-08d720a0e6be x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM0PR0502MB3700; x-ms-traffictypediagnostic: AM0PR0502MB3700: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 01294F875B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(366004)(39860400002)(136003)(346002)(376002)(199004)(189003)(7696005)(486006)(446003)(186003)(6436002)(478600001)(66066001)(76176011)(25786009)(66946007)(76116006)(33656002)(26005)(86362001)(6636002)(54906003)(11346002)(229853002)(6506007)(476003)(9686003)(102836004)(53936002)(8676002)(6246003)(8936002)(2501003)(81156014)(110136005)(2906002)(66476007)(55016002)(316002)(6116002)(14454004)(81166006)(3846002)(71200400001)(71190400001)(5660300002)(256004)(99286004)(52536014)(66446008)(7736002)(305945005)(4326008)(74316002)(66556008)(64756008); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3700; H:AM0PR0502MB4019.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 7imDy1B8s0s5wod8jXLwKor56uDCVZ99eo9cxXTe/MRBaALouBHd8q5DBx3wm+XUBqm6T9UbcAy1jNJTWjM8vUxXjzAY3x5NZVbUKiJa7EmyFiCdll/Wf22cbY18jca94r9hzgI+1JG8SdVY3T5Wxy9p+mHJ/f0O2U0lbqJqOoMp//EaEnXyt0xvPFh2c0+Eubsn9O2mhPAqoyN/9Zlm4OUft+U5igVzXQxw5TYtSYolwO63hbxvic7CszOGE4nRaI4ODP7XQQOaE0ckm0PdXSANtZSg52+yI+hCk+Kc+MCwNlIj0+FNqy+jXfzIPrB6NKEKBDpmIOGSz8aMDNPakIeR2ksXN/GIMEajuducAtgc0HOihYFajgPdNXLfsZBuEaBTeXetpP0fCoUVXBN2DWliFwfRfVGMFmoKo8FyCb0= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec05476c-cd4e-470e-db01-08d720a0e6be X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Aug 2019 10:19:33.3308 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: BzjVIbiN9tilaZEYoxxtd48kgeAiC0LzXZNoVxIzgGirbsvtaepUirdaCujG+1Pi6SGLKIKhEcXQzeZAKjHWlw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3700 Subject: Re: [dpdk-dev] [PATCH 4/6] net/mlx: fix build with make and recent gcc 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" From: Thomas Monjalon > With VERBOSE=3D1, this error was seen in debug mode with gcc 9.1: >=20 > In file included from /tmp/dpdk.auto-config-h.sh.c.w0VWMi:1: > In file included from rdma-core/build/include/infiniband/mlx5dv.h:47: > In file included from rdma-core/build/include/infiniband/verbs.h:46: > In file included from rdma-core/build/include/infiniband/verbs_api.h:66: > In file included from rdma- > core/build/include/infiniband/ib_user_ioctl_verbs.h:38: > include/rdma/ib_user_verbs.h:161:28: fatal error: > zero size arrays are an extension [-Wzero-length-array] > __aligned_u64 driver_data0; > ^ > 1 error generated. >=20 > As a result, buildtools/auto-config-h.sh was not generating a correct > autoconf file, so the compilation was generating such error: >=20 > fatal error: redefinition of > 'mlx5_ib_uapi_flow_action_packet_reformat_type' >=20 > It is fixed by disabling -pedantic option when calling auto-config-h.sh f= rom > the makefile-based system. >=20 > Cc: adrien.mazarguil@6wind.com > Cc: stable@dpdk.org >=20 > Signed-off-by: Thomas Monjalon Acked-by: Matan Azrad Consider to create more patches to cleanup the compiler commands to ignore = pedantic in the code. Matan