mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-15 19:51:37 +00:00
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>
This commit is contained in:
parent
2b6a72ed08
commit
84287f9f6f
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue