Selaa lähdekoodia

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>
Ingo Molnar 17 vuotta sitten
vanhempi
commit
55ce29ba16
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      arch/x86/mm/pageattr-test.c

+ 4 - 2
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;
 }