提交 e34e77ce 编写于 作者: A Andi Kleen 提交者: H. Peter Anvin

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
5be9ed25.
Signed-off-by: NAndi Kleen <ak@linux.intel.com>
Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
上级 680b6cfd
......@@ -139,6 +139,7 @@ int mce_severity(struct mce *a, int tolerant, char **msg)
}
}
#ifdef CONFIG_DEBUG_FS
static void *s_start(struct seq_file *f, loff_t *pos)
{
if (*pos >= ARRAY_SIZE(severities))
......@@ -212,3 +213,4 @@ static int __init severities_debugfs_init(void)
return -ENOMEM;
}
late_initcall(severities_debugfs_init);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册