The UEFI 2.9A errata makes clear how ARM processor type encoding should be done: it is meant to be equal to Generic processor, using a bitmask. The current code assumes, for both generic and ARM processor types that this is an integer, which is an incorrect assumption. Fix it. While here, also fix a compilation issue when using W=1. Mauro Carvalho Chehab (3): efi/cper: Adjust infopfx size to accept an extra space efi/cper: Add a new helper function to print bitmasks efi/cper: align ARM CPER type with UEFI 2.9A/2.10 specs drivers/acpi/apei/ghes.c | 9 ++++--- drivers/firmware/efi/cper-arm.c | 47 ++++++++++++++------------------- drivers/firmware/efi/cper.c | 40 ++++++++++++++++++++++++++++ include/linux/cper.h | 11 ++++---- 4 files changed, 71 insertions(+), 36 deletions(-) -- 2.45.2