diff options
author | Andrew Jones <drjones@redhat.com> | 2020-02-14 15:59:13 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-02-24 20:05:20 +0100 |
commit | 10d1a71b164e497587fd4d0bbf2537568d9f01d9 (patch) | |
tree | cb0c77d51f02d987e2f294aba124af46e886d0b1 | |
parent | f09ab268bbb26d5d851636801cafe73456ff73ab (diff) | |
download | linux-10d1a71b164e497587fd4d0bbf2537568d9f01d9.tar.gz linux-10d1a71b164e497587fd4d0bbf2537568d9f01d9.tar.bz2 linux-10d1a71b164e497587fd4d0bbf2537568d9f01d9.zip |
KVM: selftests: Remove unnecessary defines
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>
-rw-r--r-- | tools/testing/selftests/kvm/lib/kvm_util_internal.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/tools/testing/selftests/kvm/lib/kvm_util_internal.h b/tools/testing/selftests/kvm/lib/kvm_util_internal.h index ac50c42750cf..2fce6750b8b3 100644 --- a/tools/testing/selftests/kvm/lib/kvm_util_internal.h +++ b/tools/testing/selftests/kvm/lib/kvm_util_internal.h @@ -12,17 +12,6 @@ #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; |