]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
modpost: add guid_t type definition
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 27 Aug 2019 11:14:37 +0000 (14:14 +0300)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 4 Sep 2019 13:55:42 +0000 (22:55 +0900)
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>
scripts/mod/file2alias.c

index e17a29ae2e97adfbf4dcd576452ca807427c37a7..c91eba751804bd64a3f2b1230c82f504ec7eb2f7 100644 (file)
@@ -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;