[PATCH 1/8] efi: Fix IA32/X64 Processor Error Record definition

2018-02-23 Thread Yazen Ghannam
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.

Cc:  # 4.16.x
Signed-off-by: Yazen Ghannam 
---
 include/linux/cper.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-   __u8lapic_id;
+   __u64   lapic_id;
__u8cpuid[48];
 };
 
-- 
2.14.1



[PATCH 1/8] efi: Fix IA32/X64 Processor Error Record definition

2018-02-23 Thread Yazen Ghannam
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.

Cc:  # 4.16.x
Signed-off-by: Yazen Ghannam 
---
 include/linux/cper.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-   __u8lapic_id;
+   __u64   lapic_id;
__u8cpuid[48];
 };
 
-- 
2.14.1