Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752845AbbFXRTE (ORCPT ); Wed, 24 Jun 2015 13:19:04 -0400 Received: from mail-by2on0090.outbound.protection.outlook.com ([207.46.100.90]:10704 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752853AbbFXRSv (ORCPT ); Wed, 24 Jun 2015 13:18:51 -0400 X-Greylist: delayed 96192 seconds by postgrey-1.27 at vger.kernel.org; Wed, 24 Jun 2015 13:18:51 EDT Authentication-Results: spf=pass (sender IP is 63.163.107.173) smtp.mailfrom=sandisk.com; intel.com; dkim=none (message not signed) header.d=none; X-AuditID: ac160a69-f790f6d000001879-07-558ae6750fe2 Message-ID: <558AE674.3080805@sandisk.com> Date: Wed, 24 Jun 2015 10:18:44 -0700 From: Bart Van Assche User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Vaishali Thakkar , Doug Ledford CC: Sean Hefty , Hal Rosenstock , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] IB/srpt: Convert use of __constant_cpu_to_beXX to cpu_to_beXX References: <20150624044213.GA4998@vaishali-Ideapad-Z570> In-Reply-To: <20150624044213.GA4998@vaishali-Ideapad-Z570> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpkkeLIzCtJLcpLzFFi42JZI8azSLf0WVeoweVrIhYvz39gtdi4eSKj xeVdc9gsnh3qZbFoXr+BxeL5ymusDmweO2fdZfdYvOclk8f7fVfZPD5vkgtgieKySUnNySxL LdK3S+DKuHdwAlPBDJaK690bmBsYTzF3MXJySAiYSDQ/2scEYYtJXLi3nq2LkYtDSOAEo8SJ t4uhnB2MEl13ZjDCdDQc72YFsYUEdjNKvH9tCGLzCmhJPLy5DmgSBweLgK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1XjU62SGy9+T21M3h87c92OE+FmeQ9yq/q4byx81mt+Lbvh0JPGhPy0f8075169+qvngcE0 prKsOyHzq0+0Sgd5v3GodnZvOCajF1ayNcTNjiWyft3S95HW+iufRWSpP29RYinOSDTUYi4q TgQA0IMoOwsCAAA= X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD014;1:St8vnfeLpWVBFeSWKiSGdmQJ8fr1hts9EDGKrQW8468zUEak2HOtDsTyk/8Q7yAYlhpGG1Tk50NosNoNv4tSNU3X3a33Q1vjZIdV+YPHhNB4MD9yx1tBhihPvSbS7jXjW6+glim1m7bhWg57qgeFpTYQo8GJT7ypyGRoWUw5WlJeITAvnZ6tXkHCzhfywhI/4KjOdqewuEoYpwCJ7IYRupzGxOM+k/EjvTQi4nDUf4jZ2b7Yw/RLfJFZCgDEtEydGS8GBg1ZzSteAOdspz3zxBwiHzoNJqiLmvB2D1CYvo2e+6eCN0NBL5v0g06T2H7SdUqzKY0Q2qfXpwCo9lAtug== X-Forefront-Antispam-Report: CIP:63.163.107.173;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(24454002)(199003)(189002)(479174004)(377454003)(5003600100002)(77096005)(19580395003)(19580405001)(80316001)(5001960100002)(47776003)(87936001)(86362001)(65806001)(189998001)(50466002)(76176999)(92566002)(2950100001)(54356999)(65816999)(50986999)(64126003)(53416004)(106466001)(5001770100001)(23676002)(36756003)(33656002)(83506001)(62966003)(46102003)(77156002)(4001350100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR02MB1250;H:milsmgep12.sandisk.com;FPR:;SPF:Pass;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB1250;2:Vp0yW02u9D6/A++Gy+Mkur5MUKej3JfIDJUBfDHD6yJZnItpWLwLGkfNozm4UvZS;3:a3N5cCqwo36P5qE3pK0Y6r1mpVA7hfbWBQO1U9GjybpuO9AKhVT6Ly9GTCvgBgVq1tFUrHi51zqlB73LPjvVEOFbH0RCefNAcPlJX96unkvzsv/6/xzoCm55hCqeMJoiPuVChAxd9apgxXMvnnAJ6GRNSUQ5g+F/FY7ZjYE4jz7hvnuhRprQI3sB4RbVUBAXUurabldxxXWuEDQoxJNu7We/0AClSur7AeSGKcn+rlKFmRowM2P/h5Tr4vg8rt4f;20:KBEelKyuafTWtyyGgeV0qC0Ffq1M3uhD1e9ELCATQxBuCQyBDZOmigpglprd6ce641kOvukiNs8fQb8aXme0Ts5m0PyGObHMecuCvwSiEMhEgusJC4Moz1a5iL5w3wU6doXB5mAyaX+gtqMVS3NTMuBcvrpyptZ5rWCBh9EnegW7r0LeDkJhDZwn1MMfBzvneiNn92WLRcTn2ZyvB16aKepkPhO1odA7M37DfrBQoREGi00pwbBHZhIPV364XGraO/ScMWhXIZdvtQ0PPTzfm59b0o7O7oZrCB+hYYH8E1OByTZ7PeKJtEuMDA3KgmtLumRgxJ1mHp6yrqJcDSviNf3UoKrWce/LAKkuEiN7j8Nsd8Gi5EPldMQcc5R8m3fM5HwBCIBYz7wZf+S+/EMvoT09NzfDZKMWcZ+J7slvjnLWrJ7RV3kYY1aND79bclPK1UfRIermZPrPhDuytDGeM6p+ew0pvV8DRLEd3ymTuOXWb6LIQjpBfvlA/sXQO2+k X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR02MB1250;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR02MB1681; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BLUPR02MB1250;BCL:0;PCL:0;RULEID:;SRVR:BLUPR02MB1250; X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB1250;4:oATmAAIKsbJI13p4C90FV8i/92woIFHf0jZ41zH8fs7Cp0zmAJMLfhyErDETP4txE3ze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VO0PIc/aMSxA==;24:iajnCZihLCzq8ZNgZ9gJIsMMRG/hv5q//fynxEBozAOPqv0EI1dzxOGqY9MnX196n1F7Wp9QyQpL8KlEobcEUNRj/YoPh9U9H0IUxEsQUG8=;20:qs7Tw3ZqVFj82YBAsJaw1SxNrz/1xkJh4/D2JPFQ6kvso64JQJ8Iur8zqfoQM11KdrWrj/mqOhLLKjc5LKqcb2Iz3CnsaNfp+yiW7LnRsx+6Ybhxnb/g7VGly+YIfDvytYQhVKahrmwSA0mBiy/P4Wba6+1DSoiVc0JYvwEpJL0= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2015 17:18:45.7709 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d;Ip=[63.163.107.173];Helo=[milsmgep12.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR02MB1250 X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB1681;2:lWjU93wIex5qk1/zxUaOYLwAGlam+jVswlFGVfPaPS9aLqY8jFtiy2bulVnt3A3u;3:mglLfabZTl3SI04Z2BDT3XDoEVxfgg+ijMhIxzPBvDx5E0dbdxcalhEnF7YR3nT2VyMqh20ajvEbM0kuHn0CVimkb2lPc0Ks88rntHeeqiKsgYV3m8s5YAUd6+CBrw0Z1pJJGeYRtZxAED/7Pm842ZoRk3s4jdFu+WZhp/PhG2GfyGcT8sGNQsPxWIXOM4HPbrOgrnCBYfKHI4+4QNVGK9EdsSqDxINqzMQL++l8n+C9av3C29D1PjLp1ufNEajN;23:llBYKNuEFAq2jNJqoan4NadZjZS02NyWFPdUiZIdFk0OX53wjm5DC3L4ci44VWzxRvTzqbIQw5VqwHg724I0/IMdCykY6/A/O6Qio3F+naASC8gWQLZmWSPzsmRN1A1CNI7LwHs+ekQbevqQMAXIlP5BylVXQEGlV5yA+tD57c04+3EgnwD2J07ZTV+x9djb2FkEWdhD2zO5tbZbs1UAFx4ifWwjsJdJOshFdQc6UJcEAg2sixw2B9qc4FJE5I+p X-OriginatorOrg: sandisk.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 770 Lines: 16 On 06/23/2015 09:42 PM, Vaishali Thakkar wrote: > In little endian cases, the macro cpu_to_be{16,32,64} unfolds to > __swab{16,32,64} which provides special case for constants. In > big endian cases, __constant_cpu_to_be{16,32,64} and > cpu_to_be{16,32,64} expand directly to the same expression. So, > replace __constant_cpu_to_be{16,32,64} with cpu_to_be{16,32,64} > with the goal of getting rid of the definitions of > __constant_cpu_to_be{16,32,64} completely. Reviewed-by: Bart Van Assche -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/