From patchwork Fri Jul 20 01:47:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 142404 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2392190ljj; Thu, 19 Jul 2018 18:48:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc+qvdA183dozpcqwJk7WfPw26id4PdocXBfGwtTVlrM+515fT7FfSF757c7Wk+JV7ENq8L X-Received: by 2002:a65:4c02:: with SMTP id u2-v6mr108620pgq.364.1532051290742; Thu, 19 Jul 2018 18:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532051290; cv=none; d=google.com; s=arc-20160816; b=QluKe4GSSuRrrpjqFBiiQX6m5wGFc+5rtDppX4Vqn0gRhA+XFLISr1fHxkN+X37Tpa 913Jj7kmisVbeWxAFIYHcwzCRdeys7DfzqqWyQTqUZaWM4MhXO4F69JErjGx96TJ98lj 8d1LOFevCizexvZdMW5aVaDNUCr61omyUhAZ3B6tAtB7a0P3fFRZXsuWdWKBpFo+wfaQ 1LecLwsBOMfjDDS+rk+QofBgvaehTjlzDVUqGHnlDe24/9KThEmfyoqT4OFMZIa1FS5/ ZWKoeT4ZdeaGrc8d63NOtWSWDAtxfMQOgcfMnmbkVvAgNTYU2FKim5Cvg3HtrtQXeF1y 7joA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=7KQRtRFkJTUeKjcoNJurU9l4JlWFGjhUhqanbtWQ8Xk=; b=neyLoJoC+9rmAG+7lhZDjXtl+kIo28vMuwLfd5xnz5Asp0pScNk8VprB9psMQ1dFbB m2SoRXGfzGim5yIf6YrOExFix2Jmp+CNtz9LpuPzRe210/r2M7gqZ1ruAs705nPIXPo4 ZogUEFXf4r8x9KVD/P9nvMg/c6xcClYDjpA35nt9yFiCRHg7X4E26Lgb63bdja3p9hbl k4G06glJ7vbO+Snh6reBmgZ/DIcg0WlJAL/sqL1/xhGzHFGsNl7iiCbzW5kXRBAb4YqO UWK1A20BRPyu7AhCM9Lp2V+d9kIRULfkg3baHz/qX+OSqCTVLHA4lqtYXj9kVZfAvdbV 5Png== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dQ7by6O8; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j33-v6si624647pgm.584.2018.07.19.18.48.10; Thu, 19 Jul 2018 18:48:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dQ7by6O8; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731283AbeGTCd7 (ORCPT + 3 others); Thu, 19 Jul 2018 22:33:59 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:39314 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731446AbeGTCd6 (ORCPT ); Thu, 19 Jul 2018 22:33:58 -0400 Received: by mail-pl0-f66.google.com with SMTP id p23-v6so4436883plo.6 for ; Thu, 19 Jul 2018 18:48:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Eo7sVi41YgrsYz9DtX5IlTRqkFuBHV0AkwX0j3bW0Ik=; b=dQ7by6O89TB4RoqM9aJLiSQuK8ev9fl0gaox7aDzL/HtubQPtvAXYxHEdMg8EGMKBf qx637bYraG3Ld31w3vnVoiPX/TPm3aKi4gAUOjIoX9IQeymPEYdOhHKcoZMegYLP1/B7 AtdklPrIzFgWp0OaqXbfwc/lgW4DxQx2WOHLE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Eo7sVi41YgrsYz9DtX5IlTRqkFuBHV0AkwX0j3bW0Ik=; b=NStujrD0XB8sisedlCGtJpk9jFsB/qIiE4MbMtYRhmBaFBk1w6Rz1QAF7huWKCfPko UhuX6TD1szUAoKUqzJMnoiQyoesdfErq+v8SwadEzuG/MF6UvSH3gcxsIA1W81m/FeyR 9fN7B4woQvTK6z43qYhzDMdxHc9k9xpQ1tUyGRh4dMO2i2V4FKvirVDmwtw/9M0erblC uslTMWIuz3V9cm3V7WhyQE0ZfVzBFEON5nYFuENFrERpJjOvBXcVgiROz411dkDb0VNp c3q35C8/qjBhSDoSVoNpYfvh1uVn2Y0JsqiA0v/UPkX/vfJrtH1XrEMntk9cneIL9FJY fjUw== X-Gm-Message-State: AOUpUlHMQnIPglE7/T5MT9Yp80HaAFxRqO6D2eTFnqeqqwYdVXJmuTsu EHVPMAuQgBvcMjvE2Q6ljZtg17emwjo= X-Received: by 2002:a17:902:704c:: with SMTP id h12-v6mr77168plt.237.1532051287584; Thu, 19 Jul 2018 18:48:07 -0700 (PDT) Received: from localhost.localdomain (fs76eedbeb.tkyc508.ap.nuro.jp. [118.238.219.235]) by smtp.gmail.com with ESMTPSA id 203-v6sm475868pgb.14.2018.07.19.18.48.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jul 2018 18:48:07 -0700 (PDT) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, Ingo Molnar , Thomas Gleixner Cc: Ard Biesheuvel , linux-kernel@vger.kernel.org, Andy Shevchenko , Hans de Goede , Lukas Wunner Subject: [PATCH 8/9] efi/cper: Use consistent types for UUIDs Date: Fri, 20 Jul 2018 10:47:25 +0900 Message-Id: <20180720014726.24031-9-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180720014726.24031-1-ard.biesheuvel@linaro.org> References: <20180720014726.24031-1-ard.biesheuvel@linaro.org> Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org From: Andy Shevchenko 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. Cc: Tyler Baicar Signed-off-by: Andy Shevchenko Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/cper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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);