Commit-ID:  e8f4194d9b98aa13f9f567a0056bbf683d2b1ab8
Gitweb:     https://git.kernel.org/tip/e8f4194d9b98aa13f9f567a0056bbf683d2b1ab8
Author:     Andy Shevchenko <andriy.shevche...@linux.intel.com>
AuthorDate: Fri, 20 Jul 2018 10:47:25 +0900
Committer:  Ingo Molnar <mi...@kernel.org>
CommitDate: Sun, 22 Jul 2018 14:13:43 +0200

efi/cper: Use consistent types for UUIDs

The commit:

  2f74f09bce4f ("efi: parse ARM processor error")

... brought inconsistency in UUID types which are used across the CPER.

Fix this by moving to use guid_t API everywhere.

Signed-off-by: Andy Shevchenko <andriy.shevche...@linux.intel.com>
Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org>
Cc: Hans de Goede <hdego...@redhat.com>
Cc: Linus Torvalds <torva...@linux-foundation.org>
Cc: Lukas Wunner <lu...@wunner.de>
Cc: Peter Zijlstra <pet...@infradead.org>
Cc: Thomas Gleixner <t...@linutronix.de>
Cc: Tyler Baicar <tbai...@codeaurora.org>
Cc: linux-...@vger.kernel.org
Link: http://lkml.kernel.org/r/20180720014726.24031-9-ard.biesheu...@linaro.org
Signed-off-by: Ingo Molnar <mi...@kernel.org>
---
 drivers/firmware/efi/cper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/efi/cper.c b/drivers/firmware/efi/cper.c
index b73fc4cab083..a7902fccdcfa 100644
--- a/drivers/firmware/efi/cper.c
+++ b/drivers/firmware/efi/cper.c
@@ -472,7 +472,7 @@ cper_estatus_print_section(const char *pfx, struct 
acpi_hest_generic_data *gdata
                else
                        goto err_section_too_small;
 #if defined(CONFIG_ARM64) || defined(CONFIG_ARM)
-       } else if (!uuid_le_cmp(*sec_type, CPER_SEC_PROC_ARM)) {
+       } else if (guid_equal(sec_type, &CPER_SEC_PROC_ARM)) {
                struct cper_sec_proc_arm *arm_err = 
acpi_hest_get_payload(gdata);
 
                printk("%ssection_type: ARM processor error\n", newpfx);

Reply via email to