Documentation: sock.h - fix warnings
Subsystems (3)
PATCH 1/1 Documentation: sock.h - fix warnings
Fix some sphinx warnings at 'make htmldocs'.
Signed-off-by Lothar Rubusch <[email protected]>
--- include/net/sock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/net/sock.h +2 -2
@@ -2554,8 +2554,8 @@ sk_is_refcounted(struct sock *sk)/** * skb_steal_sock -* @skb to steal the socket from -* @refcounted is set to true if the socket is reference-counted +* @skb: to steal the socket from +* @refcounted: is set to true if the socket is reference-counted */ static inline struct sock *skb_steal_sock (struct sk_buff *skb,bool *refcounted)
Signature · 1 line
2.20.1
Quoted 13 lines · Lothar Rubusch
Fix some sphinx warnings at 'make htmldocs'.
Signed-off-by Lothar Rubusch <[email protected]>--- include/net/sock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)include/net/sock.h +0
-0
include/net/sock.h sk_is_refcounted(struct sock *sk) · line 2561
Quoted 10 lines
include/net/sock.h +2
-2@@ -2554,8 +2554,8 @@ sk_is_refcounted(struct sock *sk)/** * skb_steal_sock -* @skb to steal the socket from -* @refcounted is set to true if the socket is reference-counted +* @skb: to steal the socket from +* @refcounted: is set to true if the socket is reference-counted */ static inline struct sock *skb_steal_sock (struct sk_buff *skb,bool *refcounted)
Hi,
How about something like this instead:
/**
- * skb_steal_sock
- * @skb to steal the socket from
- * @refcounted is set to true if the socket is reference-counted
+ * skb_steal_sock - steal a socket from an sk_buff
+ * @skb: sk_buff to steal the socket from
+ * @refcounted: is set to true if the socket is reference-counted */
and preferably (IMO) the subject should be more like this:
[PATCH] net: sock.h: fix skb_steal_sock() kernel-doc notation
thanks.
Signature · 1 line
~Randy