All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH  v2] binder: Fix missing kernel-doc entries in binder.c
@ 2025-10-03 18:08 Kriish Sharma
  2025-10-03 18:23 ` Carlos Llamas
  0 siblings, 1 reply; 2+ messages in thread
From: Kriish Sharma @ 2025-10-03 18:08 UTC (permalink / raw)
  To: gregkh, arve, tkjos, maco, joelagnelf, brauner, cmllamas, surenb
  Cc: linux-kernel, Kriish Sharma

Fix several kernel-doc warnings in `drivers/android/binder.c` caused by
undocumented struct members and function parameters.

In particular, add missing documentation for the `@thread` parameter in
binder_free_buf_locked().

Signed-off-by: Kriish Sharma <kriish.sharma2006@gmail.com>
---
v2:
  - Align `@thread` with other parameters
  - Move `@thread` after `@proc`
  - Update commit subject to "binder:"

v1: https://lore.kernel.org/all/20250925025517.815391-1-kriish.sharma2006@gmail.com/


 drivers/android/binder.c | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index 312b462e349d..d25b79a3d502 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -2417,10 +2417,10 @@ static int binder_translate_fd(u32 fd, binder_size_t fd_offset,
 
 /**
  * struct binder_ptr_fixup - data to be fixed-up in target buffer
- * @offset	offset in target buffer to fixup
- * @skip_size	bytes to skip in copy (fixup will be written later)
- * @fixup_data	data to write at fixup offset
- * @node	list node
+ * @offset:      offset in target buffer to fixup
+ * @skip_size:   bytes to skip in copy (fixup will be written later)
+ * @fixup_data:  data to write at fixup offset
+ * @node:        list node
  *
  * This is used for the pointer fixup list (pf) which is created and consumed
  * during binder_transaction() and is only accessed locally. No
@@ -2437,10 +2437,10 @@ struct binder_ptr_fixup {
 
 /**
  * struct binder_sg_copy - scatter-gather data to be copied
- * @offset		offset in target buffer
- * @sender_uaddr	user address in source buffer
- * @length		bytes to copy
- * @node		list node
+ * @offset:        offset in target buffer
+ * @sender_uaddr:  user address in source buffer
+ * @length:        bytes to copy
+ * @node:          list node
  *
  * This is used for the sg copy list (sgc) which is created and consumed
  * during binder_transaction() and is only accessed locally. No
@@ -3994,14 +3994,15 @@ binder_freeze_notification_done(struct binder_proc *proc,
 
 /**
  * binder_free_buf() - free the specified buffer
- * @proc:	binder proc that owns buffer
- * @buffer:	buffer to be freed
- * @is_failure:	failed to send transaction
+ * @proc:       binder proc that owns buffer
+ * @thread:     binder thread performing the buffer release
+ * @buffer:     buffer to be freed
+ * @is_failure: failed to send transaction
  *
- * If buffer for an async transaction, enqueue the next async
+ * If the buffer is for an async transaction, enqueue the next async
  * transaction from the node.
  *
- * Cleanup buffer and free it.
+ * Cleanup the buffer and free it.
  */
 static void
 binder_free_buf(struct binder_proc *proc,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH  v2] binder: Fix missing kernel-doc entries in binder.c
  2025-10-03 18:08 [PATCH v2] binder: Fix missing kernel-doc entries in binder.c Kriish Sharma
@ 2025-10-03 18:23 ` Carlos Llamas
  0 siblings, 0 replies; 2+ messages in thread
From: Carlos Llamas @ 2025-10-03 18:23 UTC (permalink / raw)
  To: Kriish Sharma
  Cc: gregkh, arve, tkjos, maco, joelagnelf, brauner, surenb,
	linux-kernel

On Fri, Oct 03, 2025 at 06:08:49PM +0000, Kriish Sharma wrote:
> Fix several kernel-doc warnings in `drivers/android/binder.c` caused by
> undocumented struct members and function parameters.
> 
> In particular, add missing documentation for the `@thread` parameter in
> binder_free_buf_locked().
> 
> Signed-off-by: Kriish Sharma <kriish.sharma2006@gmail.com>
> ---
> v2:
>   - Align `@thread` with other parameters
>   - Move `@thread` after `@proc`
>   - Update commit subject to "binder:"
> 
> v1: https://lore.kernel.org/all/20250925025517.815391-1-kriish.sharma2006@gmail.com/
> 
> 
>  drivers/android/binder.c | 27 ++++++++++++++-------------
>  1 file changed, 14 insertions(+), 13 deletions(-)
> 
> diff --git a/drivers/android/binder.c b/drivers/android/binder.c
> index 312b462e349d..d25b79a3d502 100644
> --- a/drivers/android/binder.c
> +++ b/drivers/android/binder.c
> @@ -2417,10 +2417,10 @@ static int binder_translate_fd(u32 fd, binder_size_t fd_offset,
>  
>  /**
>   * struct binder_ptr_fixup - data to be fixed-up in target buffer
> - * @offset	offset in target buffer to fixup
> - * @skip_size	bytes to skip in copy (fixup will be written later)
> - * @fixup_data	data to write at fixup offset
> - * @node	list node
> + * @offset:      offset in target buffer to fixup
> + * @skip_size:   bytes to skip in copy (fixup will be written later)
> + * @fixup_data:  data to write at fixup offset
> + * @node:        list node
>   *
>   * This is used for the pointer fixup list (pf) which is created and consumed
>   * during binder_transaction() and is only accessed locally. No
> @@ -2437,10 +2437,10 @@ struct binder_ptr_fixup {
>  
>  /**
>   * struct binder_sg_copy - scatter-gather data to be copied
> - * @offset		offset in target buffer
> - * @sender_uaddr	user address in source buffer
> - * @length		bytes to copy
> - * @node		list node
> + * @offset:        offset in target buffer
> + * @sender_uaddr:  user address in source buffer
> + * @length:        bytes to copy
> + * @node:          list node
>   *
>   * This is used for the sg copy list (sgc) which is created and consumed
>   * during binder_transaction() and is only accessed locally. No
> @@ -3994,14 +3994,15 @@ binder_freeze_notification_done(struct binder_proc *proc,
>  
>  /**
>   * binder_free_buf() - free the specified buffer
> - * @proc:	binder proc that owns buffer
> - * @buffer:	buffer to be freed
> - * @is_failure:	failed to send transaction
> + * @proc:       binder proc that owns buffer
> + * @thread:     binder thread performing the buffer release
> + * @buffer:     buffer to be freed
> + * @is_failure: failed to send transaction
>   *
> - * If buffer for an async transaction, enqueue the next async
> + * If the buffer is for an async transaction, enqueue the next async
>   * transaction from the node.
>   *
> - * Cleanup buffer and free it.
> + * Cleanup the buffer and free it.
>   */
>  static void
>  binder_free_buf(struct binder_proc *proc,
> -- 
> 2.34.1
> 

Thanks,

Acked-by: Carlos Llamas <cmllamas@google.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-10-03 18:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-03 18:08 [PATCH v2] binder: Fix missing kernel-doc entries in binder.c Kriish Sharma
2025-10-03 18:23 ` Carlos Llamas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.