lkml.org 
[lkml]   [2019]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 05/22] docs: bpf: get rid of two warnings
    Date
    Documentation/bpf/btf.rst:154: WARNING: Unexpected indentation.
    Documentation/bpf/btf.rst:163: WARNING: Unexpected indentation.

    Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
    Acked-by: Song Liu <songliubraving@fb.com>
    ---
    Documentation/bpf/btf.rst | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/Documentation/bpf/btf.rst b/Documentation/bpf/btf.rst
    index 35d83e24dbdb..4d565d202ce3 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
    \
     
     \ /
      Last update: 2019-06-04 16:19    [W:4.152 / U:0.092 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site