]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/msi: Use WARN_ON() in msi bitmap selftests
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Oct 2014 08:04:25 +0000 (19:04 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 15 Oct 2014 02:09:33 +0000 (13:09 +1100)
commit989356eb05ac77178b72ffffc64dfb3ce6e321be
tree1bba1d405b333bd5b8a2d826ed3e4e8792943ddf
parent463e5b7aade7a2809bd190ea0de190dbe931b3ea
powerpc/msi: Use WARN_ON() in msi bitmap selftests

As demonstrated in the previous commit, the failure message from the msi
bitmap selftests is a bit subtle, it's easy to miss a failure in a busy
boot log.

So drop our check() macro and use WARN_ON() instead. This necessitates
inverting all the conditions as well.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/msi_bitmap.c