• Arnd Bergmann's avatar
    x86: kvm: propagate register_shrinker return code · ab271bd4
    Arnd Bergmann authored
    Patch "mm,vmscan: mark register_shrinker() as __must_check" is
    queued for 4.16 in linux-mm and adds a warning about the unchecked
    call to register_shrinker:
    
    arch/x86/kvm/mmu.c:5485:2: warning: ignoring return value of 'register_shrinker', declared with attribute warn_unused_result [-Wunused-result]
    
    This changes the kvm_mmu_module_init() function to fail itself
    when the call to register_shrinker fails.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    ab271bd4
mmu.c 141 KB