Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-4674 endianness: Fix __{LITTLE,BIG}_ENDIAN macro usage
[fs/lustre-release.git]
/
lnet
/
klnds
/
mxlnd
/
mxlnd_cb.c
diff --git
a/lnet/klnds/mxlnd/mxlnd_cb.c
b/lnet/klnds/mxlnd/mxlnd_cb.c
index
f2a0568
..
104820c
100644
(file)
--- a/
lnet/klnds/mxlnd/mxlnd_cb.c
+++ b/
lnet/klnds/mxlnd/mxlnd_cb.c
@@
-855,7
+855,7
@@
mxlnd_ip2nic_id(u32 ip, u64 *nic_id, int tries)
if (tmp_id == 0ULL)
ret = -EHOSTUNREACH;
-#if
def
__LITTLE_ENDIAN
+#if
__BYTE_ORDER ==
__LITTLE_ENDIAN
*nic_id = ___arch__swab64(tmp_id);
#else
*nic_id = tmp_id;