mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ipc/sem: Fix kernel-doc notation of perform_atomic_semop_slow()
@ 2026-09-18 13:06 Manuel Ebner
  0 siblings, 0 replies; only message in thread
From: Manuel Ebner @ 2026-09-18 13:06 UTC (permalink / raw)
  To: Christian Brauner, Lorenzo Stoakes, linux kernel, kernel-janitors
  Cc: Kees Cook, Yi Xie, Manuel Ebner

Adopt strict kernel-doc notation to make doc recognizable, this fixes:

$ ./scripts/kernel-doc -none ipc/sem.c
Warning: ipc/sem.c:629 This comment starts with '/**', but isn't a kernel-doc comment. Refer to Documentation/doc-guide/kernel-doc.rst
 * perform_atomic_semop[_slow] - Attempt to perform semaphore

Signed-off-by: Manuel Ebner <manuelebnerli@mailbox.org>
---
 ipc/sem.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/ipc/sem.c b/ipc/sem.c
index 5ec41de7e85b..642be4170065 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -627,8 +627,8 @@ SYSCALL_DEFINE3(semget, key_t, key, int, nsems, int, semflg)
 }
 
 /**
- * perform_atomic_semop[_slow] - Attempt to perform semaphore
- *                               operations on a given array.
+ * perform_atomic_semop_slow - Attempt to perform semaphore
+ *                             operations on a given array.
  * @sma: semaphore array
  * @q: struct sem_queue that describes the operation
  *
@@ -642,6 +642,8 @@ SYSCALL_DEFINE3(semget, key_t, key, int, nsems, int, semflg)
  * Returns 0 if the operation was possible.
  * Returns 1 if the operation is impossible, the caller must sleep.
  * Returns <0 for error codes.
+ *
+ * This description is also valid for perform_atomic_semop(), the function below
  */
 static int perform_atomic_semop_slow(struct sem_array *sma, struct sem_queue *q)
 {
@@ -716,6 +718,10 @@ static int perform_atomic_semop_slow(struct sem_array *sma, struct sem_queue *q)
 	return result;
 }
 
+/*
+ * The description of this functions is the same as the one for
+ * perform_atomic_semop_slow(), see the kernel-doc above.
+ */
 static int perform_atomic_semop(struct sem_array *sma, struct sem_queue *q)
 {
 	int result, sem_op, nsops;
-- 
2.55.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-18 13:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-18 13:06 [PATCH] ipc/sem: Fix kernel-doc notation of perform_atomic_semop_slow() Manuel Ebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®