From: Sven Eckelmann The kernel-doc of the functions which return an object with an increased refcounter was unified to "The returned object has an increased refcounter." by commit 07b98ba7d5de ("batman-adv: document refcount of returned objects"). But the functions which already documented it as "The object is returned with refcounter increased by 1." were left untouched. Convert them to the same wording and place it after the description of the return value like it is done for the other functions. Reported-by: Sashiko Closes: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261123171827.3294525-2-sw%40simonwunderlich.de?part=1 Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/originator.c | 20 +++++++------------- net/batman-adv/routing.c | 5 ++--- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/net/batman-adv/originator.c b/net/batman-adv/originator.c index 25a3f78aca1a..917bdbdd276a 100644 --- a/net/batman-adv/originator.c +++ b/net/batman-adv/originator.c @@ -165,8 +165,7 @@ static bool batadv_vlan_id_valid(unsigned short vid) * Return: NULL in case of failure or the vlan object identified by vid and * belonging to orig_node otherwise. The object is created and added to the list * if it does not exist. - * - * The object is returned with refcounter increased by 1. + * The returned object has an increased refcounter. */ struct batadv_orig_node_vlan * batadv_orig_node_vlan_new(struct batadv_orig_node *orig_node, @@ -313,8 +312,7 @@ void batadv_neigh_node_release(struct kref *ref) * the OGM should be sent to * * Return: the neighbor which should be the router for this orig_node/iface. - * - * The object is returned with refcounter increased by 1. + * The returned object has an increased refcounter. */ struct batadv_neigh_node * batadv_orig_router_get(struct batadv_orig_node *orig_node, @@ -373,8 +371,7 @@ batadv_orig_to_router(struct batadv_priv *bat_priv, const u8 *orig_addr, * @if_outgoing: the interface for which the ifinfo should be acquired * * Return: the requested orig_ifinfo or NULL if not found. - * - * The object is returned with refcounter increased by 1. + * The returned object has an increased refcounter. */ struct batadv_orig_ifinfo * batadv_orig_ifinfo_get(struct batadv_orig_node *orig_node, @@ -408,8 +405,7 @@ batadv_orig_ifinfo_get(struct batadv_orig_node *orig_node, * Return: NULL in case of failure or the orig_ifinfo object for the if_outgoing * interface otherwise. The object is created and added to the list * if it does not exist. - * - * The object is returned with refcounter increased by 1. + * The returned object has an increased refcounter. */ struct batadv_orig_ifinfo * batadv_orig_ifinfo_new(struct batadv_orig_node *orig_node, @@ -451,9 +447,8 @@ batadv_orig_ifinfo_new(struct batadv_orig_node *orig_node, * @neigh: the neigh node to be queried * @if_outgoing: the interface for which the ifinfo should be acquired * - * The object is returned with refcounter increased by 1. - * - * Return: the requested neigh_ifinfo or NULL if not found + * Return: the requested neigh_ifinfo or NULL if not found. + * The returned object has an increased refcounter. */ struct batadv_neigh_ifinfo * batadv_neigh_ifinfo_get(struct batadv_neigh_node *neigh, @@ -487,8 +482,7 @@ batadv_neigh_ifinfo_get(struct batadv_neigh_node *neigh, * Return: NULL in case of failure or the neigh_ifinfo object for the * if_outgoing interface otherwise. The object is created and added to the list * if it does not exist. - * - * The object is returned with refcounter increased by 1. + * The returned object has an increased refcounter. */ struct batadv_neigh_ifinfo * batadv_neigh_ifinfo_new(struct batadv_neigh_node *neigh, diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c index 821fb5addbfe..73d9217afd1f 100644 --- a/net/batman-adv/routing.c +++ b/net/batman-adv/routing.c @@ -538,9 +538,8 @@ static int batadv_check_unicast_packet(struct batadv_priv *bat_priv, * batadv_last_bonding_get() - Get last_bonding_candidate of orig_node * @orig_node: originator node whose last bonding candidate should be retrieved * - * Return: last bonding candidate of router or NULL if not found - * - * The object is returned with refcounter increased by 1. + * Return: last bonding candidate of router or NULL if not found. + * The returned object has an increased refcounter. */ static struct batadv_orig_ifinfo * __must_check batadv_last_bonding_get(struct batadv_orig_node *orig_node) -- 2.47.3