Skip to content

Commit 52cff04

Browse files
praritsuryasaimadhu
authored andcommitted
EDAC/mce_amd: Print !SMCA processor warning only once
This warning is output for every virtual CPU in a guest on an EPYC 2 system because kvm doesn't enable SMCA. Once is enough too. [ bp: Massage. ] Signed-off-by: Prarit Bhargava <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 11a48a5 commit 52cff04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/edac/mce_amd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ static int __init mce_amd_init(void)
12391239

12401240
case 0x17:
12411241
case 0x18:
1242-
pr_warn("Decoding supported only on Scalable MCA processors.\n");
1242+
pr_warn_once("Decoding supported only on Scalable MCA processors.\n");
12431243
return -EINVAL;
12441244

12451245
default:

0 commit comments

Comments
 (0)