projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Run the gluster engines through indent
[fio.git]
/
os
/
os.h
diff --git
a/os/os.h
b/os/os.h
index 7f92d1bc710bbf84a13c582a7e0d5c7893b36697..b8eee66a14501fd2d083dda2920684940b7cb815 100644
(file)
--- a/
os/os.h
+++ b/
os/os.h
@@
-200,29
+200,26
@@
static inline uint64_t fio_swap64(uint64_t val)
#endif
#endif /* FIO_HAVE_BYTEORDER_FUNCS */
#endif
#endif /* FIO_HAVE_BYTEORDER_FUNCS */
+#ifdef FIO_INTERNAL
#define le16_to_cpu(val) ({ \
#define le16_to_cpu(val) ({ \
- uint16_t *__val = &(val); \
- __le16_to_cpu(*__val); \
+ __le16_to_cpu(val); \
})
#define le32_to_cpu(val) ({ \
})
#define le32_to_cpu(val) ({ \
- uint32_t *__val = &(val); \
- __le32_to_cpu(*__val); \
+ __le32_to_cpu(val); \
})
#define le64_to_cpu(val) ({ \
})
#define le64_to_cpu(val) ({ \
- uint64_t *__val = &(val); \
- __le64_to_cpu(*__val); \
+ __le64_to_cpu(val); \
})
})
+#endif
+
#define cpu_to_le16(val) ({ \
#define cpu_to_le16(val) ({ \
- uint16_t *__val = &(val); \
- __cpu_to_le16(*__val); \
+ __cpu_to_le16(val); \
})
#define cpu_to_le32(val) ({ \
})
#define cpu_to_le32(val) ({ \
- uint32_t *__val = &(val); \
- __cpu_to_le32(*__val); \
+ __cpu_to_le32(val); \
})
#define cpu_to_le64(val) ({ \
})
#define cpu_to_le64(val) ({ \
- uint64_t *__val = &(val); \
- __cpu_to_le64(*__val); \
+ __cpu_to_le64(val); \
})
#ifndef FIO_HAVE_BLKTRACE
})
#ifndef FIO_HAVE_BLKTRACE
@@
-327,7
+324,7
@@
static inline unsigned int cpus_online(void)
}
#endif
}
#endif
-#ifndef C
ONFIG_C
PU_COUNT
+#ifndef CPU_COUNT
#ifdef FIO_HAVE_CPU_AFFINITY
static inline int CPU_COUNT(os_cpu_mask_t *mask)
{
#ifdef FIO_HAVE_CPU_AFFINITY
static inline int CPU_COUNT(os_cpu_mask_t *mask)
{