lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <f1a0806ffdb74240f9bfbba9f4ece732@208suo.com>
Date:   Wed, 12 Jul 2023 14:02:35 +0800
From:   shijie001@...suo.com
To:     tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
        dave.hansen@...ux.intel.com, x86@...nel.org
Cc:     hpa@...or.com, kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
        seanjc@...gle.com, pbonzini@...hat.com
Subject: [PATCH] KVM: x86: Fix error & warning in i8254.h

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@...suo.com>
---
  arch/x86/kvm/i8254.h | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h
index a768212ba821..89eab61cfc51 100644
--- a/arch/x86/kvm/i8254.h
+++ b/arch/x86/kvm/i8254.h
@@ -27,7 +27,7 @@ struct kvm_kpit_state {
      struct kvm_kpit_channel_state channels[3];
      u32 flags;
      bool is_periodic;
-    s64 period;                 /* unit: ns */
+    s64 period;                /* unit: ns */
      struct hrtimer timer;

      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)
  #define KVM_PIT_CHANNEL_MASK        0x3

  struct kvm_pit *kvm_create_pit(struct kvm *kvm, u32 flags);

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ