commit | 6c84f8c5cbfb4bf728f88296bc035c4a401c3423 | [log] [tgz] |
---|---|---|
author | Christophe Leroy <christophe.leroy@c-s.fr> | Thu Mar 07 09:47:50 2019 +0000 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Sat Apr 20 22:02:11 2019 +1000 |
tree | a0ca2b1823c35b93b67576b75f670423a8e57ccd | |
parent | af5cd05de5dd38cf25d14ea4d30ae9b791d2420b [diff] |
powerpc/highmem: Change BUG_ON() to WARN_ON() In arch/powerpc/mm/highmem.c, BUG_ON() is called only when CONFIG_DEBUG_HIGHMEM is selected, this means the BUG_ON() is not vital and can be replaced by a a WARN_ON(). At the same time, use IS_ENABLED() instead of #ifdef to clean a bit. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>