Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2372992pxb; Fri, 17 Sep 2021 08:22:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXhtANdXXKVBt6qsUbsv26sTXxLEPg3pPBNPZ6M+US4GPREgFwWOA9TO852sgmE+OUfifi X-Received: by 2002:aa7:ca0a:: with SMTP id y10mr12989609eds.329.1631892140047; Fri, 17 Sep 2021 08:22:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631892140; cv=none; d=google.com; s=arc-20160816; b=hPUFsycsKhm0xT1Fmi7s1pjBG5CMFDUmsjHLV5IZjmxJlWDarfWi1fmnqNkNixUrgm vp62jsgagxX8Joz4oB9U7pItqB2rh72siqI69XcVi3Kn5rXPgGE1S4Em+JAD2EeRJNhk 7sFNwyJHL4gxvOp79Xgt8GxfxOkydJ5EiX6racTcq77ayfz85En90KC/W1lpaBKL6Qha 2Sz6cGIp8nApL5ZcBH5AX2peH79jEgm/qyL+1/G0otoQKJ2r1XQPLRzisFKmSApxkgZS MAcl4Rj9NJGcCS3Uj14AogE+fCY9O/YVl6xUSiWVQYX6vajEqUw8AhW2gafyPAWenGpL iAVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ID+EROtCIq5uKg/d863vFLkQbbXUtaQHcxjVUWZxmJg=; b=vdKS3bIjMDJcE0fEwl1UQJIuUKqL9Prt7Vt6l3r/qs/ivlN5VuGYcba5j5QXn4k2uM cYD8AkpmW4ktjqjkr6bce7RKxxyViGA7iUznrDWcJqG+TwVWiQvHoFz4mgdaowc6ye/+ IcwDh/bLz+KybDfnzrhL0w9MuMdhvSFE6dzGtGQ7NRL0EPJdRreNsUjMNP8HsZVXKzzu COStmhrBfYMXY518/ksjMxLlT6V8j/iuUZKNq5h5DF8beXNZazzCQ0ft4gMb47Psy48u E/qFXAI+AkDLJZOio1l9cV+bA8ysJ9v3lv2nnce176Ypstosxn7spotndFNUfO2gof/z GNyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ECs95L59; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t5si5003112edj.607.2021.09.17.08.21.53; Fri, 17 Sep 2021 08:22:20 -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=@google.com header.s=20210112 header.b=ECs95L59; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242975AbhIQOgb (ORCPT + 99 others); Fri, 17 Sep 2021 10:36:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241700AbhIQOga (ORCPT ); Fri, 17 Sep 2021 10:36:30 -0400 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A7CEC061574 for ; Fri, 17 Sep 2021 07:35:08 -0700 (PDT) Received: by mail-oi1-x236.google.com with SMTP id n27so14308061oij.0 for ; Fri, 17 Sep 2021 07:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ID+EROtCIq5uKg/d863vFLkQbbXUtaQHcxjVUWZxmJg=; b=ECs95L59V1c5niovkF76nE4YKmQuTv0PTD62kQiRhRclIIj9933G+G+bOItYg/s0la jz7c0oYfnP3h8WI0SvWXb4FiTSfIJgX40XIazB+wIWjOqAFGiPyFdKxfW/AnQCRzboIN arXL2T9x1efYsHEDkaC+3YgdqYdBXQOUoZP1BDIBQK2oLt2RzyRgAoosktEsFFs8bG4A dSr0LUITSxD3KX95IPvzDjVmVm9aKRlxRHpRpHqug0Ury4sP8UxL054Lk1H27GXI+rKV vavOyBlyHbl3ZY40Wfl8PPaDFsAwVHfozfLrUkOFddKFFmHX9an6HBN1Xq58uB3veLsF iqbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ID+EROtCIq5uKg/d863vFLkQbbXUtaQHcxjVUWZxmJg=; b=CufkaK+YVGB6a5W69iydG6fkkCiRt3E4SzGy4F6InHtnXA7PP2HmHUYDJPVyHAcM+j 0ows9zOFuWZv+8LDdK5nVEZPBDb9oobPD9hky+BL7siFiLH7qxQ6uSrvp2L5RQhqEMXD PInWaoq2xeJ0ARp/DY7sWyPHY4tRGedceKL9j1ZpwASdd+SJ5akSPQNd2FxXVgkwiXR0 G2gBWcpYFmQ5MyCfjvL4u34TS+v7ukgDJUGApKYNWBeb+w+v2wmNeVKj7k3vsoHFH5NZ yGwgbO4Bl4vriVFsYnc49ZYu3Q1CPXdtaRgSQ/3wqAZuv04G/coEIn3GsbonnVTrLY/r atyA== X-Gm-Message-State: AOAM530h4OZEGygPXScG6T+6Ylr4MEYoAd4WVSJ6JRbHfWQrdZzKxg0P kcmaNjpt8iXSGiC/jB9OlPoW3HP3WznocUpnFb8L9A== X-Received: by 2002:aca:f189:: with SMTP id p131mr13881383oih.128.1631889307519; Fri, 17 Sep 2021 07:35:07 -0700 (PDT) MIME-Version: 1.0 References: <20210830172627.267989-1-bigeasy@linutronix.de> <20210830172627.267989-2-bigeasy@linutronix.de> In-Reply-To: <20210830172627.267989-2-bigeasy@linutronix.de> From: Dmitry Vyukov Date: Fri, 17 Sep 2021 16:34:56 +0200 Message-ID: Subject: Re: [PATCH 1/5] Documentation/kcov: Include types.h in the example. To: Sebastian Andrzej Siewior Cc: kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, Andrey Konovalov , Thomas Gleixner , Steven Rostedt , Marco Elver , Clark Williams Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 Aug 2021 at 19:26, Sebastian Andrzej Siewior wrote: > > 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 > --- > Documentation/dev-tools/kcov.rst | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/dev-tools/kcov.rst b/Documentation/dev-tools/kcov.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 from within a test > #include > #include > #include > + #include > > #define KCOV_INIT_TRACE _IOR('c', 1, unsigned long) > #define KCOV_ENABLE _IO('c', 100) > @@ -251,6 +252,8 @@ selectively from different subsystems. > > .. code-block:: c > > + /* Same includes and defines as above. */ > + > struct kcov_remote_arg { > __u32 trace_mode; > __u32 area_size; > -- > 2.33.0 >