diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-27 20:17:27 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-30 23:14:00 -0400 |
| commit | b144ce2d37619e05afdb0a15676500d76a64b1be (patch) | |
| tree | c896c3c2cb4bc8135afb9f5128b38f250695c545 /scripts | |
| parent | 039ae58503f3349157a852c2cd5555a630f0bfaf (diff) | |
mei: fix up uuid matching
A previous commit, c93b76b34b4d ("mei: bus: report also uuid in module
alias") caused a build error as I missed applying a needed patch to add
some macros to uapi/linux/uuid.h. Instead of those additional macros,
change the mei code to use the existing uuid structure directly.
Fixes: c93b76b34b4d
Cc: Tomas Winkler <tomas.winkler@intel.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mod/file2alias.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 62c517f4b592..718b2a29bd43 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
| @@ -34,6 +34,9 @@ typedef Elf64_Addr kernel_ulong_t; | |||
| 34 | typedef uint32_t __u32; | 34 | typedef uint32_t __u32; |
| 35 | typedef uint16_t __u16; | 35 | typedef uint16_t __u16; |
| 36 | typedef unsigned char __u8; | 36 | typedef unsigned char __u8; |
| 37 | typedef struct { | ||
| 38 | __u8 b[16]; | ||
| 39 | } uuid_le; | ||
| 37 | 40 | ||
| 38 | /* Big exception to the "don't include kernel headers into userspace, which | 41 | /* Big exception to the "don't include kernel headers into userspace, which |
| 39 | * even potentially has different endianness and word sizes, since | 42 | * even potentially has different endianness and word sizes, since |
| @@ -131,13 +134,13 @@ static inline void add_wildcard(char *str) | |||
| 131 | strcat(str + len, "*"); | 134 | strcat(str + len, "*"); |
| 132 | } | 135 | } |
| 133 | 136 | ||
| 134 | static inline void add_uuid(char *str, __u8 uuid[16]) | 137 | static inline void add_uuid(char *str, uuid_le uuid) |
| 135 | { | 138 | { |
| 136 | int len = strlen(str); | 139 | int len = strlen(str); |
| 137 | int i; | 140 | int i; |
| 138 | 141 | ||
| 139 | for (i = 0; i < 16; i++) | 142 | for (i = 0; i < 16; i++) |
| 140 | sprintf(str + len + (i << 1), "%02x", uuid[i]); | 143 | sprintf(str + len + (i << 1), "%02x", uuid.b[i]); |
| 141 | } | 144 | } |
| 142 | 145 | ||
| 143 | /** | 146 | /** |
