linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] modpost: add guid_t type definition
@ 2019-08-27 11:14 Heikki Krogerus
  2019-08-28 15:56 ` Masahiro Yamada
  0 siblings, 1 reply; 2+ messages in thread
From: Heikki Krogerus @ 2019-08-27 11:14 UTC (permalink / raw)
  To: Masahiro Yamada, Michal Marek; +Cc: linux-kbuild, linux-kernel

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(+)

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] modpost: add guid_t type definition
  2019-08-27 11:14 [PATCH] modpost: add guid_t type definition Heikki Krogerus
@ 2019-08-28 15:56 ` Masahiro Yamada
  0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2019-08-28 15:56 UTC (permalink / raw)
  To: Heikki Krogerus
  Cc: Michal Marek, Linux Kbuild mailing list, Linux Kernel Mailing List

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
>


-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-28 15:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-27 11:14 [PATCH] modpost: add guid_t type definition Heikki Krogerus
2019-08-28 15:56 ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).