Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751886AbdHXJEr (ORCPT ); Thu, 24 Aug 2017 05:04:47 -0400 Received: from mail-db5eur01on0059.outbound.protection.outlook.com ([104.47.2.59]:26432 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751249AbdHXJEo (ORCPT ); Thu, 24 Aug 2017 05:04:44 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=tariqt@mellanox.com; Subject: Re: [PATCH] net/mlx4_core: make mlx4_profile const To: Bhumika Goyal , julia.lawall@lip6.fr, tariqt@mellanox.com, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org References: <1503492459-3110-1-git-send-email-bhumirks@gmail.com> From: Tariq Toukan Message-ID: Date: Thu, 24 Aug 2017 12:04:32 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1503492459-3110-1-git-send-email-bhumirks@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [193.47.165.251] X-ClientProxiedBy: HE1PR09CA0071.eurprd09.prod.outlook.com (2603:10a6:7:3d::15) To VI1PR05MB1807.eurprd05.prod.outlook.com (2a01:111:e400:7a60::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e2c82289-460e-49ce-499e-08d4eacf275c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(48565401081)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:VI1PR05MB1807; X-Microsoft-Exchange-Diagnostics: 1;VI1PR05M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XgHguWVP0RoxzfMy03E5VyorK4GZs3JtO9Xa2F+/D6SWTx901FHMzVcKTXVlCiRb3gftXw3SHxeCfhoAN09yZ9qPhBFRi2pEXq0A/GKik0UVzaLGF2gdKTo1LZlmKByrQCti9z/pE8iYmTOsOC8US8vk1WM1dxeEmded/Fr7f5NoDgU+xr+Gtg2QNo+AZXl0IpDyChCk+RV48L2X1V5CxQ1jrc3jDsJbsHr/6ACbh+I6aIgy2WvbICrVnDO50SPpXRm8Mlq/TSGbA5AvD5chBSlQv2r+Wodp6HjKvwGgXAEFuQ9HToiQT88WlvVPL2UDnyBebiZAv/PlQ2wOF8E0/Ai7pQboAEvRi6Pv;4:44gg1JeSMMVmD9KRO9rhjx132BnlUORc9hRPG7UVUOZQJjDWleF9o8z395MVenOgVyOd3HWLeVyAENyDjdLBvra14tCJ0hu36t9KIa88Hu2JiERnzZHvB5kt7aGQaBC32QlJy95ep8Om56/7F7TUNb+tHsHgA94f8x9vtNYFg6mKQBGaCf2i4Uq/SqffLlM1LBs0gXvdzzXTZ6vL5oxpVab3UAboMw3gwsA7X/6kAjvsANghknpqzt6hr972vCFx X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:VI1PR05MB1807;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:VI1PR05MB1807; X-Forefront-PRVS: 04097B7F7F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(7370300001)(4630300001)(6009001)(6049001)(199003)(24454002)(189002)(377454003)(6666003)(189998001)(31686004)(110136004)(2950100002)(105586002)(77096006)(230700001)(6486002)(106356001)(50986999)(101416001)(76176999)(6246003)(53936002)(229853002)(54356999)(36756003)(42186005)(68736007)(5660300001)(47776003)(50466002)(65806001)(53546010)(81156014)(65956001)(23676002)(2906002)(305945005)(81166006)(7736002)(7350300001)(3846002)(25786009)(65826007)(83506001)(478600001)(4001350100001)(97736004)(64126003)(8676002)(86362001)(33646002)(66066001)(6116002)(31696002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR05MB1807;H:[10.8.2.253];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjA1TUIxODA3OzIzOk5kaGpxajFNcElYWW1GeldmREdkbEJpWmNv?= =?utf-8?B?TjZsbERUait0eHpGSzRvb2RReXl3U3B4WHY0Z3Q4TnBJSmtuajBGdlRJQTdQ?= =?utf-8?B?UCtCK3BCNEJDbXlpMDl0T05iY2YxeFdoZjhFY0FScUl6VEtNYzV4R3l2QkdC?= =?utf-8?B?TS9yRkxCNEozdzhHS2lWdS9pZy92UzFuNjVva09QWGw2bHVhYzVRZzBDUUh0?= =?utf-8?B?bUtNdWtrSFZSdGZPNU1NZ3RnTklBS1VsSldzV3luU1NBSHI0bTIrTUtkRDdk?= =?utf-8?B?VnVnVDQvbTNWTjdyVkdZRXY3SC9WYVk5MnVTUmpLVkpNWHRncnBPVTJvcE1E?= =?utf-8?B?MTh5dy9zazB4dVJGS2xKai94TTdBTDlBUll5MnExNzcweitjZDVubldtNXZD?= =?utf-8?B?eVA3eXdTNGRRUzJjQnVyUDEyNEtIUVpEODg5RUV6dkNXdXV5bG9KTUp5M2E0?= =?utf-8?B?aFZGdmptQ3cySFFGNFhROE1HRkZIb2lPK1F1bCtyMjRCdkVaUHlHQ1F4WGY5?= =?utf-8?B?S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PVO6ZfC9xJowYHz0pvTVnAIVI1YNEFw1d3Maj2sUA=;7:ScUQ3af/DdYDUTuHMuxLiLlwlBQaqnf/M1C99m912p8kAh5agZk8Eh8uo/W7WNwY9moIqiKNevW25G41F0wO/vCaURX4FNmp+SDkB6GrDU3jat9Ao60AIqSRiK1q7FyT4fTkkYpd+idfYIQ0SUbR3/1b4gpv3+p+zGFYAURtasXNR2f1jOtx/nCIPtGpbSck/VkiMRpxhmnYMG05uUhqjIFmXOutBSwnq/5ALM9LdNM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2017 09:04:39.4009 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB1807 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1148 Lines: 37 On 23/08/2017 3:47 PM, Bhumika Goyal wrote: > Make these const as they are only used in a copy operation. > > Signed-off-by: Bhumika Goyal > --- > drivers/net/ethernet/mellanox/mlx4/main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c > index 541ce9e..43fb2eb 100644 > --- a/drivers/net/ethernet/mellanox/mlx4/main.c > +++ b/drivers/net/ethernet/mellanox/mlx4/main.c > @@ -121,7 +121,7 @@ > DRV_NAME ": Mellanox ConnectX core driver v" > DRV_VERSION "\n"; > > -static struct mlx4_profile default_profile = { > +static const struct mlx4_profile default_profile = { > .num_qp = 1 << 18, > .num_srq = 1 << 16, > .rdmarc_per_qp = 1 << 4, > @@ -131,7 +131,7 @@ > .num_mtt = 1 << 20, /* It is really num mtt segements */ > }; > > -static struct mlx4_profile low_mem_profile = { > +static const struct mlx4_profile low_mem_profile = { > .num_qp = 1 << 17, > .num_srq = 1 << 6, > .rdmarc_per_qp = 1 << 4, > Thanks Bhumika. Reviewed-by: Tariq Toukan