mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sukrut Heroorkar <hsukrut3@gmail.com>
To: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,
	David Hildenbrand <david@kernel.org>,
	Arnd Bergmann <arnd@arndb.de>,
	Christian Brauner <brauner@kernel.org>,
	Simon Schuster <schuster.simon@siemens-energy.com>,
	Sukrut Heroorkar <hsukrut3@gmail.com>,
	linux-kernel@vger.kernel.org (open list)
Cc: shuah@kernel.org, david.hunter.linux@gmail.com
Subject: [PATCH] ipc/sem: fix kernel-doc for perform_atomic_semop_slow
Date: Mon, 17 Nov 2025 16:37:17 +0530	[thread overview]
Message-ID: <20251117110719.345228-1-hsukrut3@gmail.com> (raw)

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@gmail.com>
---
 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


                 reply	other threads:[~2025-11-17 11:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251117110719.345228-1-hsukrut3@gmail.com \
    --to=hsukrut3@gmail.com \
    --cc=arnd@arndb.de \
    --cc=brauner@kernel.org \
    --cc=david.hunter.linux@gmail.com \
    --cc=david@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lorenzo.stoakes@oracle.com \
    --cc=schuster.simon@siemens-energy.com \
    --cc=shuah@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®