Commit 55ce29ba authored by Ingo Molnar's avatar Ingo Molnar

x86: cpa self-test, WARN_ON()

add a WARN_ON() to the cpa-self-test failure branch.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 12d6f21e
...@@ -224,10 +224,12 @@ static __init int exercise_pageattr(void) ...@@ -224,10 +224,12 @@ static __init int exercise_pageattr(void)
failed += print_split(&sc); failed += print_split(&sc);
if (failed) if (failed) {
printk(KERN_ERR "CPA selftests NOT PASSED. Please report.\n"); printk(KERN_ERR "CPA selftests NOT PASSED. Please report.\n");
else WARN_ON(1);
} else {
printk(KERN_INFO "CPA selftests PASSED\n"); printk(KERN_INFO "CPA selftests PASSED\n");
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment