Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1074453ybi; Thu, 30 May 2019 11:09:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGkhZNpSED4XO2HprigIS+PBtoCtu97ydFtMOd+k+iI5F20nhd1Tt28jw/AuV9UFl8WlVx X-Received: by 2002:a62:ae05:: with SMTP id q5mr4816082pff.13.1559239783605; Thu, 30 May 2019 11:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559239783; cv=none; d=google.com; s=arc-20160816; b=HigK7bjFuaCiZHJE4ezDrZOq4nYY/mSv9DFeh1+8gkDyXvNyiCxsq0qjtMBQKy0S23 hUakuE3OAC5oJIBeRhgAlrlASAnDslXLNY7ym8hFX3KIE+hR/I8byjRxhSp+NID5tXjQ Y2/p4gWM1XZhls7oLosSOoO8vT7K2hSXzZtzUF4bH4mzfv5kz5xf5ngPpDratCtEVwRH tKi5bbYTEAR+AjxWn572MvSXvixQscxXpHN7aNcQw6PHZ7HBHgicQpuETTj9XP5uNzfB V0u4HSoGw6YWjNvjRe2oFOakpXO167pbITUt+3GfbOL2SYAAmeHSrnzlepxxQUKpUYqj cWmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=uBh8frPBklj3PAGNxGo58zhsB+Wp0GYqDmO+TlNLHb4=; b=vtB6wnLE9uH9KLi5zb4+zX5YaCov6t9rLgZhpxFW9oZEjPYV0gdhjriseNcJ7Clpwe DTR+yCp8P0cD8zQ+UV7uOkwC5DkhpjzsHHmKnb6GjCpVGZ7s+Tjb5Ru6VvYJaPugRcLF G86Zp9eQsN6f2cPh/clJBiRQtp/7+3xHqvU0OW9jSXy/rIiQQ652vOfM3nS1birTEc7Q WuywzuUFmi22nTJ5WByvNr6ocrbO8H95fxguNylAfSaa0U8o+JbOV/nmi0OlQyFUuQNR pdksWiVCBkDuFHMHrO1ANj5S4sHWBXoEdPRtoLPJn3VCEXSsDZi8ONc1ILo6BF3pScjL 7YmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PSCQw9sh; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i22si3954547pfd.84.2019.05.30.11.09.26; Thu, 30 May 2019 11:09:43 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=PSCQw9sh; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726748AbfE3SIW (ORCPT + 99 others); Thu, 30 May 2019 14:08:22 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:36736 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726461AbfE3SIV (ORCPT ); Thu, 30 May 2019 14:08:21 -0400 Received: by mail-qt1-f194.google.com with SMTP id u12so8120120qth.3; Thu, 30 May 2019 11:08:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uBh8frPBklj3PAGNxGo58zhsB+Wp0GYqDmO+TlNLHb4=; b=PSCQw9shmXX7hlCnO9U9xGXJV2sYFdQGNyCBdUuUa/l3mnlJFLBbC/R9dO8coJ7KQK uSkhT/QZjbHUNLMGnSrhfIS5EB7TBjkd3EKTwIQoL2jx4Y1HRJy+x2P0XyuKfJkLFiWr kOOH6Zgm9RaJolfR7n+wpeCNprzuof6A5pDd8vZaRIbHfcb3wplUb077cAEldMm0aKi4 4y59CAYA05IALYlBFqgBO66SO9I00jxiXM9pJquIHViY1jPKULRBte6nn6Xdc1KGem17 3b/gLWwXQhUzCOLE05Hs9c1smxrC65+il0n6WzjIYLvKjDacuYo0ZLBVMTh6UAzsnASS nzQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uBh8frPBklj3PAGNxGo58zhsB+Wp0GYqDmO+TlNLHb4=; b=trXg6ySMivBEqrxYjBdy8d2Y7UlizJryArPhLpPHjIO71PKEbORvg3S9rGrHGkPq+C QqFaDxtX3gP7Awtf6tCiLSDKIvAApoRsx/Z5lDCMzZhb0wxfVW9sZYaiKB941ttYFhnZ 991gz3f3U32S+sqGmFvKvC8AbNd7B3/YLgEfTTgBa8y4duxmHugPAOJdKvsD58vj9e5s VtTPsqIk1BAwEdbgzaK+HB+6KvzQHJyE0h5ySKRRSevF37Ckm49hrByFPE44y5JnJxFT 4eHloxEsXLWmG5HMb+4SIuscRWkwtfwwDjjKCRtxtS0AvSJaT5UdA8ht+YIsMJmVRxGG q20w== X-Gm-Message-State: APjAAAW/Yl+wmHnNcuwmpAmpDgUzIIfBNu2/GXACPXijSR85k9ekN0eF zEqCFMTBCNrk608uI9ZSsn2NJ4amgBNlRGP2Am0= X-Received: by 2002:ac8:2af4:: with SMTP id c49mr4598934qta.83.1559239700683; Thu, 30 May 2019 11:08:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Song Liu Date: Thu, 30 May 2019 11:08:08 -0700 Message-ID: Subject: Re: [PATCH 08/22] docs: bpf: get rid of two warnings To: Mauro Carvalho Chehab Cc: Linux Doc Mailing List , Mauro Carvalho Chehab , open list , Jonathan Corbet , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Networking , bpf Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 29, 2019 at 4:25 PM Mauro Carvalho Chehab wrote: > > Documentation/bpf/btf.rst:154: WARNING: Unexpected indentation. > Documentation/bpf/btf.rst:163: WARNING: Unexpected indentation. > > Signed-off-by: Mauro Carvalho Chehab Acked-by: Song Liu > --- > Documentation/bpf/btf.rst | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/bpf/btf.rst b/Documentation/bpf/btf.rst > index 8820360d00da..4ae022d274ab 100644 > --- a/Documentation/bpf/btf.rst > +++ b/Documentation/bpf/btf.rst > @@ -151,6 +151,7 @@ for the type. The maximum value of ``BTF_INT_BITS()`` is 128. > > The ``BTF_INT_OFFSET()`` specifies the starting bit offset to calculate values > for this int. For example, a bitfield struct member has: > + > * btf member bit offset 100 from the start of the structure, > * btf member pointing to an int type, > * the int type has ``BTF_INT_OFFSET() = 2`` and ``BTF_INT_BITS() = 4`` > @@ -160,6 +161,7 @@ from bits ``100 + 2 = 102``. > > Alternatively, the bitfield struct member can be the following to access the > same bits as the above: > + > * btf member bit offset 102, > * btf member pointing to an int type, > * the int type has ``BTF_INT_OFFSET() = 0`` and ``BTF_INT_BITS() = 4`` > -- > 2.21.0 >