Fix static scanning issues.
Zhengchao Shao (2): tcp: fix static scanning issue with sysctl_local_port_allocation bond: fix static scanning issue with bond_broadcast_arp_or_nd_table_header
drivers/net/bonding/bond_sysctl.c | 2 +- net/ipv4/inet_hashtables.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/4386 邮件列表地址:https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/X...
FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://gitee.com/openeuler/kernel/pulls/4386 Mailing list address: https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/X...
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I90CON CVE: NA
--------------------------------
Fix static scanning issue with sysctl_local_port_allocation:
sysctl_local_port_allocation:do not initialise globals to 0.
Fixes: f07a514b584a ("tcp: fix compilation issue when CONFIG_SYSCTL is disabled") Signed-off-by: Zhengchao Shao shaozhengchao@huawei.com --- net/ipv4/inet_hashtables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c index 6fb12a4d86af..57a207101545 100644 --- a/net/ipv4/inet_hashtables.c +++ b/net/ipv4/inet_hashtables.c @@ -28,7 +28,7 @@ #include <net/tcp.h> #include <net/sock_reuseport.h>
-int sysctl_local_port_allocation = 0; +int sysctl_local_port_allocation;
u32 inet_ehashfn(const struct net *net, const __be32 laddr, const __u16 lport, const __be32 faddr,
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I90CON CVE: NA
--------------------------------
fix static scanning issue with bond_broadcast_arp_or_nd_table_header:
symbol 'bond_broadcast_arp_or_nd_table_header' was not declared. Should it be static?
Signed-off-by: Zhengchao Shao shaozhengchao@huawei.com --- drivers/net/bonding/bond_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/bonding/bond_sysctl.c b/drivers/net/bonding/bond_sysctl.c index 17404d37a2fd..78c1ad71c8f0 100644 --- a/drivers/net/bonding/bond_sysctl.c +++ b/drivers/net/bonding/bond_sysctl.c @@ -6,7 +6,7 @@ int sysctl_bond_broadcast_arp_or_nd __read_mostly; EXPORT_SYMBOL(sysctl_bond_broadcast_arp_or_nd);
-struct ctl_table_header *bond_broadcast_arp_or_nd_table_header; +static struct ctl_table_header *bond_broadcast_arp_or_nd_table_header;
static struct ctl_table bond_broadcast_arp_or_nd_table[] = { {