drm/amd/ras: Remove unguarded asm/mce.h include
Subsystems (2)
PATCH 1/1 drm/amd/ras: Remove unguarded asm/mce.h include
From: Tony Qi <[email protected]>
asm/mce.h is x86-only, so the unconditional include broke non-x86 builds with "fatal error: asm/mce.h: No such file or directory". The header is already included under CONFIG_X86_MCE_AMD with the code that uses it, so remove the redundant unguarded copy.
--- drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mce.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mce.c +0 -1
@@ -25,7 +25,6 @@#include "amdgpu.h" #include "amdgpu_ras_mgr.h" #include "amdgpu_ras_mce.h" -#include <asm/mce.h> #ifdef CONFIG_X86_MCE_AMD #include <asm/mce.h>
Signature · 1 line
2.43.0
Public
Quoted 18 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of [email protected]
Sent: Wednesday, August 19, 2026 11:02 AM
To: [email protected]; Deucher, Alexander <[email protected]>
Cc: LIPSKI, IVAN <[email protected]>; Chai, Thomas <[email protected]>; Zhang, Hawking <[email protected]>; Qi, Tony <[email protected]>
Subject: [PATCH] drm/amd/ras: Remove unguardedasm/mce.hincludeFrom: Tony Qi <[email protected]>
asm/mce.his x86-only, so the unconditional include broke non-x86 builds with "fatal error:asm/mce.h: No such file or directory". The header is already included underCONFIG_X86_MCE_AMDwith the code that uses it, so remove the redundant unguarded copy.
Quoted 4 lines
Fixes 1c46b6971260 ("drm/amd/ras: Isolate ras mce handler with
CONFIG_X86_MCE_AMD")Signed-off-by Tony Qi <[email protected]>
Quoted 19 lines
--- drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mce.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mce.c +0
-2@@ -25,7 +25,6 @@#include "amdgpu.h" #include "amdgpu_ras_mgr.h" #include "amdgpu_ras_mce.h" -#include <asm/mce.h> #ifdef CONFIG_X86_MCE_AMD #include <asm/mce.h> --2.43.0