aboutsummaryrefslogtreecommitdiffstats
path: root/net/phonet/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/phonet/socket.c')
-rw-r--r--net/phonet/socket.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/phonet/socket.c b/net/phonet/socket.c
index 4c7eff30dfa9..89cfa9ce4939 100644
--- a/net/phonet/socket.c
+++ b/net/phonet/socket.c
@@ -58,7 +58,7 @@ static struct {
58 58
59void __init pn_sock_init(void) 59void __init pn_sock_init(void)
60{ 60{
61 unsigned i; 61 unsigned int i;
62 62
63 for (i = 0; i < PN_HASHSIZE; i++) 63 for (i = 0; i < PN_HASHSIZE; i++)
64 INIT_HLIST_HEAD(pnsocks.hlist + i); 64 INIT_HLIST_HEAD(pnsocks.hlist + i);
@@ -116,7 +116,7 @@ struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *spn)
116void pn_deliver_sock_broadcast(struct net *net, struct sk_buff *skb) 116void pn_deliver_sock_broadcast(struct net *net, struct sk_buff *skb)
117{ 117{
118 struct hlist_head *hlist = pnsocks.hlist; 118 struct hlist_head *hlist = pnsocks.hlist;
119 unsigned h; 119 unsigned int h;
120 120
121 rcu_read_lock(); 121 rcu_read_lock();
122 for (h = 0; h < PN_HASHSIZE; h++) { 122 for (h = 0; h < PN_HASHSIZE; h++) {
@@ -545,7 +545,7 @@ static struct sock *pn_sock_get_idx(struct seq_file *seq, loff_t pos)
545 struct hlist_head *hlist = pnsocks.hlist; 545 struct hlist_head *hlist = pnsocks.hlist;
546 struct hlist_node *node; 546 struct hlist_node *node;
547 struct sock *sknode; 547 struct sock *sknode;
548 unsigned h; 548 unsigned int h;
549 549
550 for (h = 0; h < PN_HASHSIZE; h++) { 550 for (h = 0; h < PN_HASHSIZE; h++) {
551 sk_for_each_rcu(sknode, node, hlist) { 551 sk_for_each_rcu(sknode, node, hlist) {
@@ -710,7 +710,7 @@ int pn_sock_unbind_res(struct sock *sk, u8 res)
710 710
711void pn_sock_unbind_all_res(struct sock *sk) 711void pn_sock_unbind_all_res(struct sock *sk)
712{ 712{
713 unsigned res, match = 0; 713 unsigned int res, match = 0;
714 714
715 mutex_lock(&resource_mutex); 715 mutex_lock(&resource_mutex);
716 for (res = 0; res < 256; res++) { 716 for (res = 0; res < 256; res++) {
@@ -732,7 +732,7 @@ void pn_sock_unbind_all_res(struct sock *sk)
732static struct sock **pn_res_get_idx(struct seq_file *seq, loff_t pos) 732static struct sock **pn_res_get_idx(struct seq_file *seq, loff_t pos)
733{ 733{
734 struct net *net = seq_file_net(seq); 734 struct net *net = seq_file_net(seq);
735 unsigned i; 735 unsigned int i;
736 736
737 if (!net_eq(net, &init_net)) 737 if (!net_eq(net, &init_net))
738 return NULL; 738 return NULL;
@@ -750,7 +750,7 @@ static struct sock **pn_res_get_idx(struct seq_file *seq, loff_t pos)
750static struct sock **pn_res_get_next(struct seq_file *seq, struct sock **sk) 750static struct sock **pn_res_get_next(struct seq_file *seq, struct sock **sk)
751{ 751{
752 struct net *net = seq_file_net(seq); 752 struct net *net = seq_file_net(seq);
753 unsigned i; 753 unsigned int i;
754 754
755 BUG_ON(!net_eq(net, &init_net)); 755 BUG_ON(!net_eq(net, &init_net));
756 756