Skip to content

Commit

Permalink
x86, mce: Fix compilation with !CONFIG_DEBUG_FS in mce-severity.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and H. Peter Anvin committed Sep 14, 2009
1 parent 680b6cf commit e34e77c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/cpu/mcheck/mce-severity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -212,3 +213,4 @@ static int __init severities_debugfs_init(void)
return -ENOMEM;
}
late_initcall(severities_debugfs_init);
#endif

0 comments on commit e34e77c

Please sign in to comment.