From patchwork Fri May 4 05:59:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 134940 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp436774lji; Thu, 3 May 2018 23:01:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqDDOpeHtib6g+hhJzzkkBJTaIbnI5VlbhjbIldJEL4PFLyfopuN1LcUddGI0qwdScuZbNr X-Received: by 2002:a17:902:7082:: with SMTP id z2-v6mr14687938plk.373.1525413673616; Thu, 03 May 2018 23:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525413673; cv=none; d=google.com; s=arc-20160816; b=kcYUGj5of3Xz0LWw65u548X26V6KpVrfodoPizzF4zLI+0bkyr5yVvUSs9yUyyCxGr unabWUQSq1vfdiE/weGrLb5Q5uFzDM8ZBbAYOXcOZATnsnlU+swh2pe5tBO8zUTViweq z8DibQHzUB9n4Xqwc6Ta6J+bKDJx4GmH9ZBMmyLDpuHCp5i47hyzXQv0eGwjVhXPimOx 0ECVB+9VqpI5dmRIyCIvjOQVP+B49miq6SCorCixBLL//UAhsXTjJlNEzgKSMJYz/4Mt PoEGI34bvg5AWDR8oAt1TlIyovVRolhVkST+1HWKxs6KDohHXaz4kat1x11rEt8eLTuV lFrw== 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=94ziauSZ5Wo2Z4hgpQ84fCORn1eX0WWpUq9EAHa5SiM=; b=VWR8r8q+Kmh0VT7/COJG96s99RtD7Za++1uVFTQR9Xsc5vUXq5WBqkjk7iYr37hx9c lKs7ZgT3NF3a1scjq4YvXxZB7dVI+Yb5VYTWDtY6uzGLeRkX0ns/fiOwENdLxf9q1oBe 3+mYSMtMjKCLT913FjPw+Go+KyNV2y3sqjd3nrEYP9XYP0RcG0MyUE+DLO8HaeV08BuU 3Gk1SZSHDknvmKWYb/slUlT7zzruL1nNIaRFBGjY972ia7XIG1jTO5WckSWu1ucfj0vv GVE4JgI7Fck4C2TorNoc7N9ihSTvjj6VqLPdHgiVm1h0SEWyQTZx35WBBMt5RnYNC41M VLRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KSeFv8RT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 h64-v6si12817679pge.206.2018.05.03.23.01.13; Thu, 03 May 2018 23:01:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KSeFv8RT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751411AbeEDGBK (ORCPT + 29 others); Fri, 4 May 2018 02:01:10 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:45885 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751354AbeEDGBI (ORCPT ); Fri, 4 May 2018 02:01:08 -0400 Received: by mail-wr0-f196.google.com with SMTP id p5-v6so19744600wre.12 for ; Thu, 03 May 2018 23:01:07 -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=94ziauSZ5Wo2Z4hgpQ84fCORn1eX0WWpUq9EAHa5SiM=; b=KSeFv8RTYY+zt24VNR0Re2B9q8Y7134HawQzEaFUhNtT9yIA0/hk2Ei/Tg1N4XAW/d SO/NAW5grr52YMr5rfCnW2ayAdtSDQl6n6W0vKS9vP9hWkoBeU3jg1qquYc4sBMQWhwu HhpX92HflxbbdjbPvJYVyxsaahE1sWmoSFrPU= 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=94ziauSZ5Wo2Z4hgpQ84fCORn1eX0WWpUq9EAHa5SiM=; b=r/ysPyg2TWtauc8tcCcMj1EeMC4fuE0BUV70+9B9/ayFaZNSnDZA+PYNMUpsKlMGos FnnzMEwMKXczeTnynT6wTx4GBNmbh+ARWnhWj0sK8r2+h4ZtNs1pqtPTqSgXxWQFlrC0 zG4ynfzaMjVc8c89GYOL0RUCUKagB7ac59arI7XdTKRNHjoGTf/EX1AQgLMQDbAAX+Rm 8S+886Rxhe5nZ0ekaYcWaIkn+7PorP08RcQ/8nzOV6eRyO5t5MX50fSTr2tpceniyAEq +tKhrANZ9ccOr9aFngrQ7apqGN0U5JkHq19ulLdzW+EPgeLnzb1tqcOHNqypiBey7DGG zN+Q== X-Gm-Message-State: ALQs6tCWoFA+VQOqs2vxRKvYHWp4y/4rOGTXVHximzYA6IR5Hip3B+mE Bz9a2w1OsvfSRmdgAh+V1+8Jnw== X-Received: by 2002:adf:dfcc:: with SMTP id q12-v6mr20469724wrn.68.1525413667051; Thu, 03 May 2018 23:01:07 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:3995:5470:200:1aff:fe1b:b328]) by smtp.gmail.com with ESMTPSA id i30-v6sm32411863wra.38.2018.05.03.23.01.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 May 2018 23:01:06 -0700 (PDT) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, Ingo Molnar , Thomas Gleixner Cc: Yazen Ghannam , Ard Biesheuvel , linux-kernel@vger.kernel.org Subject: [PATCH 03/17] efi: Fix IA32/X64 Processor Error Record definition Date: Fri, 4 May 2018 07:59:49 +0200 Message-Id: <20180504060003.19618-4-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180504060003.19618-1-ard.biesheuvel@linaro.org> References: <20180504060003.19618-1-ard.biesheuvel@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yazen Ghannam Based on UEFI 2.7 Table 255. Processor Error Record, the "Local APIC_ID" field is 8 bytes but Linux defines this field as 1 byte. Fix this in the struct cper_sec_proc_ia definition. Signed-off-by: Yazen Ghannam Signed-off-by: Ard Biesheuvel --- include/linux/cper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 diff --git a/include/linux/cper.h b/include/linux/cper.h index d14ef4e77c8a..4b5f8459b403 100644 --- a/include/linux/cper.h +++ b/include/linux/cper.h @@ -381,7 +381,7 @@ struct cper_sec_proc_generic { /* IA32/X64 Processor Error Section */ struct cper_sec_proc_ia { __u64 validation_bits; - __u8 lapic_id; + __u64 lapic_id; __u8 cpuid[48]; };