Skip to content

Commit

Permalink
modpost: add guid_t type definition
Browse files Browse the repository at this point in the history
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 <heikki.krogerus@linux.intel.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
  • Loading branch information
Heikki Krogerus authored and Masahiro Yamada committed Sep 4, 2019
1 parent 858805b commit 389c9af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/mod/file2alias.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ typedef Elf64_Addr kernel_ulong_t;
typedef uint32_t __u32;
typedef uint16_t __u16;
typedef unsigned char __u8;
typedef struct {
__u8 b[16];
} guid_t;

/* backwards compatibility, don't use in new code */
typedef struct {
__u8 b[16];
} uuid_le;
Expand Down

0 comments on commit 389c9af

Please sign in to comment.