Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3915735rwb; Tue, 16 Aug 2022 10:53:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR7cWYAvU9oCV6oJXJF/TD+leri3E6yqfcAL4Zty4xC24HUm6nE5kRzLEvY5T6Wkkeptd4Od X-Received: by 2002:a17:902:8543:b0:16d:ac6b:34f8 with SMTP id d3-20020a170902854300b0016dac6b34f8mr22769660plo.88.1660672416861; Tue, 16 Aug 2022 10:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660672416; cv=none; d=google.com; s=arc-20160816; b=B2lWA3PrHLIWHNA03R8PkDOddLEbHJOR4oNhrgw3Kn8DFyKT0GKGL5UX4UPiUYihGn s1utCc65dvBakFDmlpBSWThONbYkkEb4Zr6Cm43dR/aQ0vUc8QLNeBTYGGwECZBu8UVm PgvHroXw98PPBpZBING3qkHZNhil80pLnvZ6BAKq3LQkwhINkHfYg6297jGVcWNDZylA F7Lg68LbbAjbW3ReDHx0nHO4rxOXmlhBkqrAKnjv52s3rNuZQJ3uVVJGVQiHEM+YkQ0/ li9lxOGiSo+C8Xx0nAMLoFeH90vQCfGFz8boY9H5u9crxE6ac78EAooiyZWJlFwD91VI DeJQ== 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=/zqTiP3jpwZrfvOh4Fr1KjgrrHYI5wc7GZR/tZnyi/g=; b=BboTa+DqSIDoswZ4bAD2jbSleoQAlYrGmeVZGQYLr9x7fP3Cf+VhvnbZiV6XzXkLL/ ISsC3vXQF/Lu5x/hKXmKsBG5+31FMTuLyEppvR7uRNVvJ5SoOVLhGiB19q0clvrD2u10 eXQq/a309HRwOYtgrFRzyL9RRtSYnbORxVLst1aYzbEu2xqGtC1IKiKqpaslFGBEnRC2 rpxjMU4UssWhCmwS2inmI82Z7oqAA4H8su0l0z9kEGDteyJO21BxAizsLqjmuU365msI 9IKipxsMEuTzxU8a2rctsyLGkbsVMaGwFWj3F0obchP9Q5knAWelvuIzMEGimOtGPtm2 mnjg== 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 q1-20020a056a00084100b0052dcf00aca5si13179363pfk.40.2022.08.16.10.53.25; Tue, 16 Aug 2022 10:53:36 -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 S236387AbiHPRmC (ORCPT + 99 others); Tue, 16 Aug 2022 13:42:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233537AbiHPRl7 (ORCPT ); Tue, 16 Aug 2022 13:41:59 -0400 Received: from bg5.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFE7121801; Tue, 16 Aug 2022 10:41:56 -0700 (PDT) X-QQ-mid: bizesmtp88t1660671681t74hx3op Received: from harry-jrlc.. ( [182.148.12.144]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 17 Aug 2022 01:41:10 +0800 (CST) X-QQ-SSF: 0100000000200060D000B00A0000020 X-QQ-FEAT: xqT8U4SkSphTDDkaSJLIDDA0iAQssCISAKJJgZfRA+41rXHjtp7pGpTT5XDCA Oy4Ru9qCP6Zxy3KLFLLS9UC9X34WUPH3XKUX5tiQRKmZq+ebGodM453X6Lseqy90l4iRQO6 yqq4m/u9Z5kRe0VIeztMVCOGnGrUN9sSTn27a8HaO5PSVsgaPog3oDEd9YAYSSvUDQ2dI9R 2inrCrImq8zdgkkVcLb1d2+N8ZubCtcXqkPukmCx0BrXNxPZ47Aa2ZddjiJJLVbdjsY5EMw drU6V524n/edUtubIgEBJduZ7grHyxyH104O2Fw1JRK8LhQ1ij1apjvTeuhRvKFOKdG8JZ0 gIrXY3mBYqZ1vHyezdl5oQOlWAUUDwJx6Tka/J6DAIdtT4iFzAFf9HXcRDzeg== X-QQ-GoodBg: 0 From: Xin Gao To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org Cc: namhyung@kernel.org, irogers@google.com, ak@linux.intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Xin Gao Subject: [PATCH] perf parse-events: Variable type completion Date: Wed, 17 Aug 2022 01:41:09 +0800 Message-Id: <20220816174109.7718-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/pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index f516d3821d28..bc1230f68341 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -1225,7 +1225,7 @@ static char *pmu_formats_string(struct list_head *formats) struct perf_pmu_format *format; char *str = NULL; struct strbuf buf = STRBUF_INIT; - unsigned i = 0; + unsigned int i = 0; if (!formats) return NULL; -- 2.30.2