Skip to content

Commit 2480432

Browse files
andy-shevmasahir0y
authored andcommitted
modpost: Mark uuid_le type to be suitable only for MEI
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 <[email protected]>
1 parent 8818039 commit 2480432

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

scripts/mod/file2alias.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,23 @@ typedef Elf64_Addr kernel_ulong_t;
3434
typedef uint32_t __u32;
3535
typedef uint16_t __u16;
3636
typedef unsigned char __u8;
37+
38+
/* UUID types for backward compatibility, don't use in new code */
3739
typedef struct {
3840
__u8 b[16];
3941
} guid_t;
4042

41-
/* backwards compatibility, don't use in new code */
42-
typedef struct {
43-
__u8 b[16];
44-
} uuid_le;
4543
typedef struct {
4644
__u8 b[16];
4745
} uuid_t;
46+
4847
#define UUID_STRING_LEN 36
4948

49+
/* MEI UUID type, don't use anywhere else */
50+
typedef struct {
51+
__u8 b[16];
52+
} uuid_le;
53+
5054
/* Big exception to the "don't include kernel headers into userspace, which
5155
* even potentially has different endianness and word sizes, since
5256
* we handle those differences explicitly below */

0 commit comments

Comments
 (0)