Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/MCE: Switch to use the new generic UUID API

Switch the code to use the new, generic helpers.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/20190110153645.40649-1-andriy.shevchenko@linux.intel.com

authored by

Andy Shevchenko and committed by
Borislav Petkov
b62928ff 1c7fc5cb

+5 -5
+5 -5
arch/x86/kernel/cpu/mce/apei.c
··· 64 64 EXPORT_SYMBOL_GPL(apei_mce_report_mem_error); 65 65 66 66 #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) 69 69 #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) 72 72 73 73 /* 74 74 * CPER specification (in UEFI specification 2.3 appendix N) requires ··· 135 135 goto out; 136 136 /* try to skip other type records in storage */ 137 137 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)) 139 139 goto retry; 140 140 memcpy(m, &rcd.mce, sizeof(*m)); 141 141 rc = sizeof(*m);