physical memory: guard rbtree allocator with IHK_RBTREE_ALLOCATOR macro

Change-Id: I468c6bf1f641875c02b091704ef63f59fd390be5
This commit is contained in:
Balazs Gerofi
2019-08-13 15:26:22 +09:00
committed by Masamichi Takagi
parent 6aa7b50e26
commit c86a38e18f

View File

@ -1600,9 +1600,11 @@ static void numa_distances_init()
static ssize_t numa_sysfs_show_meminfo(struct sysfs_ops *ops,
void *instance, void *buf, size_t size)
{
#ifdef IHK_RBTREE_ALLOCATOR
struct ihk_mc_numa_node *node =
(struct ihk_mc_numa_node *)instance;
char *sbuf = (char *)buf;
#endif
int len = 0;
#ifdef IHK_RBTREE_ALLOCATOR
@ -2559,7 +2561,7 @@ void ihk_mc_query_mem_user_page(void *dump_pase_info) {
}
void ihk_mc_query_mem_free_page(void *dump_pase_info) {
#ifdef IHK_RBTREE_ALLOCATOR
struct free_chunk *chunk;
struct rb_node *node;
struct rb_root *free_chunks;
@ -2629,7 +2631,7 @@ void ihk_mc_query_mem_free_page(void *dump_pase_info) {
}
}
}
#endif
return;
}