diff options
| author | Stefan Roese <sr@denx.de> | 2021-04-07 09:12:29 +0200 |
|---|---|---|
| committer | Stefan Roese <sr@denx.de> | 2021-04-28 10:05:12 +0200 |
| commit | 5cbe3bb1e2e4b0b0fc210467632f285ba54ffdd3 (patch) | |
| tree | e82388ffafb5a62fc62b272a41240a58135e9238 | |
| parent | a8e338a229451372e5281d7eba9b741c807a829a (diff) | |
| download | u-boot-5cbe3bb1e2e4b0b0fc210467632f285ba54ffdd3.tar.gz u-boot-5cbe3bb1e2e4b0b0fc210467632f285ba54ffdd3.tar.xz u-boot-5cbe3bb1e2e4b0b0fc210467632f285ba54ffdd3.zip | |
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>
| -rw-r--r-- | arch/mips/mach-octeon/include/mach/cvmx-coremask.h | 5 |
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 c34ff46d3a..314b6d9789 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); |
