On Mon, Jul 08, 2024 at 02:10:25PM +0200, Mauro Carvalho Chehab wrote: > This patch itself just add conditionals to optimize out code on > non-ARM architectures. The next one will add some ARM-specific bits > inside ARM processor CPER trace, thus causing compilation breakages > on non-ARM, due to arm-specific kAPI bits that will be used then. Are you sure? I have both patches applied and then practically reverting the second one builds an allmodconfig just fine. diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 90efca025d27..524fea3f4f76 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -532,7 +532,6 @@ static bool ghes_handle_arm_hw_error(struct acpi_hest_generic_data *gdata, int sev, bool sync) { bool queued = false; -#if defined(CONFIG_ARM) || defined (CONFIG_ARM64) struct cper_sec_proc_arm *err = acpi_hest_get_payload(gdata); int flags = sync ? MF_ACTION_REQUIRED : 0; int sec_sev, i; @@ -570,7 +569,6 @@ static bool ghes_handle_arm_hw_error(struct acpi_hest_generic_data *gdata, error_type); p += err_info->length; } -#endif return queued; } diff --git a/drivers/ras/ras.c b/drivers/ras/ras.c index 75acc09bc96a..359bb163aee0 100644 --- a/drivers/ras/ras.c +++ b/drivers/ras/ras.c @@ -54,7 +54,6 @@ void log_non_standard_event(const guid_t *sec_type, const guid_t *fru_id, void log_arm_hw_error(struct cper_sec_proc_arm *err, const u8 sev) { -#if defined(CONFIG_ARM) || defined(CONFIG_ARM64) struct cper_arm_err_info *err_info; struct cper_arm_ctx_info *ctx_info; u8 *ven_err_data; @@ -97,7 +96,6 @@ void log_arm_hw_error(struct cper_sec_proc_arm *err, const u8 sev) trace_arm_event(err, pei_err, pei_len, ctx_err, ctx_len, ven_err_data, (u32)vsei_len, sev, cpu); -#endif } static int __init ras_init(void) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette