Skip to content

Commit d857a3f

Browse files
mchehabJonathan Corbet
authored andcommitted
docs: bpf: get rid of two warnings
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> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 2e03e3a commit d857a3f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Documentation/bpf/btf.rst‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ for the type. The maximum value of ``BTF_INT_BITS()`` is 128.
151151

152152
The ``BTF_INT_OFFSET()`` specifies the starting bit offset to calculate values
153153
for this int. For example, a bitfield struct member has:
154+
154155
* btf member bit offset 100 from the start of the structure,
155156
* btf member pointing to an int type,
156157
* the int type has ``BTF_INT_OFFSET() = 2`` and ``BTF_INT_BITS() = 4``
@@ -160,6 +161,7 @@ from bits ``100 + 2 = 102``.
160161

161162
Alternatively, the bitfield struct member can be the following to access the
162163
same bits as the above:
164+
163165
* btf member bit offset 102,
164166
* btf member pointing to an int type,
165167
* the int type has ``BTF_INT_OFFSET() = 0`` and ``BTF_INT_BITS() = 4``

0 commit comments

Comments
 (0)