• L
    memig: fix compile error when CONFIG_NUMA is turned off · 74706f34
    liubo 提交于
    euleros inclusion
    category: feature
    feature: memig
    bugzilla: 48246
    
    -------------------------------------------------
    
    fix compile error when CONFIG_NUMA is turned off on Raspberry platform.
    
    compile info:
    mm/vmscan.c: In function ‘get_page_from_vaddr’:
    mm/vmscan.c:4350:40: error: implicit declaration of function ‘vma_migratable’;
    did you mean ‘rq_mergeable’? [-Werror=implicit-function-declaration]
    
    This patch solves the problem of compilation errors
    introduced by memig into the interface in the vmscan.c
    file. Delete dependency on NUMA for CONFIG_MEMIG_SWAP,
    and use vma->vm_flags & VM_LOCKED for judgement.
    Signed-off-by: Nliubo <liubo254@huawei.com>
    Reviewed-by: NJing Xiangfeng <jingxiangfeng@huawei.com>
    Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
    74706f34
Makefile 1003 字节