Skip to content

Commit

Permalink
ipc/util.c: complete the kernel-doc function descriptions
Browse files Browse the repository at this point in the history
Move the function descriptive comments so that they conform to
kernel-doc format, eliminating the kernel-doc warnings.

util.c:618: warning: missing initial short description on line:
 * ipc_obtain_object_idr
util.c:640: warning: missing initial short description on line:
 * ipc_obtain_object_check

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
rddunlap authored and akpm00 committed Jan 25, 2025
1 parent 9c9ce35 commit cb7c77e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions ipc/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,12 +615,11 @@ void ipc64_perm_to_ipc_perm(struct ipc64_perm *in, struct ipc_perm *out)
}

/**
* ipc_obtain_object_idr
* ipc_obtain_object_idr - Look for an id in the ipc ids idr and
* return associated ipc object.
* @ids: ipc identifier set
* @id: ipc id to look for
*
* Look for an id in the ipc ids idr and return associated ipc object.
*
* Call inside the RCU critical section.
* The ipc object is *not* locked on exit.
*/
Expand All @@ -637,13 +636,11 @@ struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id)
}

/**
* ipc_obtain_object_check
* ipc_obtain_object_check - Similar to ipc_obtain_object_idr() but
* also checks the ipc object sequence number.
* @ids: ipc identifier set
* @id: ipc id to look for
*
* Similar to ipc_obtain_object_idr() but also checks the ipc object
* sequence number.
*
* Call inside the RCU critical section.
* The ipc object is *not* locked on exit.
*/
Expand Down

0 comments on commit cb7c77e

Please sign in to comment.