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>] [day] [month] [year] [list]
Date:   Mon,  8 Aug 2022 23:16:02 +0800
From:   Xin Gao <gaoxin@...rlc.com>
To:     linux-kernel@...r.kernel.org
Cc:     Xin Gao <gaoxin@...rlc.com>
Subject: [PATCH] KVM: x86/mmu: Variable type completion

'unsigned int' is better than 'unsigned', which has several changes.

Signed-off-by: Xin Gao <gaoxin@...rlc.com>
---
 tools/lib/traceevent/plugins/plugin_kvm.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/lib/traceevent/plugins/plugin_kvm.c b/tools/lib/traceevent/plugins/plugin_kvm.c
index 9ce7b4b68e3f..068d4b8cfdd3 100644
--- a/tools/lib/traceevent/plugins/plugin_kvm.c
+++ b/tools/lib/traceevent/plugins/plugin_kvm.c
@@ -225,7 +225,7 @@ static struct str_values svm_exit_reasons[] = {
 };
 
 static struct isa_exit_reasons {
-	unsigned isa;
+	unsigned int isa;
 	struct str_values *strings;
 } isa_exit_reasons[] = {
 	{ .isa = 1, .strings = vmx_exit_reasons },
@@ -233,7 +233,7 @@ static struct isa_exit_reasons {
 	{ }
 };
 
-static const char *find_exit_reason(unsigned isa, int val)
+static const char *find_exit_reason(unsigned int isa, int val)
 {
 	struct str_values *strings = NULL;
 	int i;
@@ -358,7 +358,7 @@ static int kvm_nested_vmexit_handler(struct trace_seq *s, struct tep_record *rec
 }
 
 union kvm_mmu_page_role {
-	unsigned word;
+	unsigned int word;
 	struct {
 		unsigned level:4;
 		unsigned cr4_pae:1;
-- 
2.30.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ