]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Replace __raw_write*(cpu_to_le*()) with LE write*()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 14 Feb 2018 18:11:17 +0000 (20:11 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 14 Feb 2018 23:32:54 +0000 (16:32 -0700)
commit7fa64ee79e1d7fefb7a0baa9f26c1cfce773b897
tree9f5077b30ab52481446ad78b3cf1882662d17eff
parent91cb5bd6388873d47d69c7fc95b3bd1168ce346e
RDMA/hns: Replace __raw_write*(cpu_to_le*()) with LE write*()

There is no need to repeat the semantics of writel() and similar.
Moreover sparse complains about this:

drivers/infiniband/hw/hns/hns_roce_hw_v1.c:1690:22: expected unsigned long long val
drivers/infiniband/hw/hns/hns_roce_hw_v1.c:1690:22: got restricted __le64 <noident>

Fixing this by replacing __raw_write*(cpu_to_le*()) calls by plain
write*() ones.

Note, write*() accessors are little endian by definition.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c