Message ID | 1518467557-18505-4-git-send-email-mathieu.poirier@linaro.org |
---|---|
State | Accepted |
Commit | d2785de15f1bd42d613d56bbac5a007e7293b874 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3565817ljc; Mon, 12 Feb 2018 12:32:54 -0800 (PST) X-Google-Smtp-Source: AH8x224I2wKL+CKB6Pk/WD81z6Lq8XhtMgBz4cH+JKGwVBojfsjSl4oJUO7qaJAe7CfWxY39WLUA X-Received: by 10.99.120.134 with SMTP id t128mr10353631pgc.313.1518467574380; Mon, 12 Feb 2018 12:32:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518467574; cv=none; d=google.com; s=arc-20160816; b=RhYexu8/evmzFu3bHcyb/yGGQBdrsKNeOFtFG1CV3EI+8KukB33+CWUW5oPLk8e0hz ZIRws9HYmbQQAGh/UWLzb9gegkRG3hgfwCxj1zFidKXvta4pmlPtuGDk06rwXPqoBjmV AL1EEq/X6uPKa6Fj+TzllolsVps/w14EffEZh4A7Xph3b0Z2ZDIjy+ko3HLl4YeUwpM7 c9pXaWu3yrzlXWH6/yvmzIzEK8IDjl6uP24myPDs2seBk+efwHhrizHsv9+CIvTL5muy HixbvATED8KSbDVguVJVsgfk0hFgB4uWoXqpf6alC47sL1nwditn2ZppABsQt7cpJE5F 3IBg== 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:dkim-signature:arc-authentication-results; bh=isG6eeZ1XXZZZakKFHsXwGZfK52M7xc/g2y3D4CCZyw=; b=TXx7m247Q2SJ3mF9MseG8Vy2rFieybMj5f08Z954M12CqllzV9CvcOBoBWfkWHwvAb K4LPGPlk3oyK6dqtfXH3quRfmOLf68Yt8QQ0QBRzHZqxHBnpvOZmaTxm8FJKdixQCFtm /vSw3m9k7Q6O2Zzftk4E9hdms5wOZ1N5OI4ifclS8LZhRKuRWHH7qsHZznNiiZpvSI4F wZ+OiDZl8CRyOtOyFpgqmOQtDxU5dnwBkvrzO9cyDQJ362ST32tT6/mcaRdAaViezW1U LYREdyZxst+e8+X2l1J1mNc1J5SvXxVRaI4PQewm68x3D66aCXe9kwnRBNfp6UNuLTa+ g/KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WXc/u3rj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u73si2655949pgc.381.2018.02.12.12.32.54; Mon, 12 Feb 2018 12:32:54 -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; dkim=pass header.i=@linaro.org header.s=google header.b=WXc/u3rj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754048AbeBLUcu (ORCPT <rfc822;semen.protsenko@linaro.org> + 26 others); Mon, 12 Feb 2018 15:32:50 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:38511 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753193AbeBLUco (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Feb 2018 15:32:44 -0500 Received: by mail-pl0-f67.google.com with SMTP id m19so612931pls.5 for <linux-kernel@vger.kernel.org>; Mon, 12 Feb 2018 12:32:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=isG6eeZ1XXZZZakKFHsXwGZfK52M7xc/g2y3D4CCZyw=; b=WXc/u3rjHjm906BFAyGwVHa05S+YWldKC6bHxzjI/PhjQJKvR0rUaN7Bw5FM5cjnUA TNAFgznN72KeTdnZ7Olxd0LZl7WHxseSnO5K6YpGBMB3gPFyFCgFNzjQE81GgwB9QU4I aZMkYzfmqtSJsSiNx0907HwGbbOQ35LeFf614= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=isG6eeZ1XXZZZakKFHsXwGZfK52M7xc/g2y3D4CCZyw=; b=kSMWM6OLdV1+f8BQaGy/H2eaarlaOLNhccV8EUBvDAFBiCatuphcAPZQR7gYorLJhy K14nmgP6P5sPrkv6cBr7rLj4zVONdmxMzEmKVb4BhhWHUYPduyrCSwy74O4lQWO3Wh6t Ywg9a+31pkm+/HPl3++e7DamxZQwEkZPuNMY8HPEyG1NAif0GOQTBF/Cj7fVXMDeUORy gfmOzTT3bMP9jsoFOaHDdM0+fF2Ek21ayEhI0rhg0NXvGzNE33w8IOgIxRKxB+dmRmAe ETTYPTWEAHGI80c2/q+GRn4KMtKoOs5cVE/e2siVGj6x+oNYN1YgK8LtsxJT0/YAmDIu x36Q== X-Gm-Message-State: APf1xPCnK2BUxGzPn/uWEFUNRUA3u1f0hcAEE+EFEmpndOWv6nHE+fm0 fgs/PkoxsRqv9M18z37fvvUFYQ== X-Received: by 2002:a17:902:7848:: with SMTP id e8-v6mr11938396pln.386.1518467563953; Mon, 12 Feb 2018 12:32:43 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id c8sm12856594pgn.72.2018.02.12.12.32.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Feb 2018 12:32:43 -0800 (PST) From: Mathieu Poirier <mathieu.poirier@linaro.org> To: acme@kernel.org Cc: peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, namhyung@kernel.org, yao.jin@linux.intel.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] perf tools: Fixing uninitialised variable Date: Mon, 12 Feb 2018 13:32:37 -0700 Message-Id: <1518467557-18505-4-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518467557-18505-1-git-send-email-mathieu.poirier@linaro.org> References: <1518467557-18505-1-git-send-email-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
perf tools: Miscellaneous fix from the previous cycle
|
expand
|
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;
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 <mathieu.poirier@linaro.org> --- tools/perf/arch/arm/util/auxtrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4