]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: octeon: Get rid of preprocessor directives around RESERVE32
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Tue, 6 Sep 2022 08:32:39 +0000 (10:32 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 7 Sep 2022 12:55:16 +0000 (14:55 +0200)
commitff8540a48dc0b896273d708edae7ae87c80a7eb1
tree66650d0c6aec385a139877f21170f056ea674e0b
parentff39095326a0eaa58a332ee4539c426fea918d17
MIPS: octeon: Get rid of preprocessor directives around RESERVE32

Some of them were pointless because CONFIG_CAVIUM_RESERVE32 is now always
defined, some were not enough (Yu Zhao reported
"Failed to allocate CAVIUM_RESERVE32 memory area" error).

Removing the directives allows for compiler coverage of RESERVE32 code and
replacing one of [always-true] "ifdef" with a compiler conditional fixes
the [cosmetic] error message.

Fixes: 48c418af22c8 ("MIPS: Introduce CAVIUM_RESERVE32 Kconfig option")
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/cavium-octeon/executive/cvmx-cmd-queue.c
arch/mips/cavium-octeon/setup.c