Skip to contentSkip to conversation

ipc/sem: Fix kernel-doc notation of perform_atomic_semop_slow()

PATCH New Manuel Ebner 1 participant 1 message Sep 18 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipc/sem: Fix kernel-doc notation of perform_atomic_semop_slow()

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
---
 ipc/sem.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
ipc/sem.c +8 -2
index 5ec41de7e85b..642be4170065 100644
@@ -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;
Signature · 1 line
2.55.0