diff options
| author | Christophe Leroy <[email protected]> | 2019-03-07 09:47:50 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2019-04-20 12:02:11 +0000 |
| commit | 6c84f8c5cbfb4bf728f88296bc035c4a401c3423 (patch) | |
| tree | a0ca2b1823c35b93b67576b75f670423a8e57ccd /arch/powerpc/lib/code-patching.c | |
| parent | powerpc: Fix defconfig choice logic when cross compiling (diff) | |
| download | kernel-6c84f8c5cbfb4bf728f88296bc035c4a401c3423.tar.gz kernel-6c84f8c5cbfb4bf728f88296bc035c4a401c3423.zip | |
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 <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions
