Skip to contentSkip to conversation

modpost: add guid_t type definition

PATCH In review Heikki Krogerus 2 participants 2 messages Aug 27, 2019 – Aug 28, 2019 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 scripts/mod/file2alias.c | 5 +++++
 1 file changed, 5 insertions(+)
scripts/mod/file2alias.c +5 -0
index e17a29ae2e97..c91eba751804 100644
@@ -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;
Signature · 1 line
2.23.0.rc1
#1 lore raw
Quoted 8 lines · Heikki Krogerus

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.

---

Applied to linux-kbuild. Thanks.

Quoted 22 lines
 scripts/mod/file2alias.c | 5 +++++
 1 file changed, 5 insertions(+)
scripts/mod/file2alias.c +5 -1
index e17a29ae2e97..c91eba751804 100644
@@ -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;
--

2.23.0.rc1

Signature · 2 lines
Best Regards
Masahiro Yamada