platform: fix compile error if PLATFORM_CORE_COUNT is 1

Structs sys_rt_x_blockXXX should not be created if not used

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
This commit is contained in:
Adrian Bonislawski 2019-06-11 15:35:25 +02:00 committed by Tomasz Lauda
parent 72d7b7d721
commit d8690a482f
1 changed files with 2 additions and 0 deletions

View File

@ -18,12 +18,14 @@ static struct block_hdr sys_rt_0_block512[HEAP_SYS_RT_0_COUNT512];
static struct block_hdr sys_rt_0_block1024[HEAP_SYS_RT_0_COUNT1024];
/* Heap blocks for system runtime for slave core */
#if PLATFORM_CORE_COUNT > 1
static struct block_hdr
sys_rt_x_block64[PLATFORM_CORE_COUNT - 1][HEAP_SYS_RT_X_COUNT64];
static struct block_hdr
sys_rt_x_block512[PLATFORM_CORE_COUNT - 1][HEAP_SYS_RT_X_COUNT512];
static struct block_hdr
sys_rt_x_block1024[PLATFORM_CORE_COUNT - 1][HEAP_SYS_RT_X_COUNT1024];
#endif
/* Heap memory for system runtime */
static struct block_map sys_rt_heap_map[PLATFORM_CORE_COUNT][3] = {