From: Xin Gao <gaoxin@cdjrlc.com>
To: linux-kernel@vger.kernel.org
Cc: Xin Gao <gaoxin@cdjrlc.com>
Subject: [PATCH] KVM: x86/mmu: Variable type completion
Date: Mon, 8 Aug 2022 23:16:02 +0800 [thread overview]
Message-ID: <20220808151602.59140-1-gaoxin@cdjrlc.com> (raw)
'unsigned int' is better than 'unsigned', which has several changes.
Signed-off-by: Xin Gao <gaoxin@cdjrlc.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
reply other threads:[~2022-08-08 15:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220808151602.59140-1-gaoxin@cdjrlc.com \
--to=gaoxin@cdjrlc.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®