Skip to content

Commit 389c9af

Browse files
Heikki Krogerusmasahir0y
authored andcommitted
modpost: add guid_t type definition
Since guid_t is the recommended data type for UUIDs in kernel (and I guess uuid_le is meant to be ultimately replaced with it), it should be made available here as well. Signed-off-by: Heikki Krogerus <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 858805b commit 389c9af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/mod/file2alias.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ typedef Elf64_Addr kernel_ulong_t;
3434
typedef uint32_t __u32;
3535
typedef uint16_t __u16;
3636
typedef unsigned char __u8;
37+
typedef struct {
38+
__u8 b[16];
39+
} guid_t;
40+
41+
/* backwards compatibility, don't use in new code */
3742
typedef struct {
3843
__u8 b[16];
3944
} uuid_le;

0 commit comments

Comments
 (0)