Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=55ce29ba16f82a31424a98988cf37c3babe1b7c8
Commit:     55ce29ba16f82a31424a98988cf37c3babe1b7c8
Parent:     12d6f21eacc21d84a809829543f2fe45c7e37319
Author:     Ingo Molnar <[EMAIL PROTECTED]>
AuthorDate: Wed Jan 30 13:33:58 2008 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Wed Jan 30 13:33:58 2008 +0100

    x86: cpa self-test, WARN_ON()
    
    add a WARN_ON() to the cpa-self-test failure branch.
    
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
---
 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;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to