[PATCH] ipc/sem: fix kernel-doc for perform_atomic_semop_slow
From: Sukrut Heroorkar
Date: Mon Nov 17 2025 - 06:18:31 EST
Building with W=1 warns:
Warning: ipc/sem.c:629 This comment starts with '/**', but isn't a kernel-doc
comment. Refer Documentation/doc-guide/kernel-doc.rst
* perform_atomic_semop[_slow] - Attempt to perform semaphore
The function name was changed as part of commit 4ce33ec2e42d ("ipc/sem:
optimize perform_atomic_semop()"), but the kernel-doc uses "perform_atomic_semop[_slow]".
Document the function name explicitly to squash warning.
Signed-off-by: Sukrut Heroorkar <hsukrut3@xxxxxxxxx>
---
ipc/sem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ipc/sem.c b/ipc/sem.c
index 0f06e4bd4673..863ce50d49b2 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -627,7 +627,7 @@ SYSCALL_DEFINE3(semget, key_t, key, int, nsems, int, semflg)
}
/**
- * perform_atomic_semop[_slow] - Attempt to perform semaphore
+ * perform_atomic_semop_slow - Attempt to perform semaphore
* operations on a given array.
* @sma: semaphore array
* @q: struct sem_queue that describes the operation
--
2.43.0