Skip to contentSkip to conversation

docs/vfs: Fix htmldocs build warning and error

PATCH New Gopi Krishna Menon 1 participant 1 message Dec 31, 2025 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/vfs: Fix htmldocs build warning and error

Running "make htmldocs" generates the following build warning and error in fs/namei.c:

Documentation/filesystems/api-summary:56: ./fs/namei.c:4952: WARNING: Inline emphasis start-string without end-string. [docutils] Documentation/filesystems/api-summary:56: ./fs/namei.c:4942: ERROR: Unknown target name: "o". [docutils]

The error happens due to 'O_' being treated as a named reference by docutils and the warning happens due to '*' in 'struct file *' being treated as beginning of emphasis text.

Replace 'O_' with 'O_*' to avoid being treated as a named reference and reword the return comment to fix the build warning and error.

---
 fs/namei.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/namei.c +2 -2
index aefb21bc0944..852fd007187f 100644
@@ -4939,7 +4939,7 @@ EXPORT_SYMBOL(start_creating_user_path);
 /**
  * dentry_create - Create and open a file
  * @path: path to create
- * @flags: O_ flags
+ * @flags: O_* flags
  * @mode: mode bits for new file
  * @cred: credentials to use
  *
@@ -4950,7 +4950,7 @@ EXPORT_SYMBOL(start_creating_user_path);
  * the new file is to be created. The parent directory and the
  * negative dentry must reside on the same filesystem instance.
  *
- * On success, returns a "struct file *". Otherwise a ERR_PTR
+ * On success, returns a pointer to struct file. Otherwise a ERR_PTR
  * is returned.
  */
 struct file *dentry_create(struct path *path, int flags, umode_t mode,
Signature · 1 line
2.51.0