android: fix W=1 kernel-doc warnings
PATCH 1/1 android: fix W=1 kernel-doc warnings
Clean up kernel-doc notation, use correct function and parameter names.
drivers/android/binderfs.c:236: warning: expecting prototype for binderfs_ctl_ioctl(). Prototype was for binder_ctl_ioctl() instead drivers/android/binder.c:386: warning: expecting prototype for binder_node_unlock(). Prototype was for binder_node_inner_unlock() instead drivers/android/binder.c:1206: warning: expecting prototype for binder_dec_ref(). Prototype was for binder_dec_ref_olocked() instead drivers/andrond/binder.c:284: warning: Excess function parameter 'proc' description in 'binder_proc_unlock' drivers/andrond/binder.c:387: warning: expecting prototype for binder_node_unlock(). Prototype was for binder_node_inner_unlock() instead
--- drivers/android/binder.c | 16 ++++++++-------- drivers/android/binderfs.c | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-)
drivers/android/binder.c +8 -8
@@ -277,7 +277,7 @@ _binder_proc_lock(struct binder_proc *pr/** * binder_proc_unlock() - Release spinlock for given binder_proc -* @proc: struct binder_proc to acquire +* @_proc: struct binder_proc to acquire * * Release lock acquired via binder_proc_lock() */
@@ -378,7 +378,7 @@ _binder_node_inner_lock(struct binder_no }/** -* binder_node_unlock() - Release node and inner locks +* binder_node_inner_unlock() - Release node and inner locks * @node: struct binder_node to acquire * * Release lock acquired via binder_node_lock()
@@ -1194,13 +1194,13 @@ static int binder_inc_ref_olocked(struct }/** -* binder_dec_ref() - dec the ref for given handle +* binder_dec_ref_olocked() - dec the ref for given handle * @ref: ref to be decremented * @strong: if true, strong decrement, else weak * * Decrement the ref. * -* Return: true if ref is cleaned up and ready to be freed +* Return: %true if ref is cleaned up and ready to be freed. */ static bool binder_dec_ref_olocked (struct binder_ref *ref,int strong) {
@@ -2813,8 +2813,8 @@ static int binder_proc_transaction(struc/** * binder_get_node_refs_for_txn() - Get required refs on node for txn * @node: struct binder_node for which to get refs -* @proc: returns @node->proc if valid -* @error: if no @proc then returns BR_DEAD_REPLY +* @procp: returns @node->proc if valid +* @error: if no @procp then returns BR_DEAD_REPLY * * User-space normally keeps the node alive when creating a transaction * since it has a reference to the target. The local strong ref keeps it
@@ -2828,8 +2828,8 @@ static int binder_proc_transaction(struc* constructing the transaction, so we take that here as well. * * Return: The target_node with refs taken or NULL if no @node->proc is NULL. -* Also sets @proc if valid. If the @node->proc is NULL indicating that the -* target proc has died, @error is set to BR_DEAD_REPLY +* Also sets @procp if valid. If the @node->proc is NULL indicating that the +* target proc has died, @error is set to BR_DEAD_REPLY. */ static struct binder_node *binder_get_node_refs_for_txn( struct binder_node *node,
drivers/android/binderfs.c +2 -2
@@ -222,14 +222,14 @@ err: }/** -* binderfs_ctl_ioctl - handle binder device node allocation requests +* binder_ctl_ioctl - handle binder device node allocation requests * * The request handler for the binder-control device. All requests operate on * the binderfs mount the binder-control device resides in: * - BINDER_CTL_ADD * Allocate a new binder device. * -* Return: 0 on success, negative errno on failure +* Return: %0 on success, negative errno on failure. */ static long binder_ctl_ioctl (struct file *file,unsigned int cmd,unsigned long arg)
Quoted 27 lines · Randy Dunlap
Clean up kernel-doc notation, use correct function and parameter names.
drivers/android/binderfs.c:236: warning: expecting prototype forbinderfs_ctl_ioctl(). Prototype was forbinder_ctl_ioctl()insteaddrivers/android/binder.c:386: warning: expecting prototype forbinder_node_unlock(). Prototype was forbinder_node_inner_unlock()insteaddrivers/android/binder.c:1206: warning: expecting prototype forbinder_dec_ref(). Prototype was forbinder_dec_ref_olocked()insteaddrivers/andrond/binder.c:284: warning: Excess function parameter 'proc' description in 'binder_proc_unlock'drivers/andrond/binder.c:387: warning: expecting prototype forbinder_node_unlock(). Prototype was forbinder_node_inner_unlock()insteadSigned-off-by Randy Dunlap <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Cc Arve Hjønnevåg <[email protected]>Cc Todd Kjos <[email protected]>Cc Martijn Coenen <[email protected]>Cc Joel Fernandes <[email protected]>Cc Christian Brauner <[email protected]>Cc Carlos Llamas <[email protected]>Cc Suren Baghdasaryan <[email protected]>--- drivers/android/binder.c | 16 ++++++++-------- drivers/android/binderfs.c | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-)diff --
a/drivers/android/binder.cb/drivers/android/binder.c
drivers/android/binder.c _binder_proc_lock(struct binder_proc *pr · line 280
Quoted 5 lines
drivers/android/binder.c +1
-1@@ -277,7 +277,7 @@ _binder_proc_lock(struct binder_proc *pr/** * binder_proc_unlock() - Release spinlock for given binder_proc -* @proc: struct binder_proc to acquire +* @_proc: struct binder_proc to acquire
I think we could rename the parameter to "proc" instead. This aligns with the other macros defined here. Aside from this minor nit:
Thanks Randy.