History

uuid: remove uuid_be defintions from the uapi header

We don't use uuid_be and the UUID_BE constants in any uapi headers, so make them private to the kernel.

Christoph Hellwig committed 9 years ago

Commit 60927bc1 parent 12ce5f82 files · +15 −16Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/uuid.h+0−16
@@ -24,10 +24,6 @@ typedef struct { · 23 unmodified lines
2424 __u8 b[16];
2525 } uuid_le;
2626
27−typedef struct {
28− __u8 b[16];
29−} uuid_be;
30−
3127 #define UUID_LE(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) \
3228 ((uuid_le) \
3329 {{ (a) & 0xff, ((a) >> 8) & 0xff, ((a) >> 16) & 0xff, ((a) >> 24) & 0xff, \
@@ -35,20 +31,8 @@ typedef struct { · 1 unmodified line
3531 (c) & 0xff, ((c) >> 8) & 0xff, \
3632 (d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7) }})
3733
38−#define UUID_BE(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) \
39−((uuid_be) \
40−{{ ((a) >> 24) & 0xff, ((a) >> 16) & 0xff, ((a) >> 8) & 0xff, (a) & 0xff, \
41− ((b) >> 8) & 0xff, (b) & 0xff, \
42− ((c) >> 8) & 0xff, (c) & 0xff, \
43− (d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7) }})
44−
4534 #define NULL_UUID_LE \
4635 UUID_LE(0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, \
4736 0x00, 0x00, 0x00, 0x00)
4837
49−#define NULL_UUID_BE \
50− UUID_BE(0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, \
51− 0x00, 0x00, 0x00, 0x00)
52−
53−
5438 #endif /* _UAPI_LINUX_UUID_H_ */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t