On 11/8/20 7:18 PM, Punit Agrawal wrote:
Borislav Petkov <bp@xxxxxxxxx> writes:I agree, it's generally a good practice to avoid pulling up additional
On Fri, Nov 06, 2020 at 02:36:46PM +0900, Punit Agrawal wrote:Because arch_apei_report_x86_error() used in the patch is defined
Why?diff --git a/drivers/firmware/efi/cper-x86.c b/drivers/firmware/efi/cper-x86.cDid you mean to include <asm/acpi.h>?
index 2531de49f56c..438ed9eff6d0 100644
--- a/drivers/firmware/efi/cper-x86.c
+++ b/drivers/firmware/efi/cper-x86.c
@@ -2,6 +2,7 @@
// Copyright (C) 2018, Advanced Micro Devices, Inc.
#include <linux/cper.h>
+#include <linux/acpi.h>
there. The indirect include works but pulls in additional definitions
not needed by the patch.
Do you prefer the more generic include?
definitions. I had this when I made the declaration in generic header
file and may be I did not consider it changing initially as my build
didn't break after moving the declaration from generic header to arch
specific header file.
I will take care henceforth and make the changes as required.