Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55ce29ba authored by Ingo Molnar's avatar Ingo Molnar
Browse files

x86: cpa self-test, WARN_ON()



add a WARN_ON() to the cpa-self-test failure branch.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 12d6f21e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;
}