From: Ingo Molnar Date: Wed, 30 Jan 2008 12:33:58 +0000 (+0100) Subject: x86: cpa self-test, WARN_ON() X-Git-Tag: v2.6.25-rc1~1143^2~99 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=55ce29ba16f82a31424a98988cf37c3babe1b7c8;p=linux-2.6-omap-h63xx.git x86: cpa self-test, WARN_ON() add a WARN_ON() to the cpa-self-test failure branch. Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/mm/pageattr-test.c b/arch/x86/mm/pageattr-test.c index a12dabbd5c3..0dce0e248a4 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; }