Skip to content

Commit d814120

Browse files
lunndavem330
authored andcommitted
net: tipc: kerneldoc fixes
Simple fixes which require no deep knowledge of the code. Cc: Jon Maloy <jmaloy@redhat.com> Cc: Ying Xue <ying.xue@windriver.com> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Jon Maloy <jmaloy@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c8af73f commit d814120

7 files changed

Lines changed: 13 additions & 16 deletions

File tree

‎net/tipc/bearer.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ void tipc_bearer_bc_xmit(struct net *net, u32 bearer_id,
595595

596596
/**
597597
* tipc_l2_rcv_msg - handle incoming TIPC message from an interface
598-
* @buf: the received packet
598+
* @skb: the received message
599599
* @dev: the net device that the packet was received on
600600
* @pt: the packet_type structure which was used to register this handler
601601
* @orig_dev: the original receive net device in case the device is a bond

‎net/tipc/discover.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct tipc_discoverer {
7474
/**
7575
* tipc_disc_init_msg - initialize a link setup message
7676
* @net: the applicable net namespace
77-
* @type: message type (request or response)
77+
* @mtyp: message type (request or response)
7878
* @b: ptr to bearer issuing message
7979
*/
8080
static void tipc_disc_init_msg(struct net *net, struct sk_buff *skb,
@@ -339,7 +339,7 @@ static void tipc_disc_timeout(struct timer_list *t)
339339
* @net: the applicable net namespace
340340
* @b: ptr to bearer issuing requests
341341
* @dest: destination address for request messages
342-
* @dest_domain: network domain to which links can be established
342+
* @skb: pointer to created frame
343343
*
344344
* Returns 0 if successful, otherwise -errno.
345345
*/
@@ -393,7 +393,6 @@ void tipc_disc_delete(struct tipc_discoverer *d)
393393
* tipc_disc_reset - reset object to send periodic link setup requests
394394
* @net: the applicable net namespace
395395
* @b: ptr to bearer issuing requests
396-
* @dest_domain: network domain to which links can be established
397396
*/
398397
void tipc_disc_reset(struct net *net, struct tipc_bearer *b)
399398
{

‎net/tipc/link.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ u32 tipc_link_state(struct tipc_link *l)
445445

446446
/**
447447
* tipc_link_create - create a new link
448-
* @n: pointer to associated node
448+
* @net: pointer to associated network namespace
449449
* @if_name: associated interface name
450450
* @bearer_id: id (index) of associated bearer
451451
* @tolerance: link tolerance to be used by link
@@ -530,7 +530,7 @@ bool tipc_link_create(struct net *net, char *if_name, int bearer_id,
530530

531531
/**
532532
* tipc_link_bc_create - create new link to be used for broadcast
533-
* @n: pointer to associated node
533+
* @net: pointer to associated network namespace
534534
* @mtu: mtu to be used initially if no peers
535535
* @window: send window to be used
536536
* @inputq: queue to put messages ready for delivery
@@ -989,7 +989,7 @@ void tipc_link_reset(struct tipc_link *l)
989989

990990
/**
991991
* tipc_link_xmit(): enqueue buffer list according to queue situation
992-
* @link: link to use
992+
* @l: link to use
993993
* @list: chain of buffers containing message
994994
* @xmitq: returned list of packets to be sent by caller
995995
*

‎net/tipc/msg.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ int tipc_buf_append(struct sk_buff **headbuf, struct sk_buff **buf)
202202

203203
/**
204204
* tipc_msg_append(): Append data to tail of an existing buffer queue
205-
* @hdr: header to be used
205+
* @_hdr: header to be used
206206
* @m: the data to be appended
207207
* @mss: max allowable size of buffer
208208
* @dlen: size of data to be appended

‎net/tipc/node.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ static void node_lost_contact(struct tipc_node *n,
15151515
* tipc_node_get_linkname - get the name of a link
15161516
*
15171517
* @bearer_id: id of the bearer
1518-
* @node: peer node address
1518+
* @addr: peer node address
15191519
* @linkname: link name output buffer
15201520
*
15211521
* Returns 0 on success
@@ -2022,7 +2022,7 @@ static bool tipc_node_check_state(struct tipc_node *n, struct sk_buff *skb,
20222022
* tipc_rcv - process TIPC packets/messages arriving from off-node
20232023
* @net: the applicable net namespace
20242024
* @skb: TIPC packet
2025-
* @bearer: pointer to bearer message arrived on
2025+
* @b: pointer to bearer message arrived on
20262026
*
20272027
* Invoked with no locks held. Bearer pointer must point to a valid bearer
20282028
* structure (i.e. cannot be NULL), but bearer can be inactive.

‎net/tipc/socket.c‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,6 @@ static int tipc_bind(struct socket *sock, struct sockaddr *uaddr,
711711
* tipc_getname - get port ID of socket or peer socket
712712
* @sock: socket structure
713713
* @uaddr: area for returned socket address
714-
* @uaddr_len: area for returned length of socket address
715714
* @peer: 0 = own ID, 1 = current peer ID, 2 = current/former peer ID
716715
*
717716
* Returns 0 on success, errno otherwise
@@ -1053,7 +1052,7 @@ static int tipc_send_group_anycast(struct socket *sock, struct msghdr *m,
10531052

10541053
/**
10551054
* tipc_send_group_bcast - send message to all members in communication group
1056-
* @sk: socket structure
1055+
* @sock: socket structure
10571056
* @m: message to send
10581057
* @dlen: total length of message data
10591058
* @timeout: timeout to wait for wakeup
@@ -1673,7 +1672,7 @@ static void tipc_sk_finish_conn(struct tipc_sock *tsk, u32 peer_port,
16731672
/**
16741673
* tipc_sk_set_orig_addr - capture sender's address for received message
16751674
* @m: descriptor for message info
1676-
* @hdr: received message header
1675+
* @skb: received message
16771676
*
16781677
* Note: Address is not captured if not requested by receiver.
16791678
*/
@@ -2095,7 +2094,6 @@ static void tipc_write_space(struct sock *sk)
20952094
/**
20962095
* tipc_data_ready - wake up threads to indicate messages have been received
20972096
* @sk: socket
2098-
* @len: the length of messages
20992097
*/
21002098
static void tipc_data_ready(struct sock *sk)
21012099
{
@@ -2677,7 +2675,7 @@ static int tipc_wait_for_accept(struct socket *sock, long timeo)
26772675
/**
26782676
* tipc_accept - wait for connection request
26792677
* @sock: listening socket
2680-
* @newsock: new socket that is to be connected
2678+
* @new_sock: new socket that is to be connected
26812679
* @flags: file-related flags associated with socket
26822680
*
26832681
* Returns 0 on success, errno otherwise

‎net/tipc/udp_media.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ int tipc_udp_nl_add_bearer_data(struct tipc_nl_msg *msg, struct tipc_bearer *b)
565565

566566
/**
567567
* tipc_parse_udp_addr - build udp media address from netlink data
568-
* @nlattr: netlink attribute containing sockaddr storage aligned address
568+
* @nla: netlink attribute containing sockaddr storage aligned address
569569
* @addr: tipc media address to fill with address, port and protocol type
570570
* @scope_id: IPv6 scope id pointer, not NULL indicates it's required
571571
*/

0 commit comments

Comments
 (0)