aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/infiniband/core/cma.c2
-rw-r--r--drivers/net/bonding/bond_main.c2
-rw-r--r--drivers/net/geneve.c2
-rw-r--r--drivers/net/gtp.c2
-rw-r--r--drivers/net/ppp/ppp_generic.c2
-rw-r--r--drivers/net/ppp/pppoe.c2
-rw-r--r--drivers/net/vxlan.c2
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c2
-rw-r--r--fs/lockd/netns.h2
-rw-r--r--fs/lockd/svc.c2
-rw-r--r--fs/nfs/inode.c2
-rw-r--r--fs/nfs/netns.h2
-rw-r--r--fs/nfs_common/grace.c2
-rw-r--r--fs/nfsd/netns.h2
-rw-r--r--fs/nfsd/nfsctl.c2
-rw-r--r--include/net/bonding.h2
-rw-r--r--include/net/ip_tunnels.h6
-rw-r--r--include/net/net_namespace.h2
-rw-r--r--include/net/netfilter/nf_conntrack_l4proto.h2
-rw-r--r--include/net/netfilter/nf_conntrack_synproxy.h2
-rw-r--r--include/net/netns/generic.h2
-rw-r--r--kernel/audit.c2
-rw-r--r--net/8021q/vlan.c2
-rw-r--r--net/8021q/vlan.h2
-rw-r--r--net/bridge/br_netfilter_hooks.c2
-rw-r--r--net/caif/caif_dev.c2
-rw-r--r--net/core/net_namespace.c7
-rw-r--r--net/core/pktgen.c2
-rw-r--r--net/ipv4/ip_gre.c4
-rw-r--r--net/ipv4/ip_tunnel.c4
-rw-r--r--net/ipv4/ip_vti.c2
-rw-r--r--net/ipv4/ipip.c2
-rw-r--r--net/ipv4/netfilter/ipt_CLUSTERIP.c2
-rw-r--r--net/ipv6/ip6_gre.c2
-rw-r--r--net/ipv6/ip6_tunnel.c2
-rw-r--r--net/ipv6/ip6_vti.c2
-rw-r--r--net/ipv6/sit.c2
-rw-r--r--net/ipv6/xfrm6_tunnel.c2
-rw-r--r--net/key/af_key.c2
-rw-r--r--net/netfilter/ipset/ip_set_core.c2
-rw-r--r--net/netfilter/ipvs/ip_vs_core.c2
-rw-r--r--net/netfilter/nf_conntrack_proto_dccp.c2
-rw-r--r--net/netfilter/nf_conntrack_proto_gre.c2
-rw-r--r--net/netfilter/nf_conntrack_proto_sctp.c2
-rw-r--r--net/netfilter/nf_conntrack_proto_udplite.c2
-rw-r--r--net/netfilter/nf_synproxy_core.c2
-rw-r--r--net/netfilter/nfnetlink_log.c2
-rw-r--r--net/netfilter/nfnetlink_queue.c2
-rw-r--r--net/netfilter/xt_hashlimit.c2
-rw-r--r--net/netfilter/xt_recent.c2
-rw-r--r--net/openvswitch/datapath.c2
-rw-r--r--net/openvswitch/datapath.h2
-rw-r--r--net/phonet/pn_dev.c2
-rw-r--r--net/rds/tcp.c2
-rw-r--r--net/sched/act_bpf.c2
-rw-r--r--net/sched/act_connmark.c2
-rw-r--r--net/sched/act_csum.c2
-rw-r--r--net/sched/act_gact.c2
-rw-r--r--net/sched/act_ife.c2
-rw-r--r--net/sched/act_ipt.c4
-rw-r--r--net/sched/act_mirred.c2
-rw-r--r--net/sched/act_nat.c2
-rw-r--r--net/sched/act_pedit.c2
-rw-r--r--net/sched/act_police.c2
-rw-r--r--net/sched/act_simple.c2
-rw-r--r--net/sched/act_skbedit.c2
-rw-r--r--net/sched/act_skbmod.c2
-rw-r--r--net/sched/act_tunnel_key.c2
-rw-r--r--net/sched/act_vlan.c2
-rw-r--r--net/sunrpc/netns.h2
-rw-r--r--net/sunrpc/sunrpc_syms.c2
-rw-r--r--net/tipc/core.c2
-rw-r--r--net/tipc/core.h2
73 files changed, 80 insertions, 81 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 89a6b0546804..c68f4fe001d7 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -116,7 +116,7 @@ static LIST_HEAD(dev_list);
116static LIST_HEAD(listen_any_list); 116static LIST_HEAD(listen_any_list);
117static DEFINE_MUTEX(lock); 117static DEFINE_MUTEX(lock);
118static struct workqueue_struct *cma_wq; 118static struct workqueue_struct *cma_wq;
119static int cma_pernet_id; 119static unsigned int cma_pernet_id;
120 120
121struct cma_pernet { 121struct cma_pernet {
122 struct idr tcp_ps; 122 struct idr tcp_ps;
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 5708f17e4cdf..8029dd4912b6 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -199,7 +199,7 @@ MODULE_PARM_DESC(lp_interval, "The number of seconds between instances where "
199atomic_t netpoll_block_tx = ATOMIC_INIT(0); 199atomic_t netpoll_block_tx = ATOMIC_INIT(0);
200#endif 200#endif
201 201
202int bond_net_id __read_mostly; 202unsigned int bond_net_id __read_mostly;
203 203
204static __be32 arp_target[BOND_MAX_ARP_TARGETS]; 204static __be32 arp_target[BOND_MAX_ARP_TARGETS];
205static int arp_ip_count; 205static int arp_ip_count;
diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c
index 85a423a66478..90dc6b188607 100644
--- a/drivers/net/geneve.c
+++ b/drivers/net/geneve.c
@@ -43,7 +43,7 @@ struct geneve_net {
43 struct list_head sock_list; 43 struct list_head sock_list;
44}; 44};
45 45
46static int geneve_net_id; 46static unsigned int geneve_net_id;
47 47
48union geneve_addr { 48union geneve_addr {
49 struct sockaddr_in sin; 49 struct sockaddr_in sin;
diff --git a/drivers/net/gtp.c b/drivers/net/gtp.c
index 719d19f35673..98f10c216521 100644
--- a/drivers/net/gtp.c
+++ b/drivers/net/gtp.c
@@ -77,7 +77,7 @@ struct gtp_dev {
77 struct hlist_head *addr_hash; 77 struct hlist_head *addr_hash;
78}; 78};
79 79
80static int gtp_net_id __read_mostly; 80static unsigned int gtp_net_id __read_mostly;
81 81
82struct gtp_net { 82struct gtp_net {
83 struct list_head gtp_dev_list; 83 struct list_head gtp_dev_list;
diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
index 5489c0ec1d9a..3d3b1f4339ef 100644
--- a/drivers/net/ppp/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
@@ -204,7 +204,7 @@ static atomic_t ppp_unit_count = ATOMIC_INIT(0);
204static atomic_t channel_count = ATOMIC_INIT(0); 204static atomic_t channel_count = ATOMIC_INIT(0);
205 205
206/* per-net private data for this module */ 206/* per-net private data for this module */
207static int ppp_net_id __read_mostly; 207static unsigned int ppp_net_id __read_mostly;
208struct ppp_net { 208struct ppp_net {
209 /* units to ppp mapping */ 209 /* units to ppp mapping */
210 struct idr units_idr; 210 struct idr units_idr;
diff --git a/drivers/net/ppp/pppoe.c b/drivers/net/ppp/pppoe.c
index 4ddae8118c85..f017c72bb7fd 100644
--- a/drivers/net/ppp/pppoe.c
+++ b/drivers/net/ppp/pppoe.c
@@ -95,7 +95,7 @@ static const struct proto_ops pppoe_ops;
95static const struct ppp_channel_ops pppoe_chan_ops; 95static const struct ppp_channel_ops pppoe_chan_ops;
96 96
97/* per-net private data for this module */ 97/* per-net private data for this module */
98static int pppoe_net_id __read_mostly; 98static unsigned int pppoe_net_id __read_mostly;
99struct pppoe_net { 99struct pppoe_net {
100 /* 100 /*
101 * we could use _single_ hash table for all 101 * we could use _single_ hash table for all
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 0a3fd675408f..21e92be6e56c 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -52,7 +52,7 @@ static bool log_ecn_error = true;
52module_param(log_ecn_error, bool, 0644); 52module_param(log_ecn_error, bool, 0644);
53MODULE_PARM_DESC(log_ecn_error, "Log packets received with corrupted ECN"); 53MODULE_PARM_DESC(log_ecn_error, "Log packets received with corrupted ECN");
54 54
55static int vxlan_net_id; 55static unsigned int vxlan_net_id;
56static struct rtnl_link_ops vxlan_link_ops; 56static struct rtnl_link_ops vxlan_link_ops;
57 57
58static const u8 all_zeros_mac[ETH_ALEN + 2]; 58static const u8 all_zeros_mac[ETH_ALEN + 2];
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index 8f366cc097e6..1293f8494985 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -250,7 +250,7 @@ static inline void hwsim_clear_chanctx_magic(struct ieee80211_chanctx_conf *c)
250 cp->magic = 0; 250 cp->magic = 0;
251} 251}
252 252
253static int hwsim_net_id; 253static unsigned int hwsim_net_id;
254 254
255static int hwsim_netgroup; 255static int hwsim_netgroup;
256 256
diff --git a/fs/lockd/netns.h b/fs/lockd/netns.h
index 5426189406c1..fb8cac88251a 100644
--- a/fs/lockd/netns.h
+++ b/fs/lockd/netns.h
@@ -15,6 +15,6 @@ struct lockd_net {
15 struct list_head nsm_handles; 15 struct list_head nsm_handles;
16}; 16};
17 17
18extern int lockd_net_id; 18extern unsigned int lockd_net_id;
19 19
20#endif 20#endif
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c
index fc4084ef4736..1c13dd80744f 100644
--- a/fs/lockd/svc.c
+++ b/fs/lockd/svc.c
@@ -57,7 +57,7 @@ static struct task_struct *nlmsvc_task;
57static struct svc_rqst *nlmsvc_rqst; 57static struct svc_rqst *nlmsvc_rqst;
58unsigned long nlmsvc_timeout; 58unsigned long nlmsvc_timeout;
59 59
60int lockd_net_id; 60unsigned int lockd_net_id;
61 61
62/* 62/*
63 * These can be set at insmod time (useful for NFS as root filesystem), 63 * These can be set at insmod time (useful for NFS as root filesystem),
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index bf4ec5ecc97e..ce42dd00e4ee 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -2015,7 +2015,7 @@ static void nfsiod_stop(void)
2015 destroy_workqueue(wq); 2015 destroy_workqueue(wq);
2016} 2016}
2017 2017
2018int nfs_net_id; 2018unsigned int nfs_net_id;
2019EXPORT_SYMBOL_GPL(nfs_net_id); 2019EXPORT_SYMBOL_GPL(nfs_net_id);
2020 2020
2021static int nfs_net_init(struct net *net) 2021static int nfs_net_init(struct net *net)
diff --git a/fs/nfs/netns.h b/fs/nfs/netns.h
index fbce0d885d4c..5fbd2bde91ba 100644
--- a/fs/nfs/netns.h
+++ b/fs/nfs/netns.h
@@ -35,6 +35,6 @@ struct nfs_net {
35#endif 35#endif
36}; 36};
37 37
38extern int nfs_net_id; 38extern unsigned int nfs_net_id;
39 39
40#endif 40#endif
diff --git a/fs/nfs_common/grace.c b/fs/nfs_common/grace.c
index fd8c9a5bcac4..420d3a0ab258 100644
--- a/fs/nfs_common/grace.c
+++ b/fs/nfs_common/grace.c
@@ -9,7 +9,7 @@
9#include <net/netns/generic.h> 9#include <net/netns/generic.h>
10#include <linux/fs.h> 10#include <linux/fs.h>
11 11
12static int grace_net_id; 12static unsigned int grace_net_id;
13static DEFINE_SPINLOCK(grace_lock); 13static DEFINE_SPINLOCK(grace_lock);
14 14
15/** 15/**
diff --git a/fs/nfsd/netns.h b/fs/nfsd/netns.h
index ee36efd5aece..3714231a9d0f 100644
--- a/fs/nfsd/netns.h
+++ b/fs/nfsd/netns.h
@@ -124,5 +124,5 @@ struct nfsd_net {
124/* Simple check to find out if a given net was properly initialized */ 124/* Simple check to find out if a given net was properly initialized */
125#define nfsd_netns_ready(nn) ((nn)->sessionid_hashtbl) 125#define nfsd_netns_ready(nn) ((nn)->sessionid_hashtbl)
126 126
127extern int nfsd_net_id; 127extern unsigned int nfsd_net_id;
128#endif /* __NFSD_NETNS_H__ */ 128#endif /* __NFSD_NETNS_H__ */
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index 36b2af931e06..2857e46d5cc5 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -1201,7 +1201,7 @@ static int create_proc_exports_entry(void)
1201} 1201}
1202#endif 1202#endif
1203 1203
1204int nfsd_net_id; 1204unsigned int nfsd_net_id;
1205 1205
1206static __net_init int nfsd_init_net(struct net *net) 1206static __net_init int nfsd_init_net(struct net *net)
1207{ 1207{
diff --git a/include/net/bonding.h b/include/net/bonding.h
index f32f7ef8a23a..3c857778a6ca 100644
--- a/include/net/bonding.h
+++ b/include/net/bonding.h
@@ -681,7 +681,7 @@ static inline int bond_get_targets_ip(__be32 *targets, __be32 ip)
681} 681}
682 682
683/* exported from bond_main.c */ 683/* exported from bond_main.c */
684extern int bond_net_id; 684extern unsigned int bond_net_id;
685extern const struct bond_parm_tbl bond_lacp_tbl[]; 685extern const struct bond_parm_tbl bond_lacp_tbl[];
686extern const struct bond_parm_tbl xmit_hashtype_tbl[]; 686extern const struct bond_parm_tbl xmit_hashtype_tbl[];
687extern const struct bond_parm_tbl arp_validate_tbl[]; 687extern const struct bond_parm_tbl arp_validate_tbl[];
diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h
index 59557c07904b..e893fe43dd13 100644
--- a/include/net/ip_tunnels.h
+++ b/include/net/ip_tunnels.h
@@ -129,7 +129,7 @@ struct ip_tunnel {
129#endif 129#endif
130 struct ip_tunnel_prl_entry __rcu *prl; /* potential router list */ 130 struct ip_tunnel_prl_entry __rcu *prl; /* potential router list */
131 unsigned int prl_count; /* # of entries in PRL */ 131 unsigned int prl_count; /* # of entries in PRL */
132 int ip_tnl_net_id; 132 unsigned int ip_tnl_net_id;
133 struct gro_cells gro_cells; 133 struct gro_cells gro_cells;
134 bool collect_md; 134 bool collect_md;
135 bool ignore_df; 135 bool ignore_df;
@@ -248,7 +248,7 @@ void ip_tunnel_uninit(struct net_device *dev);
248void ip_tunnel_dellink(struct net_device *dev, struct list_head *head); 248void ip_tunnel_dellink(struct net_device *dev, struct list_head *head);
249struct net *ip_tunnel_get_link_net(const struct net_device *dev); 249struct net *ip_tunnel_get_link_net(const struct net_device *dev);
250int ip_tunnel_get_iflink(const struct net_device *dev); 250int ip_tunnel_get_iflink(const struct net_device *dev);
251int ip_tunnel_init_net(struct net *net, int ip_tnl_net_id, 251int ip_tunnel_init_net(struct net *net, unsigned int ip_tnl_net_id,
252 struct rtnl_link_ops *ops, char *devname); 252 struct rtnl_link_ops *ops, char *devname);
253 253
254void ip_tunnel_delete_net(struct ip_tunnel_net *itn, struct rtnl_link_ops *ops); 254void ip_tunnel_delete_net(struct ip_tunnel_net *itn, struct rtnl_link_ops *ops);
@@ -275,7 +275,7 @@ int ip_tunnel_changelink(struct net_device *dev, struct nlattr *tb[],
275 struct ip_tunnel_parm *p); 275 struct ip_tunnel_parm *p);
276int ip_tunnel_newlink(struct net_device *dev, struct nlattr *tb[], 276int ip_tunnel_newlink(struct net_device *dev, struct nlattr *tb[],
277 struct ip_tunnel_parm *p); 277 struct ip_tunnel_parm *p);
278void ip_tunnel_setup(struct net_device *dev, int net_id); 278void ip_tunnel_setup(struct net_device *dev, unsigned int net_id);
279 279
280struct ip_tunnel_encap_ops { 280struct ip_tunnel_encap_ops {
281 size_t (*encap_hlen)(struct ip_tunnel_encap *e); 281 size_t (*encap_hlen)(struct ip_tunnel_encap *e);
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index fc4f757107df..d7149e93a60a 100644
--- a/include/net/net_namespace.h
+++ b/include/net/net_namespace.h
@@ -291,7 +291,7 @@ struct pernet_operations {
291 int (*init)(struct net *net); 291 int (*init)(struct net *net);
292 void (*exit)(struct net *net); 292 void (*exit)(struct net *net);
293 void (*exit_batch)(struct list_head *net_exit_list); 293 void (*exit_batch)(struct list_head *net_exit_list);
294 int *id; 294 unsigned int *id;
295 size_t size; 295 size_t size;
296}; 296};
297 297
diff --git a/include/net/netfilter/nf_conntrack_l4proto.h b/include/net/netfilter/nf_conntrack_l4proto.h
index 2152b70626d5..e7b836590f0b 100644
--- a/include/net/netfilter/nf_conntrack_l4proto.h
+++ b/include/net/netfilter/nf_conntrack_l4proto.h
@@ -98,7 +98,7 @@ struct nf_conntrack_l4proto {
98 const struct nla_policy *nla_policy; 98 const struct nla_policy *nla_policy;
99 } ctnl_timeout; 99 } ctnl_timeout;
100#endif 100#endif
101 int *net_id; 101 unsigned int *net_id;
102 /* Init l4proto pernet data */ 102 /* Init l4proto pernet data */
103 int (*init_net)(struct net *net, u_int16_t proto); 103 int (*init_net)(struct net *net, u_int16_t proto);
104 104
diff --git a/include/net/netfilter/nf_conntrack_synproxy.h b/include/net/netfilter/nf_conntrack_synproxy.h
index e6937318546c..b0ca402c1f72 100644
--- a/include/net/netfilter/nf_conntrack_synproxy.h
+++ b/include/net/netfilter/nf_conntrack_synproxy.h
@@ -54,7 +54,7 @@ struct synproxy_net {
54 struct synproxy_stats __percpu *stats; 54 struct synproxy_stats __percpu *stats;
55}; 55};
56 56
57extern int synproxy_net_id; 57extern unsigned int synproxy_net_id;
58static inline struct synproxy_net *synproxy_pernet(struct net *net) 58static inline struct synproxy_net *synproxy_pernet(struct net *net)
59{ 59{
60 return net_generic(net, synproxy_net_id); 60 return net_generic(net, synproxy_net_id);
diff --git a/include/net/netns/generic.h b/include/net/netns/generic.h
index 70e158551704..d315786bcfd7 100644
--- a/include/net/netns/generic.h
+++ b/include/net/netns/generic.h
@@ -31,7 +31,7 @@ struct net_generic {
31 void *ptr[0]; 31 void *ptr[0];
32}; 32};
33 33
34static inline void *net_generic(const struct net *net, int id) 34static inline void *net_generic(const struct net *net, unsigned int id)
35{ 35{
36 struct net_generic *ng; 36 struct net_generic *ng;
37 void *ptr; 37 void *ptr;
diff --git a/kernel/audit.c b/kernel/audit.c
index f1ca11613379..92c463d2d1c7 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -126,7 +126,7 @@ static atomic_t audit_lost = ATOMIC_INIT(0);
126 126
127/* The netlink socket. */ 127/* The netlink socket. */
128static struct sock *audit_sock; 128static struct sock *audit_sock;
129static int audit_net_id; 129static unsigned int audit_net_id;
130 130
131/* Hash for inode-based rules */ 131/* Hash for inode-based rules */
132struct list_head audit_inode_hash[AUDIT_INODE_BUCKETS]; 132struct list_head audit_inode_hash[AUDIT_INODE_BUCKETS];
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
index a79365574531..691f0ad7067d 100644
--- a/net/8021q/vlan.c
+++ b/net/8021q/vlan.c
@@ -44,7 +44,7 @@
44 44
45/* Global VLAN variables */ 45/* Global VLAN variables */
46 46
47int vlan_net_id __read_mostly; 47unsigned int vlan_net_id __read_mostly;
48 48
49const char vlan_fullname[] = "802.1Q VLAN Support"; 49const char vlan_fullname[] = "802.1Q VLAN Support";
50const char vlan_version[] = DRV_VERSION; 50const char vlan_version[] = DRV_VERSION;
diff --git a/net/8021q/vlan.h b/net/8021q/vlan.h
index cc1557978066..df8bd65dd370 100644
--- a/net/8021q/vlan.h
+++ b/net/8021q/vlan.h
@@ -159,7 +159,7 @@ void vlan_netlink_fini(void);
159 159
160extern struct rtnl_link_ops vlan_link_ops; 160extern struct rtnl_link_ops vlan_link_ops;
161 161
162extern int vlan_net_id; 162extern unsigned int vlan_net_id;
163 163
164struct proc_dir_entry; 164struct proc_dir_entry;
165 165
diff --git a/net/bridge/br_netfilter_hooks.c b/net/bridge/br_netfilter_hooks.c
index 8155bd2a5138..83d937f4415e 100644
--- a/net/bridge/br_netfilter_hooks.c
+++ b/net/bridge/br_netfilter_hooks.c
@@ -46,7 +46,7 @@
46#include <linux/sysctl.h> 46#include <linux/sysctl.h>
47#endif 47#endif
48 48
49static int brnf_net_id __read_mostly; 49static unsigned int brnf_net_id __read_mostly;
50 50
51struct brnf_net { 51struct brnf_net {
52 bool enabled; 52 bool enabled;
diff --git a/net/caif/caif_dev.c b/net/caif/caif_dev.c
index d730a0f68f46..2d38b6e34203 100644
--- a/net/caif/caif_dev.c
+++ b/net/caif/caif_dev.c
@@ -52,7 +52,7 @@ struct caif_net {
52 struct caif_device_entry_list caifdevs; 52 struct caif_device_entry_list caifdevs;
53}; 53};
54 54
55static int caif_net_id; 55static unsigned int caif_net_id;
56static int q_high = 50; /* Percent */ 56static int q_high = 50; /* Percent */
57 57
58struct cfcnfg *get_cfcnfg(struct net *net) 58struct cfcnfg *get_cfcnfg(struct net *net)
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c
index 1309d78e2a64..35d37b196e67 100644
--- a/net/core/net_namespace.c
+++ b/net/core/net_namespace.c
@@ -55,7 +55,7 @@ static struct net_generic *net_alloc_generic(void)
55 return ng; 55 return ng;
56} 56}
57 57
58static int net_assign_generic(struct net *net, int id, void *data) 58static int net_assign_generic(struct net *net, unsigned int id, void *data)
59{ 59{
60 struct net_generic *ng, *old_ng; 60 struct net_generic *ng, *old_ng;
61 61
@@ -122,8 +122,7 @@ out:
122static void ops_free(const struct pernet_operations *ops, struct net *net) 122static void ops_free(const struct pernet_operations *ops, struct net *net)
123{ 123{
124 if (ops->id && ops->size) { 124 if (ops->id && ops->size) {
125 int id = *ops->id; 125 kfree(net_generic(net, *ops->id));
126 kfree(net_generic(net, id));
127 } 126 }
128} 127}
129 128
@@ -881,7 +880,7 @@ again:
881 } 880 }
882 return error; 881 return error;
883 } 882 }
884 max_gen_ptrs = max_t(unsigned int, max_gen_ptrs, *ops->id); 883 max_gen_ptrs = max(max_gen_ptrs, *ops->id);
885 } 884 }
886 error = __register_pernet_operations(list, ops); 885 error = __register_pernet_operations(list, ops);
887 if (error) { 886 if (error) {
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 306b8f0e03c1..8e69ce472236 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -413,7 +413,7 @@ struct pktgen_hdr {
413}; 413};
414 414
415 415
416static int pg_net_id __read_mostly; 416static unsigned int pg_net_id __read_mostly;
417 417
418struct pktgen_net { 418struct pktgen_net {
419 struct net *net; 419 struct net *net;
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c
index 576f705d8180..78fd62048335 100644
--- a/net/ipv4/ip_gre.c
+++ b/net/ipv4/ip_gre.c
@@ -113,8 +113,8 @@ MODULE_PARM_DESC(log_ecn_error, "Log packets received with corrupted ECN");
113static struct rtnl_link_ops ipgre_link_ops __read_mostly; 113static struct rtnl_link_ops ipgre_link_ops __read_mostly;
114static int ipgre_tunnel_init(struct net_device *dev); 114static int ipgre_tunnel_init(struct net_device *dev);
115 115
116static int ipgre_net_id __read_mostly; 116static unsigned int ipgre_net_id __read_mostly;
117static int gre_tap_net_id __read_mostly; 117static unsigned int gre_tap_net_id __read_mostly;
118 118
119static void ipgre_err(struct sk_buff *skb, u32 info, 119static void ipgre_err(struct sk_buff *skb, u32 info,
120 const struct tnl_ptk_info *tpi) 120 const struct tnl_ptk_info *tpi)
diff --git a/net/ipv4/ip_tunnel.c b/net/ipv4/ip_tunnel.c
index 12a92e3349ed..823abaef006b 100644
--- a/net/ipv4/ip_tunnel.c
+++ b/net/ipv4/ip_tunnel.c
@@ -994,7 +994,7 @@ int ip_tunnel_get_iflink(const struct net_device *dev)
994} 994}
995EXPORT_SYMBOL(ip_tunnel_get_iflink); 995EXPORT_SYMBOL(ip_tunnel_get_iflink);
996 996
997int ip_tunnel_init_net(struct net *net, int ip_tnl_net_id, 997int ip_tunnel_init_net(struct net *net, unsigned int ip_tnl_net_id,
998 struct rtnl_link_ops *ops, char *devname) 998 struct rtnl_link_ops *ops, char *devname)
999{ 999{
1000 struct ip_tunnel_net *itn = net_generic(net, ip_tnl_net_id); 1000 struct ip_tunnel_net *itn = net_generic(net, ip_tnl_net_id);
@@ -1196,7 +1196,7 @@ void ip_tunnel_uninit(struct net_device *dev)
1196EXPORT_SYMBOL_GPL(ip_tunnel_uninit); 1196EXPORT_SYMBOL_GPL(ip_tunnel_uninit);
1197 1197
1198/* Do least required initialization, rest of init is done in tunnel_init call */ 1198/* Do least required initialization, rest of init is done in tunnel_init call */
1199void ip_tunnel_setup(struct net_device *dev, int net_id) 1199void ip_tunnel_setup(struct net_device *dev, unsigned int net_id)
1200{ 1200{
1201 struct ip_tunnel *tunnel = netdev_priv(dev); 1201 struct ip_tunnel *tunnel = netdev_priv(dev);
1202 tunnel->ip_tnl_net_id = net_id; 1202 tunnel->ip_tnl_net_id = net_id;
diff --git a/net/ipv4/ip_vti.c b/net/ipv4/ip_vti.c
index 5d7944f394d9..8b14f1404c8f 100644
--- a/net/ipv4/ip_vti.c
+++ b/net/ipv4/ip_vti.c
@@ -46,7 +46,7 @@
46 46
47static struct rtnl_link_ops vti_link_ops __read_mostly; 47static struct rtnl_link_ops vti_link_ops __read_mostly;
48 48
49static int vti_net_id __read_mostly; 49static unsigned int vti_net_id __read_mostly;
50static int vti_tunnel_init(struct net_device *dev); 50static int vti_tunnel_init(struct net_device *dev);
51 51
52static int vti_input(struct sk_buff *skb, int nexthdr, __be32 spi, 52static int vti_input(struct sk_buff *skb, int nexthdr, __be32 spi,
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c
index c9392589c415..79489f017854 100644
--- a/net/ipv4/ipip.c
+++ b/net/ipv4/ipip.c
@@ -121,7 +121,7 @@ static bool log_ecn_error = true;
121module_param(log_ecn_error, bool, 0644); 121module_param(log_ecn_error, bool, 0644);
122MODULE_PARM_DESC(log_ecn_error, "Log packets received with corrupted ECN"); 122MODULE_PARM_DESC(log_ecn_error, "Log packets received with corrupted ECN");
123 123
124static int ipip_net_id __read_mostly; 124static unsigned int ipip_net_id __read_mostly;
125 125
126static int ipip_tunnel_init(struct net_device *dev); 126static int ipip_tunnel_init(struct net_device *dev);
127static struct rtnl_link_ops ipip_link_ops __read_mostly; 127static struct rtnl_link_ops ipip_link_ops __read_mostly;
diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c b/net/ipv4/netfilter/ipt_CLUSTERIP.c
index 4a9e6db9df8d..e6e206fa86c8 100644
--- a/net/ipv4/netfilter/ipt_CLUSTERIP.c
+++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c
@@ -62,7 +62,7 @@ struct clusterip_config {
62static const struct file_operations clusterip_proc_fops; 62static const struct file_operations clusterip_proc_fops;
63#endif 63#endif
64 64
65static int clusterip_net_id __read_mostly; 65static unsigned int clusterip_net_id __read_mostly;
66 66
67struct clusterip_net { 67struct clusterip_net {
68 struct list_head configs; 68 struct list_head configs;
diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c
index 710bc79f9113..75b6108234dd 100644
--- a/net/ipv6/ip6_gre.c
+++ b/net/ipv6/ip6_gre.c
@@ -64,7 +64,7 @@ MODULE_PARM_DESC(log_ecn_error, "Log packets received with corrupted ECN");
64#define IP6_GRE_HASH_SIZE_SHIFT 5 64#define IP6_GRE_HASH_SIZE_SHIFT 5
65#define IP6_GRE_HASH_SIZE (1 << IP6_GRE_HASH_SIZE_SHIFT) 65#define IP6_GRE_HASH_SIZE (1 << IP6_GRE_HASH_SIZE_SHIFT)
66 66
67static int ip6gre_net_id __read_mostly; 67static unsigned int ip6gre_net_id __read_mostly;
68struct ip6gre_net { 68struct ip6gre_net {
69 struct ip6_tnl __rcu *tunnels[4][IP6_GRE_HASH_SIZE]; 69 struct ip6_tnl __rcu *tunnels[4][IP6_GRE_HASH_SIZE];
70 70
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index 259e8507d2cd..d3c619eda051 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -83,7 +83,7 @@ static int ip6_tnl_dev_init(struct net_device *dev);
83static void ip6_tnl_dev_setup(struct net_device *dev); 83static void ip6_tnl_dev_setup(struct net_device *dev);
84static struct rtnl_link_ops ip6_link_ops __read_mostly; 84static struct rtnl_link_ops ip6_link_ops __read_mostly;
85 85
86static int ip6_tnl_net_id __read_mostly; 86static unsigned int ip6_tnl_net_id __read_mostly;
87struct ip6_tnl_net { 87struct ip6_tnl_net {
88 /* the IPv6 tunnel fallback device */ 88 /* the IPv6 tunnel fallback device */
89 struct net_device *fb_tnl_dev; 89 struct net_device *fb_tnl_dev;
diff --git a/net/ipv6/ip6_vti.c b/net/ipv6/ip6_vti.c
index af3f0e011265..c476bb8e9cdb 100644
--- a/net/ipv6/ip6_vti.c
+++ b/net/ipv6/ip6_vti.c
@@ -64,7 +64,7 @@ static int vti6_dev_init(struct net_device *dev);
64static void vti6_dev_setup(struct net_device *dev); 64static void vti6_dev_setup(struct net_device *dev);
65static struct rtnl_link_ops vti6_link_ops __read_mostly; 65static struct rtnl_link_ops vti6_link_ops __read_mostly;
66 66
67static int vti6_net_id __read_mostly; 67static unsigned int vti6_net_id __read_mostly;
68struct vti6_net { 68struct vti6_net {
69 /* the vti6 tunnel fallback device */ 69 /* the vti6 tunnel fallback device */
70 struct net_device *fb_tnl_dev; 70 struct net_device *fb_tnl_dev;
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
index dc7a3449ffc1..0355231162b8 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -76,7 +76,7 @@ static bool check_6rd(struct ip_tunnel *tunnel, const struct in6_addr *v6dst,
76 __be32 *v4dst); 76 __be32 *v4dst);
77static struct rtnl_link_ops sit_link_ops __read_mostly; 77static struct rtnl_link_ops sit_link_ops __read_mostly;
78 78
79static int sit_net_id __read_mostly; 79static unsigned int sit_net_id __read_mostly;
80struct sit_net { 80struct sit_net {
81 struct ip_tunnel __rcu *tunnels_r_l[IP6_SIT_HASH_SIZE]; 81 struct ip_tunnel __rcu *tunnels_r_l[IP6_SIT_HASH_SIZE];
82 struct ip_tunnel __rcu *tunnels_r[IP6_SIT_HASH_SIZE]; 82 struct ip_tunnel __rcu *tunnels_r[IP6_SIT_HASH_SIZE];
diff --git a/net/ipv6/xfrm6_tunnel.c b/net/ipv6/xfrm6_tunnel.c
index e1c0bbe7996c..d7b731a78d09 100644
--- a/net/ipv6/xfrm6_tunnel.c
+++ b/net/ipv6/xfrm6_tunnel.c
@@ -44,7 +44,7 @@ struct xfrm6_tunnel_net {
44 u32 spi; 44 u32 spi;
45}; 45};
46 46
47static int xfrm6_tunnel_net_id __read_mostly; 47static unsigned int xfrm6_tunnel_net_id __read_mostly;
48static inline struct xfrm6_tunnel_net *xfrm6_tunnel_pernet(struct net *net) 48static inline struct xfrm6_tunnel_net *xfrm6_tunnel_pernet(struct net *net)
49{ 49{
50 return net_generic(net, xfrm6_tunnel_net_id); 50 return net_generic(net, xfrm6_tunnel_net_id);
diff --git a/net/key/af_key.c b/net/key/af_key.c
index f9c9ecb0cdd3..c6252ed42c1d 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -36,7 +36,7 @@
36#define _X2KEY(x) ((x) == XFRM_INF ? 0 : (x)) 36#define _X2KEY(x) ((x) == XFRM_INF ? 0 : (x))
37#define _KEY2X(x) ((x) == 0 ? XFRM_INF : (x)) 37#define _KEY2X(x) ((x) == 0 ? XFRM_INF : (x))
38 38
39static int pfkey_net_id __read_mostly; 39static unsigned int pfkey_net_id __read_mostly;
40struct netns_pfkey { 40struct netns_pfkey {
41 /* List of all pfkey sockets. */ 41 /* List of all pfkey sockets. */
42 struct hlist_head table; 42 struct hlist_head table;
diff --git a/net/netfilter/ipset/ip_set_core.c b/net/netfilter/ipset/ip_set_core.c
index 23345d2d136a..c296f9b606d4 100644
--- a/net/netfilter/ipset/ip_set_core.c
+++ b/net/netfilter/ipset/ip_set_core.c
@@ -36,7 +36,7 @@ struct ip_set_net {
36 bool is_destroyed; /* all sets are destroyed */ 36 bool is_destroyed; /* all sets are destroyed */
37}; 37};
38 38
39static int ip_set_net_id __read_mostly; 39static unsigned int ip_set_net_id __read_mostly;
40 40
41static inline struct ip_set_net *ip_set_pernet(struct net *net) 41static inline struct ip_set_net *ip_set_pernet(struct net *net)
42{ 42{
diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c
index 2c1b498a7a27..db40050f8785 100644
--- a/net/netfilter/ipvs/ip_vs_core.c
+++ b/net/netfilter/ipvs/ip_vs_core.c
@@ -70,7 +70,7 @@ EXPORT_SYMBOL(ip_vs_get_debug_level);
70#endif 70#endif
71EXPORT_SYMBOL(ip_vs_new_conn_out); 71EXPORT_SYMBOL(ip_vs_new_conn_out);
72 72
73static int ip_vs_net_id __read_mostly; 73static unsigned int ip_vs_net_id __read_mostly;
74/* netns cnt used for uniqueness */ 74/* netns cnt used for uniqueness */
75static atomic_t ipvs_netns_cnt = ATOMIC_INIT(0); 75static atomic_t ipvs_netns_cnt = ATOMIC_INIT(0);
76 76
diff --git a/net/netfilter/nf_conntrack_proto_dccp.c b/net/netfilter/nf_conntrack_proto_dccp.c
index ac8976964975..073b047314dc 100644
--- a/net/netfilter/nf_conntrack_proto_dccp.c
+++ b/net/netfilter/nf_conntrack_proto_dccp.c
@@ -385,7 +385,7 @@ dccp_state_table[CT_DCCP_ROLE_MAX + 1][DCCP_PKT_SYNCACK + 1][CT_DCCP_MAX + 1] =
385}; 385};
386 386
387/* this module per-net specifics */ 387/* this module per-net specifics */
388static int dccp_net_id __read_mostly; 388static unsigned int dccp_net_id __read_mostly;
389struct dccp_net { 389struct dccp_net {
390 struct nf_proto_net pn; 390 struct nf_proto_net pn;
391 int dccp_loose; 391 int dccp_loose;
diff --git a/net/netfilter/nf_conntrack_proto_gre.c b/net/netfilter/nf_conntrack_proto_gre.c
index ff405c9183f1..87bb40a3feb5 100644
--- a/net/netfilter/nf_conntrack_proto_gre.c
+++ b/net/netfilter/nf_conntrack_proto_gre.c
@@ -53,7 +53,7 @@ static unsigned int gre_timeouts[GRE_CT_MAX] = {
53 [GRE_CT_REPLIED] = 180*HZ, 53 [GRE_CT_REPLIED] = 180*HZ,
54}; 54};
55 55
56static int proto_gre_net_id __read_mostly; 56static unsigned int proto_gre_net_id __read_mostly;
57struct netns_proto_gre { 57struct netns_proto_gre {
58 struct nf_proto_net nf; 58 struct nf_proto_net nf;
59 rwlock_t keymap_lock; 59 rwlock_t keymap_lock;
diff --git a/net/netfilter/nf_conntrack_proto_sctp.c b/net/netfilter/nf_conntrack_proto_sctp.c
index 17c0ade23fd8..d096c2d6b87b 100644
--- a/net/netfilter/nf_conntrack_proto_sctp.c
+++ b/net/netfilter/nf_conntrack_proto_sctp.c
@@ -144,7 +144,7 @@ static const u8 sctp_conntracks[2][11][SCTP_CONNTRACK_MAX] = {
144 } 144 }
145}; 145};
146 146
147static int sctp_net_id __read_mostly; 147static unsigned int sctp_net_id __read_mostly;
148struct sctp_net { 148struct sctp_net {
149 struct nf_proto_net pn; 149 struct nf_proto_net pn;
150 unsigned int timeouts[SCTP_CONNTRACK_MAX]; 150 unsigned int timeouts[SCTP_CONNTRACK_MAX];
diff --git a/net/netfilter/nf_conntrack_proto_udplite.c b/net/netfilter/nf_conntrack_proto_udplite.c
index 8cdb4b1bf933..7808604c70a2 100644
--- a/net/netfilter/nf_conntrack_proto_udplite.c
+++ b/net/netfilter/nf_conntrack_proto_udplite.c
@@ -35,7 +35,7 @@ static unsigned int udplite_timeouts[UDPLITE_CT_MAX] = {
35 [UDPLITE_CT_REPLIED] = 180*HZ, 35 [UDPLITE_CT_REPLIED] = 180*HZ,
36}; 36};
37 37
38static int udplite_net_id __read_mostly; 38static unsigned int udplite_net_id __read_mostly;
39struct udplite_net { 39struct udplite_net {
40 struct nf_proto_net pn; 40 struct nf_proto_net pn;
41 unsigned int timeouts[UDPLITE_CT_MAX]; 41 unsigned int timeouts[UDPLITE_CT_MAX];
diff --git a/net/netfilter/nf_synproxy_core.c b/net/netfilter/nf_synproxy_core.c
index c8a4a48bced9..7c6d1fbe38b9 100644
--- a/net/netfilter/nf_synproxy_core.c
+++ b/net/netfilter/nf_synproxy_core.c
@@ -24,7 +24,7 @@
24#include <net/netfilter/nf_conntrack_synproxy.h> 24#include <net/netfilter/nf_conntrack_synproxy.h>
25#include <net/netfilter/nf_conntrack_zones.h> 25#include <net/netfilter/nf_conntrack_zones.h>
26 26
27int synproxy_net_id; 27unsigned int synproxy_net_id;
28EXPORT_SYMBOL_GPL(synproxy_net_id); 28EXPORT_SYMBOL_GPL(synproxy_net_id);
29 29
30bool 30bool
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c
index 7435505037b7..763cb4d54e8d 100644
--- a/net/netfilter/nfnetlink_log.c
+++ b/net/netfilter/nfnetlink_log.c
@@ -80,7 +80,7 @@ struct nfulnl_instance {
80 80
81#define INSTANCE_BUCKETS 16 81#define INSTANCE_BUCKETS 16
82 82
83static int nfnl_log_net_id __read_mostly; 83static unsigned int nfnl_log_net_id __read_mostly;
84 84
85struct nfnl_log_net { 85struct nfnl_log_net {
86 spinlock_t instances_lock; 86 spinlock_t instances_lock;
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c
index 1e33115b399f..be7627b80400 100644
--- a/net/netfilter/nfnetlink_queue.c
+++ b/net/netfilter/nfnetlink_queue.c
@@ -77,7 +77,7 @@ struct nfqnl_instance {
77 77
78typedef int (*nfqnl_cmpfn)(struct nf_queue_entry *, unsigned long); 78typedef int (*nfqnl_cmpfn)(struct nf_queue_entry *, unsigned long);
79 79
80static int nfnl_queue_net_id __read_mostly; 80static unsigned int nfnl_queue_net_id __read_mostly;
81 81
82#define INSTANCE_BUCKETS 16 82#define INSTANCE_BUCKETS 16
83struct nfnl_queue_net { 83struct nfnl_queue_net {
diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c
index b89b688e9d01..10063408141d 100644
--- a/net/netfilter/xt_hashlimit.c
+++ b/net/netfilter/xt_hashlimit.c
@@ -49,7 +49,7 @@ struct hashlimit_net {
49 struct proc_dir_entry *ip6t_hashlimit; 49 struct proc_dir_entry *ip6t_hashlimit;
50}; 50};
51 51
52static int hashlimit_net_id; 52static unsigned int hashlimit_net_id;
53static inline struct hashlimit_net *hashlimit_pernet(struct net *net) 53static inline struct hashlimit_net *hashlimit_pernet(struct net *net)
54{ 54{
55 return net_generic(net, hashlimit_net_id); 55 return net_generic(net, hashlimit_net_id);
diff --git a/net/netfilter/xt_recent.c b/net/netfilter/xt_recent.c
index bf250000e084..1d89a4eaf841 100644
--- a/net/netfilter/xt_recent.c
+++ b/net/netfilter/xt_recent.c
@@ -95,7 +95,7 @@ struct recent_net {
95#endif 95#endif
96}; 96};
97 97
98static int recent_net_id __read_mostly; 98static unsigned int recent_net_id __read_mostly;
99 99
100static inline struct recent_net *recent_pernet(struct net *net) 100static inline struct recent_net *recent_pernet(struct net *net)
101{ 101{
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index 1402f1be642d..2d4c4d3911c0 100644
--- a/net/openvswitch/datapath.c
+++ b/net/openvswitch/datapath.c
@@ -58,7 +58,7 @@
58#include "vport-internal_dev.h" 58#include "vport-internal_dev.h"
59#include "vport-netdev.h" 59#include "vport-netdev.h"
60 60
61int ovs_net_id __read_mostly; 61unsigned int ovs_net_id __read_mostly;
62 62
63static struct genl_family dp_packet_genl_family; 63static struct genl_family dp_packet_genl_family;
64static struct genl_family dp_flow_genl_family; 64static struct genl_family dp_flow_genl_family;
diff --git a/net/openvswitch/datapath.h b/net/openvswitch/datapath.h
index ab85c1cae255..1c6e9377436d 100644
--- a/net/openvswitch/datapath.h
+++ b/net/openvswitch/datapath.h
@@ -144,7 +144,7 @@ struct ovs_net {
144 bool xt_label; 144 bool xt_label;
145}; 145};
146 146
147extern int ovs_net_id; 147extern unsigned int ovs_net_id;
148void ovs_lock(void); 148void ovs_lock(void);
149void ovs_unlock(void); 149void ovs_unlock(void);
150 150
diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c
index a58680016472..2cb4c5dfad6f 100644
--- a/net/phonet/pn_dev.c
+++ b/net/phonet/pn_dev.c
@@ -44,7 +44,7 @@ struct phonet_net {
44 struct phonet_routes routes; 44 struct phonet_routes routes;
45}; 45};
46 46
47static int phonet_net_id __read_mostly; 47static unsigned int phonet_net_id __read_mostly;
48 48
49static struct phonet_net *phonet_pernet(struct net *net) 49static struct phonet_net *phonet_pernet(struct net *net)
50{ 50{
diff --git a/net/rds/tcp.c b/net/rds/tcp.c
index 3296a6ac583a..1a0399dea764 100644
--- a/net/rds/tcp.c
+++ b/net/rds/tcp.c
@@ -366,7 +366,7 @@ struct rds_transport rds_tcp_transport = {
366 .t_mp_capable = 1, 366 .t_mp_capable = 1,
367}; 367};
368 368
369static int rds_tcp_netid; 369static unsigned int rds_tcp_netid;
370 370
371/* per-network namespace private data for this module */ 371/* per-network namespace private data for this module */
372struct rds_tcp_net { 372struct rds_tcp_net {
diff --git a/net/sched/act_bpf.c b/net/sched/act_bpf.c
index 9ff06cfbcdec..1aa4ecf41baf 100644
--- a/net/sched/act_bpf.c
+++ b/net/sched/act_bpf.c
@@ -33,7 +33,7 @@ struct tcf_bpf_cfg {
33 bool is_ebpf; 33 bool is_ebpf;
34}; 34};
35 35
36static int bpf_net_id; 36static unsigned int bpf_net_id;
37static struct tc_action_ops act_bpf_ops; 37static struct tc_action_ops act_bpf_ops;
38 38
39static int tcf_bpf(struct sk_buff *skb, const struct tc_action *act, 39static int tcf_bpf(struct sk_buff *skb, const struct tc_action *act,
diff --git a/net/sched/act_connmark.c b/net/sched/act_connmark.c
index eae07a2e774d..ab8062909962 100644
--- a/net/sched/act_connmark.c
+++ b/net/sched/act_connmark.c
@@ -30,7 +30,7 @@
30 30
31#define CONNMARK_TAB_MASK 3 31#define CONNMARK_TAB_MASK 3
32 32
33static int connmark_net_id; 33static unsigned int connmark_net_id;
34static struct tc_action_ops act_connmark_ops; 34static struct tc_action_ops act_connmark_ops;
35 35
36static int tcf_connmark(struct sk_buff *skb, const struct tc_action *a, 36static int tcf_connmark(struct sk_buff *skb, const struct tc_action *a,
diff --git a/net/sched/act_csum.c b/net/sched/act_csum.c
index e0defcef376d..a0edd80a44db 100644
--- a/net/sched/act_csum.c
+++ b/net/sched/act_csum.c
@@ -42,7 +42,7 @@ static const struct nla_policy csum_policy[TCA_CSUM_MAX + 1] = {
42 [TCA_CSUM_PARMS] = { .len = sizeof(struct tc_csum), }, 42 [TCA_CSUM_PARMS] = { .len = sizeof(struct tc_csum), },
43}; 43};
44 44
45static int csum_net_id; 45static unsigned int csum_net_id;
46static struct tc_action_ops act_csum_ops; 46static struct tc_action_ops act_csum_ops;
47 47
48static int tcf_csum_init(struct net *net, struct nlattr *nla, 48static int tcf_csum_init(struct net *net, struct nlattr *nla,
diff --git a/net/sched/act_gact.c b/net/sched/act_gact.c
index e0aa30f83c6c..e6c874a2b283 100644
--- a/net/sched/act_gact.c
+++ b/net/sched/act_gact.c
@@ -25,7 +25,7 @@
25 25
26#define GACT_TAB_MASK 15 26#define GACT_TAB_MASK 15
27 27
28static int gact_net_id; 28static unsigned int gact_net_id;
29static struct tc_action_ops act_gact_ops; 29static struct tc_action_ops act_gact_ops;
30 30
31#ifdef CONFIG_GACT_PROB 31#ifdef CONFIG_GACT_PROB
diff --git a/net/sched/act_ife.c b/net/sched/act_ife.c
index 95c463cbb9a6..80b848d3f096 100644
--- a/net/sched/act_ife.c
+++ b/net/sched/act_ife.c
@@ -35,7 +35,7 @@
35 35
36#define IFE_TAB_MASK 15 36#define IFE_TAB_MASK 15
37 37
38static int ife_net_id; 38static unsigned int ife_net_id;
39static int max_metacnt = IFE_META_MAX + 1; 39static int max_metacnt = IFE_META_MAX + 1;
40static struct tc_action_ops act_ife_ops; 40static struct tc_action_ops act_ife_ops;
41 41
diff --git a/net/sched/act_ipt.c b/net/sched/act_ipt.c
index ce7ea6c1c50d..992ef8d624f1 100644
--- a/net/sched/act_ipt.c
+++ b/net/sched/act_ipt.c
@@ -30,10 +30,10 @@
30 30
31#define IPT_TAB_MASK 15 31#define IPT_TAB_MASK 15
32 32
33static int ipt_net_id; 33static unsigned int ipt_net_id;
34static struct tc_action_ops act_ipt_ops; 34static struct tc_action_ops act_ipt_ops;
35 35
36static int xt_net_id; 36static unsigned int xt_net_id;
37static struct tc_action_ops act_xt_ops; 37static struct tc_action_ops act_xt_ops;
38 38
39static int ipt_init_target(struct xt_entry_target *t, char *table, 39static int ipt_init_target(struct xt_entry_target *t, char *table,
diff --git a/net/sched/act_mirred.c b/net/sched/act_mirred.c
index 6073a1132725..b2d417b8f46c 100644
--- a/net/sched/act_mirred.c
+++ b/net/sched/act_mirred.c
@@ -70,7 +70,7 @@ static const struct nla_policy mirred_policy[TCA_MIRRED_MAX + 1] = {
70 [TCA_MIRRED_PARMS] = { .len = sizeof(struct tc_mirred) }, 70 [TCA_MIRRED_PARMS] = { .len = sizeof(struct tc_mirred) },
71}; 71};
72 72
73static int mirred_net_id; 73static unsigned int mirred_net_id;
74static struct tc_action_ops act_mirred_ops; 74static struct tc_action_ops act_mirred_ops;
75 75
76static bool dev_is_mac_header_xmit(const struct net_device *dev) 76static bool dev_is_mac_header_xmit(const struct net_device *dev)
diff --git a/net/sched/act_nat.c b/net/sched/act_nat.c
index 8e8b0cc30704..9b6aec665495 100644
--- a/net/sched/act_nat.c
+++ b/net/sched/act_nat.c
@@ -31,7 +31,7 @@
31 31
32#define NAT_TAB_MASK 15 32#define NAT_TAB_MASK 15
33 33
34static int nat_net_id; 34static unsigned int nat_net_id;
35static struct tc_action_ops act_nat_ops; 35static struct tc_action_ops act_nat_ops;
36 36
37static const struct nla_policy nat_policy[TCA_NAT_MAX + 1] = { 37static const struct nla_policy nat_policy[TCA_NAT_MAX + 1] = {
diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c
index b54d56d4959b..eda322045e75 100644
--- a/net/sched/act_pedit.c
+++ b/net/sched/act_pedit.c
@@ -25,7 +25,7 @@
25 25
26#define PEDIT_TAB_MASK 15 26#define PEDIT_TAB_MASK 15
27 27
28static int pedit_net_id; 28static unsigned int pedit_net_id;
29static struct tc_action_ops act_pedit_ops; 29static struct tc_action_ops act_pedit_ops;
30 30
31static const struct nla_policy pedit_policy[TCA_PEDIT_MAX + 1] = { 31static const struct nla_policy pedit_policy[TCA_PEDIT_MAX + 1] = {
diff --git a/net/sched/act_police.c b/net/sched/act_police.c
index d1bd248fe146..c990b73a6c85 100644
--- a/net/sched/act_police.c
+++ b/net/sched/act_police.c
@@ -55,7 +55,7 @@ struct tc_police_compat {
55 55
56/* Each policer is serialized by its individual spinlock */ 56/* Each policer is serialized by its individual spinlock */
57 57
58static int police_net_id; 58static unsigned int police_net_id;
59static struct tc_action_ops act_police_ops; 59static struct tc_action_ops act_police_ops;
60 60
61static int tcf_act_police_walker(struct net *net, struct sk_buff *skb, 61static int tcf_act_police_walker(struct net *net, struct sk_buff *skb,
diff --git a/net/sched/act_simple.c b/net/sched/act_simple.c
index 289af6f9bb3b..823a73ad0c60 100644
--- a/net/sched/act_simple.c
+++ b/net/sched/act_simple.c
@@ -26,7 +26,7 @@
26 26
27#define SIMP_TAB_MASK 7 27#define SIMP_TAB_MASK 7
28 28
29static int simp_net_id; 29static unsigned int simp_net_id;
30static struct tc_action_ops act_simp_ops; 30static struct tc_action_ops act_simp_ops;
31 31
32#define SIMP_MAX_DATA 32 32#define SIMP_MAX_DATA 32
diff --git a/net/sched/act_skbedit.c b/net/sched/act_skbedit.c
index 024f3a3afeff..06ccae3c12ee 100644
--- a/net/sched/act_skbedit.c
+++ b/net/sched/act_skbedit.c
@@ -29,7 +29,7 @@
29 29
30#define SKBEDIT_TAB_MASK 15 30#define SKBEDIT_TAB_MASK 15
31 31
32static int skbedit_net_id; 32static unsigned int skbedit_net_id;
33static struct tc_action_ops act_skbedit_ops; 33static struct tc_action_ops act_skbedit_ops;
34 34
35static int tcf_skbedit(struct sk_buff *skb, const struct tc_action *a, 35static int tcf_skbedit(struct sk_buff *skb, const struct tc_action *a,
diff --git a/net/sched/act_skbmod.c b/net/sched/act_skbmod.c
index e7d96381c908..3b7074e23024 100644
--- a/net/sched/act_skbmod.c
+++ b/net/sched/act_skbmod.c
@@ -22,7 +22,7 @@
22 22
23#define SKBMOD_TAB_MASK 15 23#define SKBMOD_TAB_MASK 15
24 24
25static int skbmod_net_id; 25static unsigned int skbmod_net_id;
26static struct tc_action_ops act_skbmod_ops; 26static struct tc_action_ops act_skbmod_ops;
27 27
28#define MAX_EDIT_LEN ETH_HLEN 28#define MAX_EDIT_LEN ETH_HLEN
diff --git a/net/sched/act_tunnel_key.c b/net/sched/act_tunnel_key.c
index edc720f11687..7af712526f01 100644
--- a/net/sched/act_tunnel_key.c
+++ b/net/sched/act_tunnel_key.c
@@ -22,7 +22,7 @@
22 22
23#define TUNNEL_KEY_TAB_MASK 15 23#define TUNNEL_KEY_TAB_MASK 15
24 24
25static int tunnel_key_net_id; 25static unsigned int tunnel_key_net_id;
26static struct tc_action_ops act_tunnel_key_ops; 26static struct tc_action_ops act_tunnel_key_ops;
27 27
28static int tunnel_key_act(struct sk_buff *skb, const struct tc_action *a, 28static int tunnel_key_act(struct sk_buff *skb, const struct tc_action *a,
diff --git a/net/sched/act_vlan.c b/net/sched/act_vlan.c
index b57fcbcefea1..19e0dba305ce 100644
--- a/net/sched/act_vlan.c
+++ b/net/sched/act_vlan.c
@@ -21,7 +21,7 @@
21 21
22#define VLAN_TAB_MASK 15 22#define VLAN_TAB_MASK 15
23 23
24static int vlan_net_id; 24static unsigned int vlan_net_id;
25static struct tc_action_ops act_vlan_ops; 25static struct tc_action_ops act_vlan_ops;
26 26
27static int tcf_vlan(struct sk_buff *skb, const struct tc_action *a, 27static int tcf_vlan(struct sk_buff *skb, const struct tc_action *a,
diff --git a/net/sunrpc/netns.h b/net/sunrpc/netns.h
index df5826876535..394ce523174c 100644
--- a/net/sunrpc/netns.h
+++ b/net/sunrpc/netns.h
@@ -34,7 +34,7 @@ struct sunrpc_net {
34 struct proc_dir_entry *use_gssp_proc; 34 struct proc_dir_entry *use_gssp_proc;
35}; 35};
36 36
37extern int sunrpc_net_id; 37extern unsigned int sunrpc_net_id;
38 38
39int ip_map_cache_create(struct net *); 39int ip_map_cache_create(struct net *);
40void ip_map_cache_destroy(struct net *); 40void ip_map_cache_destroy(struct net *);
diff --git a/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c
index ee5d3d253102..d1c330a7953a 100644
--- a/net/sunrpc/sunrpc_syms.c
+++ b/net/sunrpc/sunrpc_syms.c
@@ -24,7 +24,7 @@
24 24
25#include "netns.h" 25#include "netns.h"
26 26
27int sunrpc_net_id; 27unsigned int sunrpc_net_id;
28EXPORT_SYMBOL_GPL(sunrpc_net_id); 28EXPORT_SYMBOL_GPL(sunrpc_net_id);
29 29
30static __net_init int sunrpc_init_net(struct net *net) 30static __net_init int sunrpc_init_net(struct net *net)
diff --git a/net/tipc/core.c b/net/tipc/core.c
index 236b043a4156..0b982d048fb9 100644
--- a/net/tipc/core.c
+++ b/net/tipc/core.c
@@ -47,7 +47,7 @@
47#include <linux/module.h> 47#include <linux/module.h>
48 48
49/* configurable TIPC parameters */ 49/* configurable TIPC parameters */
50int tipc_net_id __read_mostly; 50unsigned int tipc_net_id __read_mostly;
51int sysctl_tipc_rmem[3] __read_mostly; /* min/default/max */ 51int sysctl_tipc_rmem[3] __read_mostly; /* min/default/max */
52 52
53static int __net_init tipc_init_net(struct net *net) 53static int __net_init tipc_init_net(struct net *net)
diff --git a/net/tipc/core.h b/net/tipc/core.h
index a1845fb27d80..5cc5398be722 100644
--- a/net/tipc/core.h
+++ b/net/tipc/core.h
@@ -74,7 +74,7 @@ struct tipc_monitor;
74#define MAX_BEARERS 3 74#define MAX_BEARERS 3
75#define TIPC_DEF_MON_THRESHOLD 32 75#define TIPC_DEF_MON_THRESHOLD 32
76 76
77extern int tipc_net_id __read_mostly; 77extern unsigned int tipc_net_id __read_mostly;
78extern int sysctl_tipc_rmem[3] __read_mostly; 78extern int sysctl_tipc_rmem[3] __read_mostly;
79extern int sysctl_tipc_named_timeout __read_mostly; 79extern int sysctl_tipc_named_timeout __read_mostly;
80 80