aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-01-30 07:33:58 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:33:58 -0500
commit55ce29ba16f82a31424a98988cf37c3babe1b7c8 (patch)
tree07fc7aca03c92445e447a910562ce2d09137e0d3 /arch
parent12d6f21eacc21d84a809829543f2fe45c7e37319 (diff)
x86: cpa self-test, WARN_ON()
add a WARN_ON() to the cpa-self-test failure branch. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-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)
224 224
225 failed += print_split(&sc); 225 failed += print_split(&sc);
226 226
227 if (failed) 227 if (failed) {
228 printk(KERN_ERR "CPA selftests NOT PASSED. Please report.\n"); 228 printk(KERN_ERR "CPA selftests NOT PASSED. Please report.\n");
229 else 229 WARN_ON(1);
230 } else {
230 printk(KERN_INFO "CPA selftests PASSED\n"); 231 printk(KERN_INFO "CPA selftests PASSED\n");
232 }
231 233
232 return 0; 234 return 0;
233} 235}