diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2023-08-10 21:50:03 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-11 11:10:55 +0100 |
commit | e08190ef514fd3c7e45826cd0d427d4133361192 (patch) | |
tree | 0fc333c841b54286bb2fd8b8c578b4ea8f3e80d2 /drivers/net/bonding/bond_debugfs.c | |
parent | e5cd429e79286a17b345f9f9153d3970a46359f2 (diff) |
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_debugfs.c')
-rw-r--r-- | drivers/net/bonding/bond_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_debugfs.c b/drivers/net/bonding/bond_debugfs.c index 594094526648..94c2f35e3bfc 100644 --- a/drivers/net/bonding/bond_debugfs.c +++ b/drivers/net/bonding/bond_debugfs.c @@ -84,7 +84,7 @@ void bond_debug_reregister(struct bonding *bond) } } -void bond_create_debugfs(void) +void __init bond_create_debugfs(void) { bonding_debug_root = debugfs_create_dir("bonding", NULL); @@ -113,7 +113,7 @@ void bond_debug_reregister(struct bonding *bond) { } -void bond_create_debugfs(void) +void __init bond_create_debugfs(void) { } |