aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/sphinx/kerneldoc.py
diff options
context:
space:
mode:
authorOliver Faso <[email protected]>2023-09-10 04:08:06 +0000
committerJonathan Corbet <[email protected]>2023-10-10 19:35:54 +0000
commitf00c19c67a49f683e6a3aa19f546c37cf9344508 (patch)
tree26af4eb369d0e327c66b0eac6a2daabda6f0a44f /Documentation/sphinx/kerneldoc.py
parentpwm: Adapt sysfs API documentation to reality (diff)
downloadkernel-f00c19c67a49f683e6a3aa19f546c37cf9344508.tar.gz
kernel-f00c19c67a49f683e6a3aa19f546c37cf9344508.zip
docs/sphinx: Explicitly convert Sphinx paths to str
Sphinx 7.2+ is switching to using pathlib.Path instead of str to represent paths. This fixes the current deprecation warnings and eventual breakage. This conversion will be a no-op when using older Sphinx versions. Signed-off-by: Oliver Faso <[email protected]> Tested-by: Akira Yokosawa <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'Documentation/sphinx/kerneldoc.py')
-rw-r--r--Documentation/sphinx/kerneldoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/sphinx/kerneldoc.py b/Documentation/sphinx/kerneldoc.py
index 8dc134904b90..7acf09963daa 100644
--- a/Documentation/sphinx/kerneldoc.py
+++ b/Documentation/sphinx/kerneldoc.py
@@ -138,7 +138,7 @@ class KernelDocDirective(Directive):
lineoffset = int(match.group(1)) - 1
# we must eat our comments since the upset the markup
else:
- doc = env.srcdir + "/" + env.docname + ":" + str(self.lineno)
+ doc = str(env.srcdir) + "/" + env.docname + ":" + str(self.lineno)
result.append(line, doc + ": " + filename, lineoffset)
lineoffset += 1