pidfd: prevent a kernel-doc warning

Message ID 20230912060822.2500-1-rdunlap@infradead.org
State New
Headers
Series pidfd: prevent a kernel-doc warning |

Commit Message

Randy Dunlap Sept. 12, 2023, 6:08 a.m. UTC
  Change the comment to match the function name that the SYSCALL_DEFINE()
macros generate to prevent a kernel-doc warning.

kernel/pid.c:628: warning: expecting prototype for pidfd_open(). Prototype was for sys_pidfd_open() instead

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
---
 kernel/pid.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff -- a/kernel/pid.c b/kernel/pid.c
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@ -609,7 +609,7 @@  int pidfd_create(struct pid *pid, unsign
 }
 
 /**
- * pidfd_open() - Open new pid file descriptor.
+ * sys_pidfd_open() - Open new pid file descriptor.
  *
  * @pid:   pid for which to retrieve a pidfd
  * @flags: flags to pass