diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-11 03:16:24 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-07-24 11:50:37 -0400 |
commit | 832e4c83abc5ec25af77db6c8a0f36d78f1cf825 (patch) | |
tree | c07c26946a8b0e463744d5ccd39c2d796708e063 /include/linux/uuid.h | |
parent | 7c39ffe7a821dfd1f801627e1813f7c025e4c918 (diff) |
uuid: remove uuid_be
Everything uses uuid_t now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'include/linux/uuid.h')
-rw-r--r-- | include/linux/uuid.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/uuid.h b/include/linux/uuid.h index 2251e1925ea4..33b0bdbb613c 100644 --- a/include/linux/uuid.h +++ b/include/linux/uuid.h | |||
@@ -84,26 +84,12 @@ int guid_parse(const char *uuid, guid_t *u); | |||
84 | int uuid_parse(const char *uuid, uuid_t *u); | 84 | int uuid_parse(const char *uuid, uuid_t *u); |
85 | 85 | ||
86 | /* backwards compatibility, don't use in new code */ | 86 | /* backwards compatibility, don't use in new code */ |
87 | typedef uuid_t uuid_be; | ||
88 | #define UUID_BE(a, _b, c, d0, d1, d2, d3, d4, d5, d6, d7) \ | ||
89 | UUID_INIT(a, _b, c, d0, d1, d2, d3, d4, d5, d6, d7) | ||
90 | #define NULL_UUID_BE \ | ||
91 | UUID_BE(0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, \ | ||
92 | 0x00, 0x00, 0x00, 0x00) | ||
93 | |||
94 | #define uuid_le_gen(u) guid_gen(u) | 87 | #define uuid_le_gen(u) guid_gen(u) |
95 | #define uuid_be_gen(u) uuid_gen(u) | ||
96 | #define uuid_le_to_bin(guid, u) guid_parse(guid, u) | 88 | #define uuid_le_to_bin(guid, u) guid_parse(guid, u) |
97 | #define uuid_be_to_bin(uuid, u) uuid_parse(uuid, u) | ||
98 | 89 | ||
99 | static inline int uuid_le_cmp(const guid_t u1, const guid_t u2) | 90 | static inline int uuid_le_cmp(const guid_t u1, const guid_t u2) |
100 | { | 91 | { |
101 | return memcmp(&u1, &u2, sizeof(guid_t)); | 92 | return memcmp(&u1, &u2, sizeof(guid_t)); |
102 | } | 93 | } |
103 | 94 | ||
104 | static inline int uuid_be_cmp(const uuid_t u1, const uuid_t u2) | ||
105 | { | ||
106 | return memcmp(&u1, &u2, sizeof(uuid_t)); | ||
107 | } | ||
108 | |||
109 | #endif | 95 | #endif |