-#ifdef FIO_LITTLE_ENDIAN
-#define __le16_to_cpu(x) (x)
-#define __le32_to_cpu(x) (x)
-#define __le64_to_cpu(x) (x)
-#define __cpu_to_le16(x) (x)
-#define __cpu_to_le32(x) (x)
-#define __cpu_to_le64(x) (x)
-#else
-#define __le16_to_cpu(x) __bswap_16(x)
-#define __le32_to_cpu(x) __bswap_32(x)
-#define __le64_to_cpu(x) __bswap_64(x)
-#define __cpu_to_le16(x) __bswap_16(x)
-#define __cpu_to_le32(x) __bswap_32(x)
-#define __cpu_to_le64(x) __bswap_64(x)
-#endif
-
-#define le16_to_cpu(val) ({ \
- uint16_t *__val = &(val); \
- __le16_to_cpu(*__val); \
-})
-#define le32_to_cpu(val) ({ \
- uint32_t *__val = &(val); \
- __le32_to_cpu(*__val); \
-})
-#define le64_to_cpu(val) ({ \
- uint64_t *__val = &(val); \
- __le64_to_cpu(*__val); \
-})
-#define cpu_to_le16(val) ({ \
- uint16_t *__val = &(val); \
- __cpu_to_le16(*__val); \
-})
-#define cpu_to_le32(val) ({ \
- uint32_t *__val = &(val); \
- __cpu_to_le32(*__val); \
-})
-#define cpu_to_le64(val) ({ \
- uint64_t *__val = &(val); \
- __cpu_to_le64(*__val); \
-})
-