aboutsummaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2021-04-07 09:12:29 +0200
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2021-04-23 21:22:55 +0200
commit84287f9f6f8ea56d06564c157894dc7ca0229181 (patch)
treeed8cfd5fc75651fa5a234d3329244c66e7526b47 /arch/mips
parent2b6a72ed080923efa282520ae5987221e69a91d0 (diff)
downloadu-boot-84287f9f6f8ea56d06564c157894dc7ca0229181.zip
u-boot-84287f9f6f8ea56d06564c157894dc7ca0229181.tar.gz
u-boot-84287f9f6f8ea56d06564c157894dc7ca0229181.tar.bz2
mips: octeon: cvmx-coremask.h: Fix cvmx_coremask_dprint() with DEBUG defined
As DEBUG is no Kconfig symbol, we can't use the IS_ENABLED() macros. This patch switches to the unfortunately necessary #ifdef usage again to make it work correctly. Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/mach-octeon/include/mach/cvmx-coremask.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/mach-octeon/include/mach/cvmx-coremask.h b/arch/mips/mach-octeon/include/mach/cvmx-coremask.h
index c34ff46..314b6d9 100644
--- a/arch/mips/mach-octeon/include/mach/cvmx-coremask.h
+++ b/arch/mips/mach-octeon/include/mach/cvmx-coremask.h
@@ -741,8 +741,9 @@ void cvmx_coremask_print(const struct cvmx_coremask *pcm);
static inline void cvmx_coremask_dprint(const struct cvmx_coremask *pcm)
{
- if (IS_ENABLED(DEBUG))
- cvmx_coremask_print(pcm);
+#if defined(DEBUG)
+ cvmx_coremask_print(pcm);
+#endif
}
struct cvmx_coremask *octeon_get_available_coremask(struct cvmx_coremask *pcm);