From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80071.outbound.protection.outlook.com [40.107.8.71]) by dpdk.org (Postfix) with ESMTP id 007DF4C8C; Thu, 15 Nov 2018 09:49:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cuaRYtlgfFY8V9nHXVvXdaCawHZkj1hG+1Sz0ZCWJE8=; b=qVnJXb96UhwwFIpnGzAdBjab0NeVFXDXFZBH+KGeT2qtGZIoXer5hM37oxl/afHuuiwdYf4iui1FJEXPUTwt7pk/9xR8JhwpcVWeup6MKMSjjvazLBK+/zV36gLtP74Xz2nEzqdIcNIKfVlyil77sMma555p1bt2xt12C0yEkbo= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB5820.eurprd05.prod.outlook.com (20.178.106.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.20; Thu, 15 Nov 2018 08:49:03 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::bc22:c2f5:208d:826f]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::bc22:c2f5:208d:826f%2]) with mapi id 15.20.1294.045; Thu, 15 Nov 2018 08:49:03 +0000 From: Shahaf Shuler To: Ali Alnubani , "dev@dpdk.org" CC: Thomas Monjalon , "stable@dpdk.org" Thread-Topic: [PATCH 1/2] net/mlx4: fix initialization of struct members Thread-Index: AQHUe4ShJVSyO0Kh40mRBIhghppA8qVQiPTA Date: Thu, 15 Nov 2018 08:49:03 +0000 Message-ID: References: <20181113191039.12720-1-alialnu@mellanox.com> In-Reply-To: <20181113191039.12720-1-alialnu@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR05MB5820; 6:2FEu6UaKRgk2eXIV8aoe/LY4zJigbZejG4aWjpHymTbTxIavFWcS3AjvnsLZdB7NqZPuTuQFBNsZuIg/PlTnFUGvcC+xE30NNJ0Mv+M3i9JSsx29KcYNSgGmZ8eymAiUXtm5do0Wz0ZP5NSa3bFAThwO9uq8ONWcSLEZogAdp7jP1R63TVdgHg4x2kv0KNUX3FarPbpfaVnYC2vnKnz8quHq+5N6ddJurA9auaqEzfsHTNJSDGGb1lHYCygoa3wQ0vXUiIISiv71rk+MuF3f4Tajw3GGMg3kakUOH9WmaQyfD6bPG85ldPQggtiQQfhxR3L329NelR86Sp72eHya8TWWFIyxDeviD9bws4rHjJNvDnkknh96CoOgXOqkDAD27XsYRzTY1E5Bdb7Nblr8BcfctHqo4meRKvIQ4Rhf5AmsmC1sVU13DxIaWjGZmKILTmMV96d6lTGqcYHLk1uyEw==; 5:0pDqftuEPXPTMyOTiMgMDMVv4TV2FL8MnouDdDFhvrmd0BQCE1F5F6LX+rl6Y7gsACl+JColLWLmP+fJqEDCWq2KSbwjpU6U0D3DjvHjmXaeAeuo0htx1jKqaPxYVbkMZ3nw5RzgGajWDQ4uqyGkUHBXxHqgcah8pkK+o2s3t5g=; 7:pisCjOfWFxgkeTC+n538BKqtllVQj7Sg2QkmtQwVraPHpgG6ZTn4oCdvFwpsxOmTQ1GDB1SNsI3TTEUM3CotEYDVgUfPen7H5WCH9Z6R5JQGxOdw2MsYNh2dG9ehWBuDpe6gisqxKpWFH4xRkG+ldw== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 56781214-08e6-497b-dcee-08d64ad731e5 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB5820; x-ms-traffictypediagnostic: DB7PR05MB5820: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231415)(944501410)(52105112)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:DB7PR05MB5820; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB5820; x-forefront-prvs: 08572BD77F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(366004)(346002)(136003)(39860400002)(199004)(189003)(53936002)(97736004)(7736002)(105586002)(478600001)(305945005)(102836004)(106356001)(33656002)(66066001)(76176011)(81156014)(2501003)(81166006)(8676002)(6436002)(2900100001)(26005)(9686003)(71200400001)(8936002)(71190400001)(229853002)(55016002)(256004)(14454004)(316002)(6116002)(446003)(3846002)(11346002)(99286004)(186003)(6506007)(110136005)(68736007)(54906003)(5660300001)(25786009)(476003)(486006)(6246003)(2906002)(4326008)(74316002)(86362001)(7696005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB5820; H:DB7PR05MB4426.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-microsoft-antispam-message-info: tAF6cBVZh9MQaYEFAn05GcONrMwY7+TWhdxyJOV7huc4uheTLp17RXb6x5PaQAknixMZF2++bNx9b2feOLTz9Qz7kCubI2B4kMP+ZYSin5IiWSF6B5Cf2Kh+ykUfWBsCkSoEQ6d12DaAOfpSwvmFsnQ8oFUXhSKOEdfzGOhexxxocghKBBQaE2JNXNM66ciP3pzp3UoqR/UAsDAoq2xucEvYyt5Eo6Oc4FC4TL/i8ydCQn4pkBZnvknWKbGpuH/t52WTZps/QxzmBz9lBUiLtX1ABvQZmAu6mU/OGeKrLmmwBWWV7N0T0Mt4/N719FDC7GMo0vtiUVLG3VtxcBF3Vp0KqVNLeM0/SduW16bY3Us= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM 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: 56781214-08e6-497b-dcee-08d64ad731e5 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Nov 2018 08:49:03.4294 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB5820 Subject: Re: [dpdk-dev] [PATCH 1/2] net/mlx4: fix initialization of struct members 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, 15 Nov 2018 08:49:05 -0000 Tuesday, November 13, 2018 9:11 PM, Ali Alnubani: > Subject: [PATCH 1/2] net/mlx4: fix initialization of struct members >=20 > This patch fixes compilation errors with meson and the clang compiler cau= sed > by some of the struct members not being initialized. >=20 > ``` > ../drivers/net/mlx4/mlx4_mr.c:357:37: error: missing field 'end' > initializer [-Werror,-Wmissing-field-initializers] > struct mlx4_mr_cache entry =3D { 0, }; > ^ > ../drivers/net/mlx4/mlx4_mr.c:401:36: error: missing field 'end' > initializer [-Werror,-Wmissing-field-initializers] > struct mlx4_mr_cache ret =3D { 0, }; > ^ > ../drivers/net/mlx4/mlx4_mr.c:691:35: error: missing field 'end' > initializer [-Werror,-Wmissing-field-initializers] > struct mlx4_mr_cache ret =3D { 0, }; > ^ ``` >=20 > The compilation errors reproduce with > clang version 3.4.2 (tags/RELEASE_34/dot2-final) on RHEL. >=20 > Fixes: 9797bfcce1c9 ("net/mlx4: add new memory region support") > Cc: stable@dpdk.org >=20 > Signed-off-by: Ali Alnubani Series applied to next-net-mlx, thanks.=20