Skip to contentSkip to conversation

Documentation: sock.h - fix warnings

PATCH Superseded Lothar Rubusch 2 participants 2 messages Apr 6, 2020 – Apr 7, 2020

Subsystems (3)

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: sock.h - fix warnings

Fix some sphinx warnings at 'make htmldocs'.

---
 include/net/sock.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/net/sock.h +2 -2
index 6d84784d33fa..2924bcbbd402 100644
@@ -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
#1 lore raw
Quoted 13 lines · Lothar Rubusch

Fix some sphinx warnings at 'make htmldocs'.

---
 include/net/sock.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/net/sock.h +0 -0
index 6d84784d33fa..2924bcbbd402 100644

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