summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_main.c
diff options
context:
space:
mode:
authorZhengchao Shao <shaozhengchao@huawei.com>2023-08-10 15:50:03 +0200
committerDavid S. Miller <davem@davemloft.net>2023-08-11 12:10:55 +0200
commite08190ef514fd3c7e45826cd0d427d4133361192 (patch)
tree0fc333c841b54286bb2fd8b8c578b4ea8f3e80d2 /drivers/net/bonding/bond_main.c
parentnet/marvell: fix Wvoid-pointer-to-enum-cast warning (diff)
downloadlinux-e08190ef514fd3c7e45826cd0d427d4133361192.tar.xz
linux-e08190ef514fd3c7e45826cd0d427d4133361192.zip
bonding: add modifier to initialization function and exit function
Some functions are only used in initialization and exit functions, so add the __init/__net_init and __net_exit modifiers to these functions. Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r--drivers/net/bonding/bond_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index d26c69d84c1e..6636638f5d97 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -5981,7 +5981,7 @@ static void bond_uninit(struct net_device *bond_dev)
/*------------------------- Module initialization ---------------------------*/
-static int bond_check_params(struct bond_params *params)
+static int __init bond_check_params(struct bond_params *params)
{
int arp_validate_value, fail_over_mac_value, primary_reselect_value, i;
struct bond_opt_value newval;