From patchwork Fri Oct 19 06:06:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 149220 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2905462lji; Thu, 18 Oct 2018 23:10:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV62bwq0FCRosMaJz9c4zGKfu0V+0cLeIQu9oWSBLTQff5tXW7Utq2588av33YN+N++5Bt/sr X-Received: by 2002:ac8:548d:: with SMTP id h13-v6mr5104602qtq.222.1539929408617; Thu, 18 Oct 2018 23:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539929408; cv=none; d=google.com; s=arc-20160816; b=w5d0a4gfq9koof8lOANYnWp4S58noiHjPrdetiwLQOa3tkLTbK8ebsKFB7GCT9o9kJ 3/vxggdqRkML8UKNUhzydrjgs8C18ZJgy9wrG129CXp7qjDZieZuprci3UBT83Stsdnm tRk8G+Yo3JkLdK+cNYQM97j/QFR1aT2bmzP6hsOFKK5Gg9FRbIkphbilL0qbG0V4u8tw UwTOhXW7vJfnXGoNdwNinpcZFE3DiUVgB2DcoBSdLAOr2kuMOw2S9JeVK+PipLkjtSTL dzmm2t0qTvndwgL5ni8Q3Rt3fyNOTX0O/wfIvclU08o07i5SJ7FzBOTQScw+pVpbYKVf TiWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=XPHfakviOHeoyHH8+nY/3eH0/sW+Fz1CCwfjdYYgSx4=; b=LyYAdU+ZO3tpbnjiDRI7pSJtGnGRj5zkddZVtYLRMOqXca1upajX3ZCIyeYpnXB2r6 czzL2qwCGMKHG7UUg40ZtW0IZLbiAyd4CG0uD+icjAioI7t92kk3GUt9NKXBnjlrM4Fc baL6CfXlCnp3dPNk4PSWBhCXRRXZ+TKRsf/VBOrtfGM5IEjM2luUWo9Up5Ke8dXAzTij ajbHagLV+rVP8xmUvykRXXAzTpCqfLvrYduqRL/iONMCZva23icFYrj9hgLwaXAjzL7Q pviXofTFwvQW5XUSDjvuDldcmqC1ZkkyWJiREVHH0YIXaatcTkgw5mpnTXumCFmqPU7D m3OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Wy5lKIDH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id g2-v6si6144008qtg.304.2018.10.18.23.10.08 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 18 Oct 2018 23:10:08 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Wy5lKIDH; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDNz6-0006nx-2K for patch@linaro.org; Fri, 19 Oct 2018 02:10:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDNw9-0003xZ-Bb for qemu-devel@nongnu.org; Fri, 19 Oct 2018 02:07:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDNw8-0001r1-FC for qemu-devel@nongnu.org; Fri, 19 Oct 2018 02:07:05 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:39159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDNw8-0001m7-4Q for qemu-devel@nongnu.org; Fri, 19 Oct 2018 02:07:04 -0400 Received: by mail-pl1-x631.google.com with SMTP id e67-v6so6414027plb.6 for ; Thu, 18 Oct 2018 23:07:03 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=XPHfakviOHeoyHH8+nY/3eH0/sW+Fz1CCwfjdYYgSx4=; b=Wy5lKIDHx3rn15O7krEwOZ+kr5jhmauxDDHYcRHN4/OQzskUL8OgJpFAztS0QqBz1J TLd9uwPuk27+cNBY1hPmc0VIHAKojT0AaojZAMPLsBPPh+kcwVCi/JHfGzufJO68SHZ8 Tvb7RKFayIH2dLEuh2NDXCcXx40fbN/feO+nM= 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:mime-version:content-transfer-encoding; bh=XPHfakviOHeoyHH8+nY/3eH0/sW+Fz1CCwfjdYYgSx4=; b=D8SyWhrc76d93uTQcES6ux/ZTS6uwFmL04v5P73PhpOs2R90cy2Wo1KZg04GKTUc9O 3T+rm+N000I2SSHZNiR6boFd3p1noVoKv/igrbqfid8NQFniE4Bji+ysbhwxQJucSI55 PUHZuNqYKH4WLTZEIAkxtp6/L/T7KUY2u8g1Sx0PAEgRB6M7x0GB4ShYbgMD/ekHQFNk 3/am1egZ/yzjTJ5jYpN3IPdTDoWbfngDXJiGxL01Y8Eyliu401QkbYM6Usre650oCUr5 tzOj36uU1qPi8xyKwhTt9rdNQR5vGmRgLQNO2SkWVrrO86jX9hlf9ZweVsWLCEeis7r4 MDSA== X-Gm-Message-State: ABuFfojH10s77+mPLe9gpUZu4Co2M+FgKc5G41Cw+1mU0xtybvXyLYTS mU2Kk0es66iChhrk9bFEGL0jfWsGvZ0= X-Received: by 2002:a17:902:16a4:: with SMTP id h33-v6mr32155001plh.3.1539929222805; Thu, 18 Oct 2018 23:07:02 -0700 (PDT) Received: from cloudburst.twiddle.net (174-21-9-133.tukw.qwest.net. [174.21.9.133]) by smtp.gmail.com with ESMTPSA id q24-v6sm25609327pff.83.2018.10.18.23.07.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Oct 2018 23:07:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 18 Oct 2018 23:06:38 -0700 Message-Id: <20181019060656.7968-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181019060656.7968-1-richard.henderson@linaro.org> References: <20181019060656.7968-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::631 Subject: [Qemu-devel] [PULL v2 03/21] tcg: fix use of uninitialized variable under CONFIG_PROFILER X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, "Emilio G. Cota" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Emilio G. Cota" We forgot to initialize n in commit 15fa08f845 ("tcg: Dynamically allocate TCGOps", 2017-12-29). Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Emilio G. Cota Message-Id: <20181010144853.13005-3-cota@braap.org> Signed-off-by: Richard Henderson --- tcg/tcg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.2 diff --git a/tcg/tcg.c b/tcg/tcg.c index f27b22bd3c..8f26916b99 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -3430,7 +3430,7 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb) #ifdef CONFIG_PROFILER { - int n; + int n = 0; QTAILQ_FOREACH(op, &s->ops, link) { n++;