Skip to content
Commit 3f330db3 authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

net: reformat kdoc return statements



kernel-doc -Wall warns about missing Return: statement for non-void
functions. We have a number of kdocs in our headers which are missing
the colon, IOW they use
 * Return some value
or
 * Returns some value

Having the colon makes some sense, it should help kdoc parser avoid
false positives. So add them. This is mostly done with a sed script,
and removing the unnecessary cases (mostly the comments which aren't
kdoc).

Acked-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
Acked-by: default avatarSergey Ryazanov <ryazanov.s.a@gmail.com>
Reviewed-by: default avatarEdward Cree <ecree.xilinx@gmail.com>
Acked-by: default avatarAlexandra Winter <wintera@linux.ibm.com>
Acked-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Link: https://patch.msgid.link/20241205165914.1071102-1-kuba@kernel.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ca785888
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment