Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4874030rwb; Mon, 8 Aug 2022 08:20:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR6QASUeulEoNunFUyLwIrMRq8Xo3jXZGrZo6OiFZuO7t9Y1Mskq/GOV/TmOgpB2BAZPDS8e X-Received: by 2002:a17:907:7395:b0:730:b61d:f8f4 with SMTP id er21-20020a170907739500b00730b61df8f4mr14115528ejc.501.1659972053922; Mon, 08 Aug 2022 08:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659972053; cv=none; d=google.com; s=arc-20160816; b=HHjKk75fGdb6tPx7pL1e+ywC+XyUClKdACzRd99PmkShm4NnMP6pMbEtbJvnF+W1oI 2yqrTG2mBKZGeTtRIZSy1HKt1xXLpmYGScRIKLoHoKkg/7V037XcLwwmNyb0Gg/1NBQJ S3fkOg4JxCBBySvIJqMIOCeI5CLqxXnRiQOk88sT+PcKbaZrKiEWtc0PkvmhFqKphY41 EU2U4XFsWpRc5uw05Oluajkjnu5uyxiA8c6RZ95oTZU3BNSMOMJt8Sccu3J4EpoK2XMh tVIt8VMjJ4HFdeyb/tZWjGnTuNR5AxPOjfHaPXMWShq0E9iaNwSDQ3gwZ0+aZelAJVqj vVrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=kYZtf7W03im8aYn5jMEtOIlNURHmPfIkYJ3l4StVNN8=; b=lc6MKF28D070otBpptPx+gROR3MsKCs2meYEPou7w39t0LICi8IEuhBZyAdADf74RG mARTidRbiMGzwCP3BVkf3/l3HI1rLCAFaZoY+Yt4B2/OcPD0UV9/K/ko/4aNXH27+eyZ 0MQtWoXVsfFfXH196p5JBoulVSP2ueBx6DV9DTeAl71tWCEqy0klvNbeZ2AQ2EfV52wf DdWdXR0MTh1aRQeAXOrAE+tPCJUiNh7Mhyo5zXm32py+Xeha0+EPMZSJMPsYDQxkIFJO 9blRUEdV5qs3ODS/0+7VW3g3/eli9EjiJ5y4T6uGZ26JGBSrtPUer3VjcOakRiOPV0xI pGJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020a170906088d00b007307a8f0c3fsi9904623eje.381.2022.08.08.08.20.28; Mon, 08 Aug 2022 08:20:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243635AbiHHPQZ (ORCPT + 99 others); Mon, 8 Aug 2022 11:16:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235105AbiHHPQX (ORCPT ); Mon, 8 Aug 2022 11:16:23 -0400 Received: from bg5.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF90D10AF for ; Mon, 8 Aug 2022 08:16:20 -0700 (PDT) X-QQ-mid: bizesmtp72t1659971776t7o87n9q Received: from harry-jrlc.. ( [182.148.14.53]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 08 Aug 2022 23:16:04 +0800 (CST) X-QQ-SSF: 0100000000200030C000B00A0000020 X-QQ-FEAT: UMQM+3VOEYugTYxy/3qdT57U6306eboGSBKchY3c73RC8lnbSZlOKCEKqEclc jV/py7hub2sQJWCnoXXvzfaFFLTBUbh9IAOK2pd5wtUyH9zzv1bhuo0D21O7KntCw9ZFn53 jklnRje3+CUta8Y11yQTac2yt5RfsEd2+YWs//bQmb3xTus4MdevmfZ/6mm2Yb70LQzXJky psIwCzQF6UGTKa3mSYHFp7P8MN1Kxx8FIoKClXOaellsoFwz/k6kTjWmTWAggBSN7yu9e4M 6YUMJK8X6+9eLRAD6Ap+WZ+WM5vZRcRMpUsmrkeRM/9ryaexdzvZlNKoZQ+C91kIwbUB+XN gCLgcLqw40crkSAaIVca+5AfvpW48LfwnyXxoRjmJ/MYYFFEo12Pi0zxh5UAA== X-QQ-GoodBg: 0 From: Xin Gao To: linux-kernel@vger.kernel.org Cc: Xin Gao Subject: [PATCH] KVM: x86/mmu: Variable type completion Date: Mon, 8 Aug 2022 23:16:02 +0800 Message-Id: <20220808151602.59140-1-gaoxin@cdjrlc.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybglogicsvr:qybglogicsvr6 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'unsigned int' is better than 'unsigned', which has several changes. Signed-off-by: Xin Gao --- 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