Skip to content

Commit e34e77c

Browse files
Andi KleenH. Peter Anvin
authored andcommitted
x86, mce: Fix compilation with !CONFIG_DEBUG_FS in mce-severity.c
Fix compilation error in arch/x86/kernel/cpu/mcheck/mce-severity.c when CONFIG_DEBUG_FS is disabled, introduced in commit 5be9ed2. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
1 parent 680b6cf commit e34e77c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/kernel/cpu/mcheck/mce-severity.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ int mce_severity(struct mce *a, int tolerant, char **msg)
139139
}
140140
}
141141

142+
#ifdef CONFIG_DEBUG_FS
142143
static void *s_start(struct seq_file *f, loff_t *pos)
143144
{
144145
if (*pos >= ARRAY_SIZE(severities))
@@ -212,3 +213,4 @@ static int __init severities_debugfs_init(void)
212213
return -ENOMEM;
213214
}
214215
late_initcall(severities_debugfs_init);
216+
#endif

0 commit comments

Comments
 (0)