[kpartx] shut a build warning
[platform/upstream/multipath-tools.git] / kpartx / byteorder.h
1 #ifndef BYTEORDER_H_INCLUDED
2 #define BYTEORDER_H_INCLUDED
3
4 #if defined (__s390__) || defined (__s390x__)
5 #define le32_to_cpu(x)  ( \
6                 (*(((unsigned char *) &(x)))) + \
7                 (*(((unsigned char *) &(x))+1) << 8) + \
8                 (*(((unsigned char *) &(x))+2) << 16) + \
9                 (*(((unsigned char *) &(x))+3) << 24) \
10         )
11 #else
12 #define le32_to_cpu(x)  (x)
13 #endif
14
15 #endif                          /* BYTEORDER_H_INCLUDED */