efi: Fix IA32/X64 Processor Error Record definition
authorYazen Ghannam <yazen.ghannam@amd.com>
Fri, 4 May 2018 05:59:49 +0000 (07:59 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 14 May 2018 06:57:47 +0000 (08:57 +0200)
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 <yazen.ghannam@amd.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20180504060003.19618-4-ard.biesheuvel@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/cper.h

index d14ef4e..4b5f845 100644 (file)
@@ -381,7 +381,7 @@ struct cper_sec_proc_generic {
 /* IA32/X64 Processor Error Section */
 struct cper_sec_proc_ia {
        __u64   validation_bits;
-       __u   lapic_id;
+       __u64   lapic_id;
        __u8    cpuid[48];
 };