OSDN Git Service

net: bonding: Correct function name bond_change_active_slave() in comment
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 29 Mar 2021 12:42:57 +0000 (20:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 20:42:44 +0000 (13:42 -0700)
Fix the following make W=1 kernel build warning:

 drivers/net/bonding/bond_main.c:982: warning: expecting prototype for change_active_interface(). Prototype was for bond_change_active_slave() instead

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c

index 74cbbb2..d5ca38a 100644 (file)
@@ -964,7 +964,7 @@ static bool bond_should_notify_peers(struct bonding *bond)
 }
 
 /**
- * change_active_interface - change the active slave into the specified one
+ * bond_change_active_slave - change the active slave into the specified one
  * @bond: our bonding struct
  * @new_active: the new slave to make the active one
  *