Skip to contentSkip to conversation

drm/amd/ras: Remove unguarded asm/mce.h include

PATCH In review [email protected] 2 participants 2 messages Aug 19

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

Fixes 1c46b6971260 ("drm/amd/ras: Isolate ras mce handler with CONFIG_X86_MCE_AMD")
---
 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
index ad978ed45843..0edb3dc06a69 100644
@@ -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
maintainer Reviewed-by on v1 1/1
#1 lore raw

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 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.

Quoted 4 lines
Fixes 1c46b6971260 ("drm/amd/ras: Isolate ras mce handler with

CONFIG_X86_MCE_AMD")

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
index ad978ed45843..0edb3dc06a69 100644
@@ -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