Skip to content

Commit 82bf829

Browse files
neuschaeferJonathan Corbet
authored andcommitted
Documentation: sphinx: Don't parse socket() as identifier reference
With the introduction of Documentation/sphinx/automarkup.py, socket() is parsed as a reference to the in-kernel definition of socket. Sphinx then decides that struct socket is a good match, which is usually not intended, when the syscall is meant instead. This was observed in Documentation/networking/af_xdp.rst. Prevent socket() from being misinterpreted by adding it to the Skipfuncs list in automarkup.py. Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 11fec00 commit 82bf829

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Documentation/sphinx/automarkup.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
# just don't even try with these names.
2727
#
2828
Skipfuncs = [ 'open', 'close', 'read', 'write', 'fcntl', 'mmap',
29-
'select', 'poll', 'fork', 'execve', 'clone', 'ioctl']
29+
'select', 'poll', 'fork', 'execve', 'clone', 'ioctl',
30+
'socket' ]
3031

3132
#
3233
# Find all occurrences of function() and try to replace them with

0 commit comments

Comments
 (0)