]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mips: octeon: cvmx-coremask.h: Fix cvmx_coremask_dprint() with DEBUG defined
authorStefan Roese <sr@denx.de>
Wed, 7 Apr 2021 07:12:29 +0000 (09:12 +0200)
committerStefan Roese <sr@denx.de>
Wed, 28 Apr 2021 08:05:12 +0000 (10:05 +0200)
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>
arch/mips/mach-octeon/include/mach/cvmx-coremask.h

index c34ff46d3afe796711abbd163f88baf3c8fc05a1..314b6d9789a5979adf0e120bfc16fbb33aba3597 100644 (file)
@@ -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);