• Thomas Huth's avatar
    KVM: Standardize on "int" return types instead of "long" in kvm_main.c · f15ba52b
    Thomas Huth authored
    KVM functions use "long" return values for functions that are wired up
    to "struct file_operations", but otherwise use "int" return values for
    functions that can return 0/-errno in order to avoid unintentional
    divergences between 32-bit and 64-bit kernels.
    Some code still uses "long" in unnecessary spots, though, which can
    cause a little bit of confusion and unnecessary size casts. Let's
    change these spots to use "int" types, too.
    Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
    Message-Id: <20230208140105.655814-6-thuth@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    f15ba52b
kvm_main.c 153 KB