Skip to content

Commit

Permalink
EDAC/mce_amd: Print !SMCA processor warning only once
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
prarit authored and suryasaimadhu committed Feb 18, 2020
1 parent 11a48a5 commit 52cff04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/edac/mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ static int __init mce_amd_init(void)

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

default:
Expand Down

0 comments on commit 52cff04

Please sign in to comment.