#endif
#endif /* FIO_HAVE_BYTEORDER_FUNCS */
+#ifdef FIO_INTERNAL
#define le16_to_cpu(val) ({ \
+ typecheck(uint16_t, val); \
__le16_to_cpu(val); \
})
#define le32_to_cpu(val) ({ \
+ typecheck(uint32_t, val); \
__le32_to_cpu(val); \
})
#define le64_to_cpu(val) ({ \
- __le64_to_cpu(val); \
+ typecheck(uint64_t, val); \
+ __le64_to_cpu(val); \
})
+#endif
+
#define cpu_to_le16(val) ({ \
+ typecheck(uint16_t, val); \
__cpu_to_le16(val); \
})
#define cpu_to_le32(val) ({ \
+ typecheck(uint32_t, val); \
__cpu_to_le32(val); \
})
#define cpu_to_le64(val) ({ \
+ typecheck(uint64_t, val); \
__cpu_to_le64(val); \
})
}
#endif
-#ifndef CONFIG_CPU_COUNT
+#ifndef CPU_COUNT
#ifdef FIO_HAVE_CPU_AFFINITY
static inline int CPU_COUNT(os_cpu_mask_t *mask)
{