modpost: Mark uuid_le type to be suitable only for MEI
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 25 Nov 2022 10:12:49 +0000 (12:12 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 26 Nov 2022 23:08:16 +0000 (08:08 +0900)
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>
scripts/mod/file2alias.c

index 7df23905fdf1cb364913514590f2903fbfcf1d49..91c2e7ba5e52c3f5c1ee21664b2eea84c86e551e 100644 (file)
@@ -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 */