Re: [PATCH] KVM: x86: Fix error & warning in i8254.h
From: Philippe Mathieu-Daudé
Date: Tue Jul 18 2023 - 02:48:52 EST
On 12/7/23 08:02, shijie001@xxxxxxxxxx wrote:
The following checkpatch error & warning are removed:
WARNING: please, no space before tabs
ERROR: Macros with complex values should be enclosed in parentheses
Signed-off-by: Jie Shi <shijie001@xxxxxxxxxx>
---
arch/x86/kvm/i8254.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
struct mutex lock;
@@ -52,7 +52,7 @@ struct kvm_pit {
#define KVM_SPEAKER_BASE_ADDRESS 0x61
#define KVM_PIT_MEM_LENGTH 4
#define KVM_PIT_FREQ 1193181
-#define KVM_MAX_PIT_INTR_INTERVAL HZ / 100
+#define KVM_MAX_PIT_INTR_INTERVAL (HZ / 100)
This looks like dead code, maybe better just remove?
#define KVM_PIT_CHANNEL_MASK 0x3
struct kvm_pit *kvm_create_pit(struct kvm *kvm, u32 flags);