From patchwork Fri Feb 16 19:17:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 128632 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp908840ljc; Fri, 16 Feb 2018 11:35:36 -0800 (PST) X-Google-Smtp-Source: AH8x224DwZd3GKRS+QPy7kyH9lFfAeszN8fPZj2z+iw4kOb/fEDpQxPMgsGPeWV7CPx/NFNyGNjU X-Received: by 10.99.181.94 with SMTP id u30mr6036351pgo.205.1518809736519; Fri, 16 Feb 2018 11:35:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518809736; cv=none; d=google.com; s=arc-20160816; b=cJ+yYak45evG9jgWw87AnqDmk0N1isqWY9rtc4WvtpZoxtb70xvQ/jedIIwveqFG+d WcQegrIjgzb15VUjduQIYf6kJvgFVMHo0ZpIclXSrKYRr6AuWIZAznqbyjC9RvXI2Qi3 v9dE8X7yMS5aBLDEGJZ/NkHfnChquKrPBViNLbyBppIwXLv5ReHRqEcff2rOruzYAe0B ptchN5fjHWRzWTNOMIe2/zHngvExux6MyvgZS73+infLHDTazzNYSfmqvPXtNKzSBLYf BGm+K5qIQMCGAGFAUhZ3gJNf700sAkiZ/GIch9PS1RShiQYaTYM6u44tcb1DuARxK314 7BSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:arc-authentication-results; bh=XdZMZk2fw0J0PHoO2Rguy3MCevWXqCWx9vC+VjOVU44=; b=eh0E4YTdBzswxIjS3kTA/BzEZ6tP46QD62egP4I24yUOXfSp5TPprU3FC9t8YYAtFa OfMblvZWeMSB1h07YgXuf1hAtRqGprBL4p0D8jHupvEC0x4LZmqRk0TZIawawzvgCoT6 DAv11VGtVkgxoohHb62ta6QlMww85sjBhYkGbXFddbDCU+oZNjjWFI5hSOV6d9Kh11Zt IhlwjmLabE62yT3q6mjOQUM5C0ayeEIOc+/9hoHORRUY/g1ABS3LdEFtKZ/PrFRlbtPx bwQhqx8iCvuMdsaNR7XQSZweeqqy8BxmrnBV3mWNzyfyGybQWz3Eql+rm/iL5Y/t8Ytd 4kEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1-v6si5166904plr.558.2018.02.16.11.35.36; Fri, 16 Feb 2018 11:35:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751364AbeBPTfc (ORCPT + 28 others); Fri, 16 Feb 2018 14:35:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:56532 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753684AbeBPTTT (ORCPT ); Fri, 16 Feb 2018 14:19:19 -0500 Received: from jouet.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5E198217C9; Fri, 16 Feb 2018 19:19:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5E198217C9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Mathieu Poirier , Alexander Shishkin , Jin Yao , Namhyung Kim , Peter Zijlstra , linux-arm-kernel@lists.infradead.org, Arnaldo Carvalho de Melo Subject: [PATCH 22/41] perf auxtrace arm: Fixing uninitialised variable Date: Fri, 16 Feb 2018 16:17:27 -0300 Message-Id: <20180216191746.11095-23-acme@kernel.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180216191746.11095-1-acme@kernel.org> References: <20180216191746.11095-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mathieu Poirier When working natively on arm64 the compiler gets pesky and complains that variable 'i' is uninitialised, something that breaks the compilation. Here no further checks are needed since variable 'found_spe' can only be true if variable 'i' has been initialised as part of the for loop. Signed-off-by: Mathieu Poirier Cc: Alexander Shishkin Cc: Jin Yao Cc: Namhyung Kim Cc: Peter Zijlstra Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/1518467557-18505-4-git-send-email-mathieu.poirier@linaro.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/arch/arm/util/auxtrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.3 diff --git a/tools/perf/arch/arm/util/auxtrace.c b/tools/perf/arch/arm/util/auxtrace.c index 2323581b157d..fa639e3e52ac 100644 --- a/tools/perf/arch/arm/util/auxtrace.c +++ b/tools/perf/arch/arm/util/auxtrace.c @@ -68,7 +68,7 @@ struct auxtrace_record bool found_spe = false; static struct perf_pmu **arm_spe_pmus = NULL; static int nr_spes = 0; - int i; + int i = 0; if (!evlist) return NULL;