public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v3 0/2] docs: fix sphinx warnings for cpu+dev maps
@ 2022-11-23  9:23 mtahhan
  2022-11-23  9:23 ` [PATCH bpf-next v3 1/2] docs: fix sphinx warnings for cpumap mtahhan
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: mtahhan @ 2022-11-23  9:23 UTC (permalink / raw)
  To: bpf, linux-doc; +Cc: jbrouer, thoiland, donhunte, akiyks, Maryam Tahhan

From: Maryam Tahhan <mtahhan@redhat.com>

Sphinx version >=3.1 warns about duplicate function declarations in the
CPUMAP and DEVMAP documentation. This is because the function name is the
same for Kernel and User space BPF progs but the parameters and return types
they take is what differs. This patch moves from using the ``c:function::``
directive to using the ``code-block:: c`` directive. The patches also fix
the indentation for the text associated with the "new" code block delcarations.
The missing support of c:namespace-push:: and c:namespace-pop:: directives by
helper scripts for kernel documentation prevents using the ``c:function::``
directive with proper namespacing.
---
v3:
- Update Sphinx version to 3.1.
- Add note about namespacing.

v2:
- Fix references to user space.
---
Maryam Tahhan (2):
  docs: fix sphinx warnings for cpumap
  docs: fix sphinx warnings for devmap

 Documentation/bpf/map_cpumap.rst | 56 +++++++++++++++-----------
 Documentation/bpf/map_devmap.rst | 68 ++++++++++++++++++++------------
 2 files changed, 76 insertions(+), 48 deletions(-)

--
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-23 21:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-23  9:23 [PATCH bpf-next v3 0/2] docs: fix sphinx warnings for cpu+dev maps mtahhan
2022-11-23  9:23 ` [PATCH bpf-next v3 1/2] docs: fix sphinx warnings for cpumap mtahhan
2022-11-23  9:23 ` [PATCH bpf-next v3 2/2] docs: fix sphinx warnings for devmap mtahhan
2022-11-23 21:40 ` [PATCH bpf-next v3 0/2] docs: fix sphinx warnings for cpu+dev maps patchwork-bot+netdevbpf
2022-11-23 21:50 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox