for external ioengines. leXX_to_cpu is a very common
declaration - e.g. Ceph is using this as well.
Signed-off-by: Daniel Gollub <daniel.gollub@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
#endif
#endif /* FIO_HAVE_BYTEORDER_FUNCS */
+#ifdef FIO_INTERNAL
#define le16_to_cpu(val) ({ \
__le16_to_cpu(val); \
})
#define le64_to_cpu(val) ({ \
__le64_to_cpu(val); \
})
+#endif
+
#define cpu_to_le16(val) ({ \
__cpu_to_le16(val); \
})