summaryrefslogtreecommitdiff
path: root/doc/sphinx/kerneldoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sphinx/kerneldoc.py')
-rw-r--r--doc/sphinx/kerneldoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/sphinx/kerneldoc.py b/doc/sphinx/kerneldoc.py
index 8189c33b9dd..01a55429c57 100644
--- a/doc/sphinx/kerneldoc.py
+++ b/doc/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