spl: Avoid an #ifdef when printing gd->malloc_ptr
Use an accessor in the header file to avoid this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -588,6 +588,12 @@ static_assert(sizeof(struct global_data) == GD_SIZE);
|
||||
#define gd_set_pci_ram_top(val)
|
||||
#endif
|
||||
|
||||
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
|
||||
#define gd_malloc_ptr() gd->malloc_ptr
|
||||
#else
|
||||
#define gd_malloc_ptr() 0L
|
||||
#endif
|
||||
|
||||
/**
|
||||
* enum gd_flags - global data flags
|
||||
*
|
||||
|
Reference in New Issue
Block a user