KVM: selftests: Remove unnecessary defines
authorAndrew Jones <drjones@redhat.com>
Fri, 14 Feb 2020 14:59:13 +0000 (15:59 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 Feb 2020 19:05:20 +0000 (20:05 +0100)
BITS_PER_LONG and friends are provided by linux/bitops.h

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/lib/kvm_util_internal.h

index ac50c42750cff37a635ac5bbb410fbad79cfcbb8..2fce6750b8b340f440fb3f76c31ddd81bb691c27 100644 (file)
 
 #define KVM_DEV_PATH           "/dev/kvm"
 
-#ifndef BITS_PER_BYTE
-#define BITS_PER_BYTE          8
-#endif
-
-#ifndef BITS_PER_LONG
-#define BITS_PER_LONG          (BITS_PER_BYTE * sizeof(long))
-#endif
-
-#define DIV_ROUND_UP(n, d)     (((n) + (d) - 1) / (d))
-#define BITS_TO_LONGS(nr)      DIV_ROUND_UP(nr, BITS_PER_LONG)
-
 struct userspace_mem_region {
        struct userspace_mem_region *next, *prev;
        struct kvm_userspace_memory_region region;