Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3907676rwb; Tue, 16 Aug 2022 10:42:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR6+EBrYfdxCjfabHrsFZDQfkJNRYuEffutYcqozuXydE/DQknC1W8R+dc3EiMjeZz64tFzF X-Received: by 2002:a17:902:ec91:b0:16f:176f:ec98 with SMTP id x17-20020a170902ec9100b0016f176fec98mr21993433plg.141.1660671763175; Tue, 16 Aug 2022 10:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660671763; cv=none; d=google.com; s=arc-20160816; b=JDIJqxbyVJyLH5qybXcQ9sUkk1HLAn//Fh5abpWSqetetrL6MuRloCkxG9Au2JY2k0 QZCod6T0nE8UZT6+za3eYCEeA02UcHdh3+h4WDohSLOAlvrob4o45h8g22Ge8eZ3CS20 RsvzedJAUQ9ZcYpyLa7AFocb3L8izEMZqKbeICtkk3E5y0ZaEHc6DKmh+Va5SbcoV1/r 1wk+rp85x6JqeemMf+075YLx+x5LZVWA+BEoigSEI3OSXDqU8eGyKg8rLnuK4B86RWPo /3w3p52OluegF0dR7oShYXHiuEjlKAaxexQ/1HjKgHcM+ZrrpBaBCoAjFKoZmYK8N8pR FNvQ== 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=qrWPTcFTR/3eSdsQteggNdUxxBsGdFcI1QNlrsw7ktM=; b=U6hm80j55YCOd/TVf5s4IyIfMJpvo4GF687ytbpe6VaxYfTxroY7CF5cdJ3k2Zdf5f MYai1eemAtKmf8mTV8bHNo66sQnpjsCpICYnZ7Qr7FbLlA1ZluMhCSALCDTq2To7E7dj oo9X0gPtRC8rdzF+As+DIF4RR4BSNunox+GO3d9UXoMYXvIgbOnXBHELk9gVA640LNIQ H/BeLKRUoK/r2ixPkUc23KPDAwacYCKZNIjHrplEhDlinEPTLw1qxkLqATqpTVC3YLus 1Sj1qmnv0VmlmjyDmmpLGo40pn4b4v5MiOb/Q7bowHl7emsjI/FqZ908TYCL9ygk/TFQ hHvg== 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 k3-20020a170902c40300b001708ec10860si15531242plk.604.2022.08.16.10.42.29; Tue, 16 Aug 2022 10:42:43 -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 S236290AbiHPRin (ORCPT + 99 others); Tue, 16 Aug 2022 13:38:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236759AbiHPRih (ORCPT ); Tue, 16 Aug 2022 13:38:37 -0400 Received: from bg5.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C791C3718C; Tue, 16 Aug 2022 10:38:33 -0700 (PDT) X-QQ-mid: bizesmtp86t1660671497tp0hmleu Received: from harry-jrlc.. ( [182.148.12.144]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 17 Aug 2022 01:38:05 +0800 (CST) X-QQ-SSF: 0100000000200060D000B00A0000020 X-QQ-FEAT: r/cTxDoDoiHFKS4LFalCA3jzslwrLAnPDYJotktburOuxpIbzU2Nz4ejWIojG YfYQG6qV5Nr5Mln0E1HFO3Mbhv2SRzh54hosARBoMD29aUBa8fMZ/5SNk3JF/HWY5/36hMG bIxSI/yvWVWkc9w//De82CmXkDoKOfnVx+6UOLdhvV1GJF8KsBXNLAMQF+r9CmrgT7PfoMw BavNCMEwba7wUTZjkY3hjm67SuR4eK0jUcFUw3no+Q73XnMwDRSymEEXEsuro2IFJpdS9/V LsgMz9gjns9mJ++JTvjX8iEh7C3n9FsJW1CHkLoiM+dgdexcr9uomgpsL0z75pkkARIQxMq rR8glep3N/qYRcLn4UoxCefKmbhJGi4pmvYyZVKAtZ++jR4j8A= X-QQ-GoodBg: 0 From: Xin Gao To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org Cc: namhyung@kernel.org, irogers@google.com, john.garry@huawei.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Xin Gao Subject: [PATCH] perf metrics: Variable type completion Date: Wed, 17 Aug 2022 01:38:04 +0800 Message-Id: <20220816173804.7539-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'. Signed-off-by: Xin Gao --- tools/perf/util/metricgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c index ee8fcfa115e5..8926de9617ef 100644 --- a/tools/perf/util/metricgroup.c +++ b/tools/perf/util/metricgroup.c @@ -1620,7 +1620,7 @@ int metricgroup__copy_metric_events(struct evlist *evlist, struct cgroup *cgrp, struct rblist *new_metric_events, struct rblist *old_metric_events) { - unsigned i; + unsigned int i; for (i = 0; i < rblist__nr_entries(old_metric_events); i++) { struct rb_node *nd; -- 2.30.2