Re: [PATCH] s390/zcrypt: Convert use of __constant_cpu_to_le16 to cpu_to_le16

2015-06-15 Thread Ingo Tuchscherer
ux-s...@vger.kernel.org, linux-kernel@vger.kernel.org, Julia Lawall Date: 06/10/2015 01:01 PM Subject: [PATCH] s390/zcrypt: Convert use of __constant_cpu_to_le16 to cpu_to_le16 In big endian cases, the macro cpu_to_le16 unfolds to __swab16 which provides special

Re: [PATCH] s390/zcrypt: Convert use of __constant_cpu_to_le16 to cpu_to_le16

2015-06-15 Thread Ingo Tuchscherer
...@linux.vnet.ibm.com, linux-s...@vger.kernel.org, linux-kernel@vger.kernel.org, Julia Lawall julia.law...@lip6.fr Date: 06/10/2015 01:01 PM Subject:[PATCH] s390/zcrypt: Convert use of __constant_cpu_to_le16 to cpu_to_le16 In big endian cases, the macro cpu_to_le16

[PATCH] s390/zcrypt: Convert use of __constant_cpu_to_le16 to cpu_to_le16

2015-06-10 Thread Vaishali Thakkar
In big endian cases, the macro cpu_to_le16 unfolds to __swab16 which provides special case for constants. In little endian cases, __constant_cpu_to_le16 and cpu_to_le16 expand directly to the same expression. So, replace __constant_cpu_to_le16 with cpu_to_le16 with the goal of getting rid of the

[PATCH] s390/zcrypt: Convert use of __constant_cpu_to_le16 to cpu_to_le16

2015-06-10 Thread Vaishali Thakkar
In big endian cases, the macro cpu_to_le16 unfolds to __swab16 which provides special case for constants. In little endian cases, __constant_cpu_to_le16 and cpu_to_le16 expand directly to the same expression. So, replace __constant_cpu_to_le16 with cpu_to_le16 with the goal of getting rid of the