Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp750411pxb; Thu, 23 Sep 2021 09:49:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYVg5RvvAn8hWf+0Ok6BXAkWmCP3D1Ii6VYVQHMeDBX5GT6U3tyuU4Cp4TvvLmW41c1U4D X-Received: by 2002:a50:d84e:: with SMTP id v14mr6608874edj.85.1632415787375; Thu, 23 Sep 2021 09:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632415787; cv=none; d=google.com; s=arc-20160816; b=db2m/oHagX69y9jtP+h5XJV9ccY8BIovl13staADvgrH7tjg+av9tKLcfI4c8TWEcY dnVnWh8gs4XYElEznw4KcUlhRb7G+wYA9YZKKHwYK8Q9uTo481iB18tLcO6MKeAkvCGy CETczcCfVpIBUtTa59384LKJsSh8BMi5x+smRqiduzKswJtFymgoznLg2AL2IKIfeHbB hRX2I+SrmDwGnsMxOIPCS/+zSiMPdrJ3eMRoXgZ77YXDhhqV9dBs8lKZ0ToW/o0W9U2l GLUjrVISmBRGb6r8Cq8Z1kYUjfbOAlYaS0a8b98jC7PYPKgocUcHq+OOCisW2Ee8C9aa QnIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=ItPVdW06jesRja28cAhDZ6mhsonko7BV4wLY07tRRTQ=; b=DhM/r9VCNQyQ7dxQU6IlP84ttcug/3GzBlnbUtIaAndCyyMybTdaBFjUaSsBtIpEWB h2po+QJYXf+h0MVjqC5BrQFF5x1YNJPrns64Cu8eAPxMYRjgIsoAbLE4/6yOh0yleN6+ K2GhyXWhM2AGeZEi0q+DDMFB89T3TQzmalTRxykvjWizp2zGqC3Tm+IlVMj+5vu51zdy T3MpmyLznw62hKcXOvlgiXw9akHyukBXSk/SqadlMH31PheQdHw4Uli4SkuD6LQQvJJF YO3kDXv0ve2OWkfIQmfZjKIspHHCIacuFIPdMcMYnUZMlPgYaDqdT/ZbvT8NnIO3mXwr jUFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="pZXzZdc/"; dkim=neutral (no key) header.i=@linutronix.de header.b=bziYiaKn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si6631156edi.274.2021.09.23.09.49.22; Thu, 23 Sep 2021 09:49:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="pZXzZdc/"; dkim=neutral (no key) header.i=@linutronix.de header.b=bziYiaKn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237367AbhIWQt1 (ORCPT + 99 others); Thu, 23 Sep 2021 12:49:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235861AbhIWQtW (ORCPT ); Thu, 23 Sep 2021 12:49:22 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2142C061756 for ; Thu, 23 Sep 2021 09:47:50 -0700 (PDT) From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1632415669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ItPVdW06jesRja28cAhDZ6mhsonko7BV4wLY07tRRTQ=; b=pZXzZdc/pZJbAMOGWbbNBVysq7Jzj6W6ETkWTstLFQHsTvMAUdzpRL0gU26glefYvmxZ2L 9kVm79GMB5574W4x96uOV5Di5K4BOA3s7wNkwhZCZWjsDfpECLUOhKbWeE6AJQpTuHBGn3 2Wbv+JbQCaccEUw0lLObQmkEajJmoXmirCwjDun1NUn2QXtqR77kLf3Eg9Hnrhc4pS43h6 Xa1SZ+5FToWYej6Ji7EScASXvmYx488Kq/K6RJZ9Cwz5Gv4iYg8yRvDCS+0PMju73vvYh8 olgzyqJfY8jrGANpSAh4jaLHRDSutX2eJYDY0YQSRRZZ+xonyXiO/Tv/XlrNiw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1632415669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ItPVdW06jesRja28cAhDZ6mhsonko7BV4wLY07tRRTQ=; b=bziYiaKnQ+THVz/9sIujJQb/kWL9FjjU6ij+XapjiaLuhNsXzb1w8Jlzuw+tkGhK2+PB3s BPzvTZrSvO6JqiAQ== To: kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org Cc: Dmitry Vyukov , Andrey Konovalov , Thomas Gleixner , Steven Rostedt , Marco Elver , Clark Williams , Andrew Morton , Sebastian Andrzej Siewior Subject: [PATCH v2 2/5] Documentation/kcov: Define `ip' in the example. Date: Thu, 23 Sep 2021 18:47:38 +0200 Message-Id: <20210923164741.1859522-3-bigeasy@linutronix.de> In-Reply-To: <20210923164741.1859522-1-bigeasy@linutronix.de> References: <20210923164741.1859522-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The example code uses the variable `ip' but never declares it. Declare `ip' as a 64bit variable which is the same type as the array from which it loads its value. Signed-off-by: Sebastian Andrzej Siewior Acked-by: Dmitry Vyukov Acked-by: Marco Elver Tested-by: Marco Elver Link: https://lore.kernel.org/r/20210830172627.267989-3-bigeasy@linutronix.= de --- Documentation/dev-tools/kcov.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/dev-tools/kcov.rst b/Documentation/dev-tools/kco= v.rst index 347f3b6de8d40..d83c9ab494275 100644 --- a/Documentation/dev-tools/kcov.rst +++ b/Documentation/dev-tools/kcov.rst @@ -178,6 +178,8 @@ Comparison operands collection /* Read number of comparisons collected. */ n =3D __atomic_load_n(&cover[0], __ATOMIC_RELAXED); for (i =3D 0; i < n; i++) { + uint64_t ip; + type =3D cover[i * KCOV_WORDS_PER_CMP + 1]; /* arg1 and arg2 - operands of the comparison. */ arg1 =3D cover[i * KCOV_WORDS_PER_CMP + 2]; --=20 2.33.0