diff mbox series

modpost: add guid_t type definition

Message ID 20190827111437.22000-1-heikki.krogerus@linux.intel.com (mailing list archive)
State New, archived
Headers show
Series modpost: add guid_t type definition | expand

Commit Message

Heikki Krogerus Aug. 27, 2019, 11:14 a.m. UTC
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>
---
 scripts/mod/file2alias.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Masahiro Yamada Aug. 28, 2019, 3:56 p.m. UTC | #1
On Tue, Aug 27, 2019 at 8:14 PM Heikki Krogerus
<heikki.krogerus@linux.intel.com> wrote:
>
> 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>
> ---

Applied to linux-kbuild. Thanks.


>  scripts/mod/file2alias.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
> index e17a29ae2e97..c91eba751804 100644
> --- a/scripts/mod/file2alias.c
> +++ b/scripts/mod/file2alias.c
> @@ -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
>
diff mbox series

Patch

diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
index e17a29ae2e97..c91eba751804 100644
--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
@@ -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;