for external ioengines. leXX_to_cpu is a very common
declaration - e.g. Ceph is using this as well.

Signed-off-by: Daniel Gollub <[email protected]>
---
 os/os.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/os/os.h b/os/os.h
index 98b4532..b8eee66 100644
--- a/os/os.h
+++ b/os/os.h
@@ -200,6 +200,7 @@ static inline uint64_t fio_swap64(uint64_t val)
 #endif
 #endif /* FIO_HAVE_BYTEORDER_FUNCS */
 
+#ifdef FIO_INTERNAL
 #define le16_to_cpu(val) ({                    \
        __le16_to_cpu(val);                     \
 })
@@ -209,6 +210,8 @@ static inline uint64_t fio_swap64(uint64_t val)
 #define le64_to_cpu(val) ({                    \
        __le64_to_cpu(val);                             \
 })
+#endif
+
 #define cpu_to_le16(val) ({                    \
        __cpu_to_le16(val);                     \
 })
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to