RE: [PATCH rdma-core 04/10] Do not use kernel byteswap macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> These days the version in glibc's endian.h is just as good, since
> gcc 4.3 (we support no earlier compiler) this just boils down to
> __builtin_bswap which is a constant expression if the input is constant.
> 
> Done via
> 
> $ git ls-files | xargs sed -i -e 's/__constant_cpu_to_be64/htobe64/g'
> $ git ls-files | xargs sed -i -e 's/__cpu_to_be64/htobe64/g'
> $ git ls-files | xargs sed -i -e 's/__be64_to_cpu/be64toh/g'
> 
> Signed-off-by: Jason Gunthorpe <jgunthorpe@xxxxxxxxxxxxxxxxxxxx>
> ---
>  iwpmd/iwarp_pm_common.c   | 5 +++--
>  libibcm/cm.h              | 6 +++---
>  libibcm/examples/cmpost.c | 7 +++----
>  3 files changed, 9 insertions(+), 9 deletions(-)

iwpmd parts look fine.

Reviewed-by: Steve Wise <swise@xxxxxxxxxxxxxxxxxxxxx>


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux