]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipath: Convert use of __constant_<foo> to <foo>
authorVaishali Thakkar <vthakkar1994@gmail.com>
Tue, 16 Jun 2015 11:43:05 +0000 (17:13 +0530)
committerDoug Ledford <dledford@redhat.com>
Tue, 14 Jul 2015 17:20:13 +0000 (13:20 -0400)
commit7efc3cd2b53ef125c31c6bb7ea8ef58d7297f261
tree42cea261b7005ffa60f53a3bccad6189178e1f0d
parentf6aea62ee62e53c71a2fb04ca124fc3dd9c45928
IB/ipath: Convert use of __constant_<foo> to <foo>

In little endian cases, the macros be16_to_cpu and cpu_to_be64
unfolds to __swab{16,64} which provides special case for constants.
In big endian cases, __constant_be16_to_cpu and be16_to_cpu
expand directly to the same expression. The same applies for
__constant_cpu_to_be64 and cpu_to_be64.

So, replace __constant_be16_to_cpu with be16_to_cpu and
__constant_cpu_to_be64 with cpu_to_be64, with the goal of getting
rid of the definition of __constant_be16_to_cpu and
__constant_cpu_to_be64 completely.

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/ipath/ipath_verbs.c