diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:33:58 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:33:58 +0100 |
commit | 55ce29ba16f82a31424a98988cf37c3babe1b7c8 (patch) | |
tree | 07fc7aca03c92445e447a910562ce2d09137e0d3 /arch/x86/mm/pageattr-test.c | |
parent | 12d6f21eacc21d84a809829543f2fe45c7e37319 (diff) | |
download | kernel_samsung_aries-55ce29ba16f82a31424a98988cf37c3babe1b7c8.zip kernel_samsung_aries-55ce29ba16f82a31424a98988cf37c3babe1b7c8.tar.gz kernel_samsung_aries-55ce29ba16f82a31424a98988cf37c3babe1b7c8.tar.bz2 |
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/x86/mm/pageattr-test.c')
-rw-r--r-- | arch/x86/mm/pageattr-test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/mm/pageattr-test.c b/arch/x86/mm/pageattr-test.c index a12dabb..0dce0e2 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; } |