Skip to content

Commit

Permalink
modpost: Mark uuid_le type to be suitable only for MEI
Browse files Browse the repository at this point in the history
The uuid_le type is used only in MEI ABI, do not advertise it for others.
While at it, comment out that UUID types are not to be used in a new code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
  • Loading branch information
Andy Shevchenko authored and Masahiro Yamada committed Nov 26, 2022
1 parent 8818039 commit 2480432
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions scripts/mod/file2alias.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,23 @@ typedef Elf64_Addr kernel_ulong_t;
typedef uint32_t __u32;
typedef uint16_t __u16;
typedef unsigned char __u8;

/* UUID types for backward compatibility, don't use in new code */
typedef struct {
__u8 b[16];
} guid_t;

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

#define UUID_STRING_LEN 36

/* MEI UUID type, don't use anywhere else */
typedef struct {
__u8 b[16];
} uuid_le;

/* Big exception to the "don't include kernel headers into userspace, which
* even potentially has different endianness and word sizes, since
* we handle those differences explicitly below */
Expand Down

0 comments on commit 2480432

Please sign in to comment.