Skip to content

Commit d13678e

Browse files
andy-shevjfvogel
authored andcommitted
x86/MCE: Switch to use the new generic UUID API
Switch the code to use the new, generic helpers. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Tony Luck <[email protected]> Cc: x86-ml <[email protected]> Link: https://lkml.kernel.org/r/[email protected] (cherry picked from commit b62928f) Orabug: 29547647 Signed-off-by: Somasundaram Krishnasamy <[email protected]> Reviewed-by: John Donnelly <[email protected]>
1 parent 54c4b2a commit d13678e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/x86/kernel/cpu/mce/apei.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ void apei_mce_report_mem_error(int severity, struct cper_sec_mem_err *mem_err)
6464
EXPORT_SYMBOL_GPL(apei_mce_report_mem_error);
6565

6666
#define CPER_CREATOR_MCE \
67-
UUID_LE(0x75a574e3, 0x5052, 0x4b29, 0x8a, 0x8e, 0xbe, 0x2c, \
68-
0x64, 0x90, 0xb8, 0x9d)
67+
GUID_INIT(0x75a574e3, 0x5052, 0x4b29, 0x8a, 0x8e, 0xbe, 0x2c, \
68+
0x64, 0x90, 0xb8, 0x9d)
6969
#define CPER_SECTION_TYPE_MCE \
70-
UUID_LE(0xfe08ffbe, 0x95e4, 0x4be7, 0xbc, 0x73, 0x40, 0x96, \
71-
0x04, 0x4a, 0x38, 0xfc)
70+
GUID_INIT(0xfe08ffbe, 0x95e4, 0x4be7, 0xbc, 0x73, 0x40, 0x96, \
71+
0x04, 0x4a, 0x38, 0xfc)
7272

7373
/*
7474
* CPER specification (in UEFI specification 2.3 appendix N) requires
@@ -135,7 +135,7 @@ ssize_t apei_read_mce(struct mce *m, u64 *record_id)
135135
goto out;
136136
/* try to skip other type records in storage */
137137
else if (rc != sizeof(rcd) ||
138-
uuid_le_cmp(rcd.hdr.creator_id, CPER_CREATOR_MCE))
138+
!guid_equal(&rcd.hdr.creator_id, &CPER_CREATOR_MCE))
139139
goto retry;
140140
memcpy(m, &rcd.mce, sizeof(*m));
141141
rc = sizeof(*m);

0 commit comments

Comments
 (0)