summaryrefslogtreecommitdiff
path: root/arch/x86/mm/pageattr-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/pageattr-test.c')
-rw-r--r--arch/x86/mm/pageattr-test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/mm/pageattr-test.c b/arch/x86/mm/pageattr-test.c
index a12dabbd5c33..0dce0e248a42 100644
--- a/arch/x86/mm/pageattr-test.c
+++ b/arch/x86/mm/pageattr-test.c
@@ -224,10 +224,12 @@ static __init int exercise_pageattr(void)
failed += print_split(&sc);
- if (failed)
+ if (failed) {
printk(KERN_ERR "CPA selftests NOT PASSED. Please report.\n");
- else
+ WARN_ON(1);
+ } else {
printk(KERN_INFO "CPA selftests PASSED\n");
+ }
return 0;
}