diff options
| author | Joe Richey <joerichey@google.com> | 2021-05-21 01:58:43 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-03 09:09:35 +0200 |
| commit | 06c97a5bbeb3cef11a1473bdd139f7dcc0b896a6 (patch) | |
| tree | 306442155caee1222a695fb256fdada937fb5cac /tools | |
| parent | 3ce7c5a7bbb65d135cf26409fa35d462bdfe913f (diff) | |
| download | linux-06c97a5bbeb3cef11a1473bdd139f7dcc0b896a6.tar.gz linux-06c97a5bbeb3cef11a1473bdd139f7dcc0b896a6.tar.bz2 linux-06c97a5bbeb3cef11a1473bdd139f7dcc0b896a6.zip | |
KVM: X86: Use _BITUL() macro in UAPI headers
commit fb1070d18edb37daf3979662975bc54625a19953 upstream.
Replace BIT() in KVM's UPAI header with _BITUL(). BIT() is not defined
in the UAPI headers and its usage may cause userspace build errors.
Fixes: fb04a1eddb1a ("KVM: X86: Implement ring-based dirty memory tracking")
Signed-off-by: Joe Richey <joerichey@google.com>
Message-Id: <20210521085849.37676-3-joerichey94@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/include/uapi/linux/kvm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/include/uapi/linux/kvm.h b/tools/include/uapi/linux/kvm.h index f6afee209620..26e6d94d64ed 100644 --- a/tools/include/uapi/linux/kvm.h +++ b/tools/include/uapi/linux/kvm.h @@ -8,6 +8,7 @@ * Note: you must update KVM_API_VERSION if you change this interface. */ +#include <linux/const.h> #include <linux/types.h> #include <linux/compiler.h> #include <linux/ioctl.h> @@ -1834,8 +1835,8 @@ struct kvm_hyperv_eventfd { * conversion after harvesting an entry. Also, it must not skip any * dirty bits, so that dirty bits are always harvested in sequence. */ -#define KVM_DIRTY_GFN_F_DIRTY BIT(0) -#define KVM_DIRTY_GFN_F_RESET BIT(1) +#define KVM_DIRTY_GFN_F_DIRTY _BITUL(0) +#define KVM_DIRTY_GFN_F_RESET _BITUL(1) #define KVM_DIRTY_GFN_F_MASK 0x3 /* |
