Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp750388pxb; Thu, 23 Sep 2021 09:49:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzv/A+qO1kdYu5hjO+Mo1JCuhduhXC1h8ydOAKHhhIdAKeRKAiaJKfvuix7o4Wl2Ta7ec+P X-Received: by 2002:a05:6402:168b:: with SMTP id a11mr6810891edv.295.1632415785376; Thu, 23 Sep 2021 09:49:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632415785; cv=none; d=google.com; s=arc-20160816; b=ggC53WgNT0rBhdbwhDOfcqXq4nHpNHsXlCNiVcTpiBprOl83IsGSrf+pkxVQjkQG0S HSNCnVS/ofO/suX6cOzH3nffxfIyCbifPdF/ihDavigpL2cu0BJ90qjUi+Q+GwJxLxyE s44/BEohYPQp1+FdcbzEd1thIoF/SN8//EdzagY0ZqmsPd6fAtl2Uv04uSwXkhyRsWXs Ta7waaAgsXqDI/xIxHQrIiecYnHTxLhg0mpYU7tvQu4Ykgsnr5kgrGOALOd/jO2tUuhr ci+3cK2Ed0Cm/zDrqaRtXGYLGacPZPDePBsNRor+ec8OfLrfc9TL+RSlDyUBDhzVSw3D dYCw== 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=mB7jM56vMMnOkxJZosiS0/83k5Pr1jaIkmbtlQVNiLQ=; b=tlznk6sdfmlPxWKEdLvlNjhuXdA9GQGNiFYjPZJk27OUYfHctI6aQWR7MKRX6PfANy 1hkN+cavxGsoghqMaiZcHE+qlOw5hqvawjhyffAdR+2CcMg0YFLvPW+f/DFJ0AAnSn+u ZbFYrnljiBXgWOASa/e4LCWflmXfTCmYgWve1l0KDpKPzqGH+my6Qy5pulB5b8L57JCR Q1KeCX/d4/NDqYjgHNixgndPCSmenqS4IdCRYRDZcH67XRDZ2SOq0UU9RHf5RrGcbhDu SWIChcuBgBM3dtQ2Rxlwf3n4nwBcrbSp4cGn5wnCKz83Qx82nkY86Zlk6JNLTzml/xvk 2qog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cfc5y3MO; dkim=neutral (no key) header.i=@linutronix.de header.b=bQpyUwD2; 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 mc2si6319531ejb.457.2021.09.23.09.49.20; Thu, 23 Sep 2021 09:49:45 -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=cfc5y3MO; dkim=neutral (no key) header.i=@linutronix.de header.b=bQpyUwD2; 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 S238671AbhIWQtZ (ORCPT + 99 others); Thu, 23 Sep 2021 12:49:25 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:35832 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbhIWQtV (ORCPT ); Thu, 23 Sep 2021 12:49:21 -0400 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=mB7jM56vMMnOkxJZosiS0/83k5Pr1jaIkmbtlQVNiLQ=; b=cfc5y3MOt3mPdHlynaoCXKV4Vx596udf5y2RfWe8+rm+WhRv3vuC0EPNr5hgescfaA6bBF qLYpfNhlxj1t84WFJvs4PwuDB/3OmaLeFcMPZ2U6OF8d3qjM9mdJUiIyJXANLt75xQIQ8t 3XYBP1jUAuF2TxfX6B3Q0XM2HW5gkgMvYhcHeQO9Cjvk3rV09uw01XPBafJZZMNT9nkXdf Y1x/zWcB4ysJUwC2lbz3fKlgbErZ7CG0ZEibipw95/5uQdkEcp4U71dqYlI5m/DFCV4Yro r0idyoyhuvhcyrqOejYoUuuXSDEwwnOmthYtx597PFliCohOZAGpv5fsqXv46g== 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=mB7jM56vMMnOkxJZosiS0/83k5Pr1jaIkmbtlQVNiLQ=; b=bQpyUwD2Hdv9J7AC4Y8Kbmy6j9LmONa05DJE3HruwTyN2IwXo55HsYz38Mt/PnhU6WD6Y0 IhWSLAm1a0YE+dCw== 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 1/5] Documentation/kcov: Include types.h in the example. Date: Thu, 23 Sep 2021 18:47:37 +0200 Message-Id: <20210923164741.1859522-2-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 first example code has includes at the top, the following two example share that part. The last example (remote coverage collection) requires the linux/types.h header file due its __aligned_u64 usage. Add the linux/types.h to the top most example and a comment that the header files from above are required as it is done in the second example. 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-2-bigeasy@linutronix.= de --- Documentation/dev-tools/kcov.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/dev-tools/kcov.rst b/Documentation/dev-tools/kco= v.rst index d2c4c27e1702d..347f3b6de8d40 100644 --- a/Documentation/dev-tools/kcov.rst +++ b/Documentation/dev-tools/kcov.rst @@ -50,6 +50,7 @@ The following program demonstrates coverage collection fr= om within a test #include #include #include + #include =20 #define KCOV_INIT_TRACE _IOR('c', 1, unsigned long) #define KCOV_ENABLE _IO('c', 100) @@ -251,6 +252,8 @@ selectively from different subsystems. =20 .. code-block:: c =20 + /* Same includes and defines as above. */ + struct kcov_remote_arg { __u32 trace_mode; __u32 area_size; --=20 2.33.0