]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
proc: Fix W=1 build kernel-doc warning
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 18 Oct 2024 10:27:03 +0000 (12:27 +0200)
committerChristian Brauner <brauner@kernel.org>
Fri, 18 Oct 2024 11:02:47 +0000 (13:02 +0200)
Building the kernel with W=1 generates the following warning:

  fs/proc/fd.c:81: warning: This comment starts with '/**',
                   but isn't a kernel-doc comment.

Use a normal comment for the helper function proc_fdinfo_permission().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20241018102705.92237-2-thorsten.blum@linux.dev
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/proc/fd.c

index 1f54a54bfb91304914d90d1730588e4876aa4236..5e391cbca7a3be0cb02f55e96d6728ad98e3ea16 100644 (file)
@@ -77,7 +77,7 @@ static int seq_fdinfo_open(struct inode *inode, struct file *file)
        return single_open(file, seq_show, inode);
 }
 
-/**
+/*
  * Shared /proc/pid/fdinfo and /proc/pid/fdinfo/fd permission helper to ensure
  * that the current task has PTRACE_MODE_READ in addition to the normal
  * POSIX-like checks.