Skip to content

Commit a35e547

Browse files
Lee Jonesdavem330
authored andcommitted
net: bonding: bond_3ad: Fix a bunch of kerneldoc parameter issues
Renames and missing descriptions. Fixes the following W=1 kernel build warning(s): drivers/net/bonding/bond_3ad.c:140: warning: Function parameter or member 'port' not described in '__get_first_agg' drivers/net/bonding/bond_3ad.c:140: warning: Excess function parameter 'bond' description in '__get_first_agg' drivers/net/bonding/bond_3ad.c:1655: warning: Function parameter or member 'agg' not described in 'ad_agg_selection_logic' drivers/net/bonding/bond_3ad.c:1655: warning: Excess function parameter 'aggregator' description in 'ad_agg_selection_logic' drivers/net/bonding/bond_3ad.c:1817: warning: Function parameter or member 'port' not described in 'ad_initialize_port' drivers/net/bonding/bond_3ad.c:1817: warning: Excess function parameter 'aggregator' description in 'ad_initialize_port' drivers/net/bonding/bond_3ad.c:1976: warning: Function parameter or member 'timeout' not described in 'bond_3ad_initiate_agg_selection' drivers/net/bonding/bond_3ad.c:2274: warning: Function parameter or member 'work' not described in 'bond_3ad_state_machine_handler' drivers/net/bonding/bond_3ad.c:2274: warning: Excess function parameter 'bond' description in 'bond_3ad_state_machine_handler' drivers/net/bonding/bond_3ad.c:2508: warning: Function parameter or member 'link' not described in 'bond_3ad_handle_link_change' drivers/net/bonding/bond_3ad.c:2508: warning: Excess function parameter 'status' description in 'bond_3ad_handle_link_change' drivers/net/bonding/bond_3ad.c:2566: warning: Function parameter or member 'bond' not described in 'bond_3ad_set_carrier' drivers/net/bonding/bond_3ad.c:2677: warning: Function parameter or member 'bond' not described in 'bond_3ad_update_lacp_rate' drivers/net/bonding/bond_3ad.c:1655: warning: Function parameter or member 'agg' not described in 'ad_agg_selection_logic' drivers/net/bonding/bond_3ad.c:1655: warning: Excess function parameter 'aggregator' description in 'ad_agg_selection_logic' drivers/net/bonding/bond_3ad.c:1817: warning: Function parameter or member 'port' not described in 'ad_initialize_port' drivers/net/bonding/bond_3ad.c:1817: warning: Excess function parameter 'aggregator' description in 'ad_initialize_port' drivers/net/bonding/bond_3ad.c:1976: warning: Function parameter or member 'timeout' not described in 'bond_3ad_initiate_agg_selection' drivers/net/bonding/bond_3ad.c:2274: warning: Function parameter or member 'work' not described in 'bond_3ad_state_machine_handler' drivers/net/bonding/bond_3ad.c:2274: warning: Excess function parameter 'bond' description in 'bond_3ad_state_machine_handler' drivers/net/bonding/bond_3ad.c:2508: warning: Function parameter or member 'link' not described in 'bond_3ad_handle_link_change' drivers/net/bonding/bond_3ad.c:2508: warning: Excess function parameter 'status' description in 'bond_3ad_handle_link_change' drivers/net/bonding/bond_3ad.c:2566: warning: Function parameter or member 'bond' not described in 'bond_3ad_set_carrier' drivers/net/bonding/bond_3ad.c:2677: warning: Function parameter or member 'bond' not described in 'bond_3ad_update_lacp_rate' Cc: Jay Vosburgh <j.vosburgh@gmail.com> Cc: Veaceslav Falico <vfalico@gmail.com> Cc: Andy Gospodarek <andy@greyhouse.net> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 77b981c commit a35e547

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

‎drivers/net/bonding/bond_3ad.c‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static inline struct bonding *__get_bond_by_port(struct port *port)
130130

131131
/**
132132
* __get_first_agg - get the first aggregator in the bond
133-
* @bond: the bond we're looking at
133+
* @port: the port we're looking at
134134
*
135135
* Return the aggregator of the first slave in @bond, or %NULL if it can't be
136136
* found.
@@ -1626,7 +1626,7 @@ static int agg_device_up(const struct aggregator *agg)
16261626

16271627
/**
16281628
* ad_agg_selection_logic - select an aggregation group for a team
1629-
* @aggregator: the aggregator we're looking at
1629+
* @agg: the aggregator we're looking at
16301630
* @update_slave_arr: Does slave array need update?
16311631
*
16321632
* It is assumed that only one aggregator may be selected for a team.
@@ -1810,7 +1810,7 @@ static void ad_initialize_agg(struct aggregator *aggregator)
18101810

18111811
/**
18121812
* ad_initialize_port - initialize a given port's parameters
1813-
* @aggregator: the aggregator we're looking at
1813+
* @port: the port we're looking at
18141814
* @lacp_fast: boolean. whether fast periodic should be used
18151815
*/
18161816
static void ad_initialize_port(struct port *port, int lacp_fast)
@@ -1967,6 +1967,7 @@ static void ad_marker_response_received(struct bond_marker *marker,
19671967
/**
19681968
* bond_3ad_initiate_agg_selection - initate aggregator selection
19691969
* @bond: bonding struct
1970+
* @timeout: timeout value to set
19701971
*
19711972
* Set the aggregation selection timer, to initiate an agg selection in
19721973
* the very near future. Called during first initialization, and during
@@ -2259,7 +2260,7 @@ void bond_3ad_update_ad_actor_settings(struct bonding *bond)
22592260

22602261
/**
22612262
* bond_3ad_state_machine_handler - handle state machines timeout
2262-
* @bond: bonding struct to work on
2263+
* @work: work context to fetch bonding struct to work on from
22632264
*
22642265
* The state machine handling concept in this module is to check every tick
22652266
* which state machine should operate any function. The execution order is
@@ -2500,7 +2501,7 @@ void bond_3ad_adapter_speed_duplex_changed(struct slave *slave)
25002501
/**
25012502
* bond_3ad_handle_link_change - handle a slave's link status change indication
25022503
* @slave: slave struct to work on
2503-
* @status: whether the link is now up or down
2504+
* @link: whether the link is now up or down
25042505
*
25052506
* Handle reselection of aggregator (if needed) for this port.
25062507
*/
@@ -2551,7 +2552,7 @@ void bond_3ad_handle_link_change(struct slave *slave, char link)
25512552

25522553
/**
25532554
* bond_3ad_set_carrier - set link state for bonding master
2554-
* @bond - bonding structure
2555+
* @bond: bonding structure
25552556
*
25562557
* if we have an active aggregator, we're up, if not, we're down.
25572558
* Presumes that we cannot have an active aggregator if there are
@@ -2664,7 +2665,7 @@ int bond_3ad_lacpdu_recv(const struct sk_buff *skb, struct bonding *bond,
26642665

26652666
/**
26662667
* bond_3ad_update_lacp_rate - change the lacp rate
2667-
* @bond - bonding struct
2668+
* @bond: bonding struct
26682669
*
26692670
* When modify lacp_rate parameter via sysfs,
26702671
* update actor_oper_port_state of each port.

0 commit comments

Comments
 (0)