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)
commit388f788341178b91d2a18e7d605126dab6732257
tree66650d0c6aec385a139877f21170f056ea674e0b
parent35508d2424097f9b6a1a17aac94f702767035616
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: 3e3114ac460e ("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