|
|
54259b |
From c3d398645dc9edb51573654f97558e493859584b Mon Sep 17 00:00:00 2001
|
|
|
54259b |
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
|
|
|
54259b |
Date: Mon, 5 Nov 2012 09:37:11 +0100
|
|
|
54259b |
Subject: [PATCH] use bswap_X() instead of b_swapX()
|
|
|
54259b |
|
|
|
54259b |
byteswap.h defined interface is bswap_X() not b_swapX()
|
|
|
54259b |
---
|
|
|
54259b |
include/xvm.h | 12 ++++++------
|
|
|
54259b |
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
|
54259b |
|
|
|
54259b |
diff --git a/include/xvm.h b/include/xvm.h
|
|
|
54259b |
index 5b4cfe6..b02c414 100644
|
|
|
54259b |
--- a/include/xvm.h
|
|
|
54259b |
+++ b/include/xvm.h
|
|
|
54259b |
@@ -90,9 +90,9 @@ typedef struct __attribute__ ((packed)) _fence_req {
|
|
|
54259b |
#if __BYTE_ORDER == __BIG_ENDIAN
|
|
|
54259b |
#define swab_fence_req_t(req) \
|
|
|
54259b |
do { \
|
|
|
54259b |
- (req)->seqno = b_swap32((req)->seqno); \
|
|
|
54259b |
- (req)->family = b_swap32((req)->family); \
|
|
|
54259b |
- (req)->port = b_swap32((req)->port); \
|
|
|
54259b |
+ (req)->seqno = bswap_32((req)->seqno); \
|
|
|
54259b |
+ (req)->family = bswap_32((req)->family); \
|
|
|
54259b |
+ (req)->port = bswap_32((req)->port); \
|
|
|
54259b |
} while(0)
|
|
|
54259b |
#else
|
|
|
54259b |
#define swab_fence_req_t(req)
|
|
|
54259b |
@@ -124,8 +124,8 @@ typedef struct __attribute__((packed)) _serial_fence_req {
|
|
|
54259b |
#if __BYTE_ORDER == __BIG_ENDIAN
|
|
|
54259b |
#define swab_serial_req_t(req) \
|
|
|
54259b |
do { \
|
|
|
54259b |
- (req)->magic = b_swap32((req)->magic); \
|
|
|
54259b |
- (req)->seqno = b_swap32((req)->seqno); \
|
|
|
54259b |
+ (req)->magic = bswap_32((req)->magic); \
|
|
|
54259b |
+ (req)->seqno = bswap_32((req)->seqno); \
|
|
|
54259b |
} while(0)
|
|
|
54259b |
#else
|
|
|
54259b |
#define swab_serial_req_t(req)
|
|
|
54259b |
@@ -140,7 +140,7 @@ typedef struct __attribute__((packed)) _serial_fense_resp {
|
|
|
54259b |
#if __BYTE_ORDER == __BIG_ENDIAN
|
|
|
54259b |
#define swab_serial_resp_t(req) \
|
|
|
54259b |
do { \
|
|
|
54259b |
- (req)->magic = b_swap32((req)->magic); \
|
|
|
54259b |
+ (req)->magic = bswap_32((req)->magic); \
|
|
|
54259b |
} while(0)
|
|
|
54259b |
#else
|
|
|
54259b |
#define swab_serial_resp_t(req)
|
|
|
54259b |
--
|
|
|
54259b |
1.7.11.7
|
|
|
54259b |
|