aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2012-04-15 01:58:06 -0400
committerDavid S. Miller <davem@davemloft.net>2012-04-15 12:44:40 -0400
commit95c961747284a6b83a5e2d81240e214b0fa3464d (patch)
treec7be86a00db3605a48a03109fafcbe31039ca2e0
parent5e73ea1a31c3612aa6dfe44f864ca5b7b6a4cff9 (diff)
net: cleanup unsigned to unsigned int
Use of "unsigned int" is preferred to bare "unsigned" in net tree. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/linux/ip_vs.h12
-rw-r--r--include/linux/netdevice.h14
-rw-r--r--include/linux/netfilter/ipset/ip_set.h8
-rw-r--r--include/linux/netfilter/nf_conntrack_h323_types.h12
-rw-r--r--include/linux/netfilter/nfnetlink.h2
-rw-r--r--include/linux/socket.h4
-rw-r--r--include/net/addrconf.h2
-rw-r--r--include/net/af_unix.h2
-rw-r--r--include/net/compat.h8
-rw-r--r--include/net/dn.h2
-rw-r--r--include/net/dn_fib.h6
-rw-r--r--include/net/dn_route.h4
-rw-r--r--include/net/dst_ops.h2
-rw-r--r--include/net/icmp.h2
-rw-r--r--include/net/if_inet6.h2
-rw-r--r--include/net/ip6_route.h2
-rw-r--r--include/net/ip_fib.h4
-rw-r--r--include/net/ip_vs.h16
-rw-r--r--include/net/ipv6.h2
-rw-r--r--include/net/llc_c_ev.h2
-rw-r--r--include/net/neighbour.h4
-rw-r--r--include/net/netns/hash.h2
-rw-r--r--include/net/nfc/nfc.h2
-rw-r--r--include/net/pkt_sched.h2
-rw-r--r--include/net/route.h6
-rw-r--r--include/net/sctp/structs.h8
-rw-r--r--include/net/tcp.h2
-rw-r--r--include/net/udp.h2
-rw-r--r--include/net/wimax.h4
-rw-r--r--include/net/x25.h2
-rw-r--r--net/802/fc.c2
-rw-r--r--net/802/fddi.c2
-rw-r--r--net/802/hippi.c2
-rw-r--r--net/802/tr.c4
-rw-r--r--net/9p/client.c6
-rw-r--r--net/9p/trans_fd.c2
-rw-r--r--net/atm/br2684.c2
-rw-r--r--net/atm/mpoa_proc.c2
-rw-r--r--net/atm/signaling.c2
-rw-r--r--net/ax25/ax25_ip.c4
-rw-r--r--net/batman-adv/bat_sysfs.c6
-rw-r--r--net/bridge/br_forward.c2
-rw-r--r--net/bridge/br_multicast.c10
-rw-r--r--net/bridge/br_netlink.c2
-rw-r--r--net/bridge/br_private_stp.h7
-rw-r--r--net/bridge/br_stp.c4
-rw-r--r--net/bridge/br_stp_timer.c6
-rw-r--r--net/bridge/br_sysfs_br.c2
-rw-r--r--net/caif/caif_socket.c2
-rw-r--r--net/ceph/auth_x.h6
-rw-r--r--net/ceph/ceph_common.c4
-rw-r--r--net/ceph/ceph_hash.c6
-rw-r--r--net/ceph/crush/mapper.c8
-rw-r--r--net/ceph/debugfs.c6
-rw-r--r--net/ceph/messenger.c16
-rw-r--r--net/ceph/mon_client.c10
-rw-r--r--net/ceph/osd_client.c2
-rw-r--r--net/ceph/osdmap.c14
-rw-r--r--net/compat.c10
-rw-r--r--net/core/datagram.c6
-rw-r--r--net/core/dev.c7
-rw-r--r--net/core/filter.c2
-rw-r--r--net/core/neighbour.c2
-rw-r--r--net/core/net-sysfs.c8
-rw-r--r--net/core/pktgen.c20
-rw-r--r--net/core/rtnetlink.c6
-rw-r--r--net/core/skbuff.c2
-rw-r--r--net/core/sock.c2
-rw-r--r--net/dccp/ccids/ccid3.c12
-rw-r--r--net/dccp/dccp.h8
-rw-r--r--net/dccp/input.c10
-rw-r--r--net/decnet/af_decnet.c6
-rw-r--r--net/decnet/dn_fib.c5
-rw-r--r--net/decnet/dn_nsp_in.c2
-rw-r--r--net/decnet/dn_nsp_out.c4
-rw-r--r--net/decnet/dn_route.c18
-rw-r--r--net/decnet/dn_rules.c4
-rw-r--r--net/dns_resolver/dns_key.c2
-rw-r--r--net/dns_resolver/internal.h2
-rw-r--r--net/ethernet/eth.c2
-rw-r--r--net/ieee802154/6lowpan.c2
-rw-r--r--net/ieee802154/dgram.c6
-rw-r--r--net/ieee802154/raw.c2
-rw-r--r--net/ipv4/arp.c4
-rw-r--r--net/ipv4/devinet.c2
-rw-r--r--net/ipv4/fib_frontend.c10
-rw-r--r--net/ipv4/inet_connection_sock.c3
-rw-r--r--net/ipv4/inet_timewait_sock.c2
-rw-r--r--net/ipv4/ip_options.c2
-rw-r--r--net/ipv4/ip_sockglue.c4
-rw-r--r--net/ipv4/ipconfig.c2
-rw-r--r--net/ipv4/netfilter.c2
-rw-r--r--net/ipv4/netfilter/arp_tables.c2
-rw-r--r--net/ipv4/netfilter/ip_tables.c2
-rw-r--r--net/ipv4/netfilter/nf_nat_sip.c2
-rw-r--r--net/ipv4/ping.c8
-rw-r--r--net/ipv4/route.c20
-rw-r--r--net/ipv4/sysctl_net_ipv4.c2
-rw-r--r--net/ipv4/tcp.c8
-rw-r--r--net/ipv4/tcp_input.c2
-rw-r--r--net/ipv4/tcp_output.c24
-rw-r--r--net/ipv4/tcp_probe.c2
-rw-r--r--net/ipv4/udp.c2
-rw-r--r--net/ipv6/addrconf_core.c2
-rw-r--r--net/ipv6/datagram.c2
-rw-r--r--net/ipv6/ip6_flowlabel.c4
-rw-r--r--net/ipv6/ip6_tunnel.c2
-rw-r--r--net/ipv6/ipv6_sockglue.c2
-rw-r--r--net/ipv6/netfilter/ip6_tables.c2
-rw-r--r--net/ipv6/route.c11
-rw-r--r--net/ipv6/xfrm6_tunnel.c6
-rw-r--r--net/irda/ircomm/ircomm_tty_ioctl.c2
-rw-r--r--net/key/af_key.c4
-rw-r--r--net/l2tp/l2tp_core.h16
-rw-r--r--net/llc/af_llc.c2
-rw-r--r--net/netfilter/ipset/ip_set_core.c6
-rw-r--r--net/netfilter/ipvs/ip_vs_app.c2
-rw-r--r--net/netfilter/ipvs/ip_vs_conn.c34
-rw-r--r--net/netfilter/ipvs/ip_vs_core.c2
-rw-r--r--net/netfilter/ipvs/ip_vs_ctl.c26
-rw-r--r--net/netfilter/ipvs/ip_vs_dh.c2
-rw-r--r--net/netfilter/ipvs/ip_vs_ftp.c2
-rw-r--r--net/netfilter/ipvs/ip_vs_lblc.c6
-rw-r--r--net/netfilter/ipvs/ip_vs_lblcr.c6
-rw-r--r--net/netfilter/ipvs/ip_vs_proto.c12
-rw-r--r--net/netfilter/ipvs/ip_vs_sh.c2
-rw-r--r--net/netfilter/ipvs/ip_vs_sync.c4
-rw-r--r--net/netfilter/nf_conntrack_h323_main.c2
-rw-r--r--net/netfilter/nfnetlink.c2
-rw-r--r--net/netfilter/xt_recent.c2
-rw-r--r--net/netrom/nr_dev.c2
-rw-r--r--net/nfc/core.c4
-rw-r--r--net/nfc/nfc.h2
-rw-r--r--net/openvswitch/vport-netdev.c4
-rw-r--r--net/packet/af_packet.c2
-rw-r--r--net/phonet/af_phonet.c2
-rw-r--r--net/phonet/pep.c8
-rw-r--r--net/phonet/pn_dev.c2
-rw-r--r--net/phonet/socket.c12
-rw-r--r--net/phonet/sysctl.c3
-rw-r--r--net/rose/rose_dev.c2
-rw-r--r--net/rose/rose_subr.c2
-rw-r--r--net/rxrpc/af_rxrpc.c8
-rw-r--r--net/rxrpc/ar-ack.c6
-rw-r--r--net/rxrpc/ar-call.c4
-rw-r--r--net/rxrpc/ar-input.c2
-rw-r--r--net/rxrpc/ar-internal.h16
-rw-r--r--net/rxrpc/ar-key.c22
-rw-r--r--net/rxrpc/rxkad.c6
-rw-r--r--net/sctp/associola.c4
-rw-r--r--net/sctp/output.c4
-rw-r--r--net/sctp/outqueue.c2
-rw-r--r--net/sctp/sm_sideeffect.c4
-rw-r--r--net/sctp/sm_statefuns.c4
-rw-r--r--net/socket.c18
-rw-r--r--net/sunrpc/auth_gss/gss_krb5_mech.c2
-rw-r--r--net/sunrpc/cache.c2
-rw-r--r--net/sunrpc/timer.c6
-rw-r--r--net/sunrpc/xdr.c2
-rw-r--r--net/sunrpc/xprt.c2
-rw-r--r--net/tipc/link.c2
-rw-r--r--net/tipc/socket.c8
-rw-r--r--net/unix/af_unix.c21
-rw-r--r--net/wimax/stack.c5
-rw-r--r--net/wireless/wext-core.c6
-rw-r--r--net/x25/x25_facilities.c4
-rw-r--r--net/xfrm/xfrm_hash.h8
167 files changed, 461 insertions, 455 deletions
diff --git a/include/linux/ip_vs.h b/include/linux/ip_vs.h
index 4deb3834d62..be0ef3df4ac 100644
--- a/include/linux/ip_vs.h
+++ b/include/linux/ip_vs.h
@@ -125,8 +125,8 @@ struct ip_vs_service_user {
125 125
126 /* virtual service options */ 126 /* virtual service options */
127 char sched_name[IP_VS_SCHEDNAME_MAXLEN]; 127 char sched_name[IP_VS_SCHEDNAME_MAXLEN];
128 unsigned flags; /* virtual service flags */ 128 unsigned int flags; /* virtual service flags */
129 unsigned timeout; /* persistent timeout in sec */ 129 unsigned int timeout; /* persistent timeout in sec */
130 __be32 netmask; /* persistent netmask */ 130 __be32 netmask; /* persistent netmask */
131}; 131};
132 132
@@ -137,7 +137,7 @@ struct ip_vs_dest_user {
137 __be16 port; 137 __be16 port;
138 138
139 /* real server options */ 139 /* real server options */
140 unsigned conn_flags; /* connection flags */ 140 unsigned int conn_flags; /* connection flags */
141 int weight; /* destination weight */ 141 int weight; /* destination weight */
142 142
143 /* thresholds for active connections */ 143 /* thresholds for active connections */
@@ -187,8 +187,8 @@ struct ip_vs_service_entry {
187 187
188 /* service options */ 188 /* service options */
189 char sched_name[IP_VS_SCHEDNAME_MAXLEN]; 189 char sched_name[IP_VS_SCHEDNAME_MAXLEN];
190 unsigned flags; /* virtual service flags */ 190 unsigned int flags; /* virtual service flags */
191 unsigned timeout; /* persistent timeout */ 191 unsigned int timeout; /* persistent timeout */
192 __be32 netmask; /* persistent netmask */ 192 __be32 netmask; /* persistent netmask */
193 193
194 /* number of real servers */ 194 /* number of real servers */
@@ -202,7 +202,7 @@ struct ip_vs_service_entry {
202struct ip_vs_dest_entry { 202struct ip_vs_dest_entry {
203 __be32 addr; /* destination address */ 203 __be32 addr; /* destination address */
204 __be16 port; 204 __be16 port;
205 unsigned conn_flags; /* connection flags */ 205 unsigned int conn_flags; /* connection flags */
206 int weight; /* destination weight */ 206 int weight; /* destination weight */
207 207
208 __u32 u_threshold; /* upper threshold */ 208 __u32 u_threshold; /* upper threshold */
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 5cbaa20f165..d3122321d8b 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -288,7 +288,7 @@ struct hh_cache {
288struct header_ops { 288struct header_ops {
289 int (*create) (struct sk_buff *skb, struct net_device *dev, 289 int (*create) (struct sk_buff *skb, struct net_device *dev,
290 unsigned short type, const void *daddr, 290 unsigned short type, const void *daddr,
291 const void *saddr, unsigned len); 291 const void *saddr, unsigned int len);
292 int (*parse)(const struct sk_buff *skb, unsigned char *haddr); 292 int (*parse)(const struct sk_buff *skb, unsigned char *haddr);
293 int (*rebuild)(struct sk_buff *skb); 293 int (*rebuild)(struct sk_buff *skb);
294 int (*cache)(const struct neighbour *neigh, struct hh_cache *hh, __be16 type); 294 int (*cache)(const struct neighbour *neigh, struct hh_cache *hh, __be16 type);
@@ -1689,7 +1689,7 @@ static inline void *skb_gro_network_header(struct sk_buff *skb)
1689static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev, 1689static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev,
1690 unsigned short type, 1690 unsigned short type,
1691 const void *daddr, const void *saddr, 1691 const void *daddr, const void *saddr,
1692 unsigned len) 1692 unsigned int len)
1693{ 1693{
1694 if (!dev->header_ops || !dev->header_ops->create) 1694 if (!dev->header_ops || !dev->header_ops->create)
1695 return 0; 1695 return 0;
@@ -1740,7 +1740,7 @@ struct softnet_data {
1740 unsigned int input_queue_head; 1740 unsigned int input_queue_head;
1741 unsigned int input_queue_tail; 1741 unsigned int input_queue_tail;
1742#endif 1742#endif
1743 unsigned dropped; 1743 unsigned int dropped;
1744 struct sk_buff_head input_pkt_queue; 1744 struct sk_buff_head input_pkt_queue;
1745 struct napi_struct backlog; 1745 struct napi_struct backlog;
1746}; 1746};
@@ -1925,7 +1925,7 @@ static inline void netdev_sent_queue(struct net_device *dev, unsigned int bytes)
1925} 1925}
1926 1926
1927static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue, 1927static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue,
1928 unsigned pkts, unsigned bytes) 1928 unsigned int pkts, unsigned int bytes)
1929{ 1929{
1930#ifdef CONFIG_BQL 1930#ifdef CONFIG_BQL
1931 if (unlikely(!bytes)) 1931 if (unlikely(!bytes))
@@ -1949,7 +1949,7 @@ static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue,
1949} 1949}
1950 1950
1951static inline void netdev_completed_queue(struct net_device *dev, 1951static inline void netdev_completed_queue(struct net_device *dev,
1952 unsigned pkts, unsigned bytes) 1952 unsigned int pkts, unsigned int bytes)
1953{ 1953{
1954 netdev_tx_completed_queue(netdev_get_tx_queue(dev, 0), pkts, bytes); 1954 netdev_tx_completed_queue(netdev_get_tx_queue(dev, 0), pkts, bytes);
1955} 1955}
@@ -2144,9 +2144,9 @@ extern void netdev_rx_handler_unregister(struct net_device *dev);
2144extern bool dev_valid_name(const char *name); 2144extern bool dev_valid_name(const char *name);
2145extern int dev_ioctl(struct net *net, unsigned int cmd, void __user *); 2145extern int dev_ioctl(struct net *net, unsigned int cmd, void __user *);
2146extern int dev_ethtool(struct net *net, struct ifreq *); 2146extern int dev_ethtool(struct net *net, struct ifreq *);
2147extern unsigned dev_get_flags(const struct net_device *); 2147extern unsigned int dev_get_flags(const struct net_device *);
2148extern int __dev_change_flags(struct net_device *, unsigned int flags); 2148extern int __dev_change_flags(struct net_device *, unsigned int flags);
2149extern int dev_change_flags(struct net_device *, unsigned); 2149extern int dev_change_flags(struct net_device *, unsigned int);
2150extern void __dev_notify_flags(struct net_device *, unsigned int old_flags); 2150extern void __dev_notify_flags(struct net_device *, unsigned int old_flags);
2151extern int dev_change_name(struct net_device *, const char *); 2151extern int dev_change_name(struct net_device *, const char *);
2152extern int dev_set_alias(struct net_device *, const char *, size_t); 2152extern int dev_set_alias(struct net_device *, const char *, size_t);
diff --git a/include/linux/netfilter/ipset/ip_set.h b/include/linux/netfilter/ipset/ip_set.h
index d6d549cf1f2..2edc64cab73 100644
--- a/include/linux/netfilter/ipset/ip_set.h
+++ b/include/linux/netfilter/ipset/ip_set.h
@@ -478,8 +478,8 @@ union ip_set_name_index {
478 478
479#define IP_SET_OP_GET_BYNAME 0x00000006 /* Get set index by name */ 479#define IP_SET_OP_GET_BYNAME 0x00000006 /* Get set index by name */
480struct ip_set_req_get_set { 480struct ip_set_req_get_set {
481 unsigned op; 481 unsigned int op;
482 unsigned version; 482 unsigned int version;
483 union ip_set_name_index set; 483 union ip_set_name_index set;
484}; 484};
485 485
@@ -488,8 +488,8 @@ struct ip_set_req_get_set {
488 488
489#define IP_SET_OP_VERSION 0x00000100 /* Ask kernel version */ 489#define IP_SET_OP_VERSION 0x00000100 /* Ask kernel version */
490struct ip_set_req_version { 490struct ip_set_req_version {
491 unsigned op; 491 unsigned int op;
492 unsigned version; 492 unsigned int version;
493}; 493};
494 494
495#endif /*_IP_SET_H */ 495#endif /*_IP_SET_H */
diff --git a/include/linux/netfilter/nf_conntrack_h323_types.h b/include/linux/netfilter/nf_conntrack_h323_types.h
index f35b6b4801e..b0821f45fbe 100644
--- a/include/linux/netfilter/nf_conntrack_h323_types.h
+++ b/include/linux/netfilter/nf_conntrack_h323_types.h
@@ -7,12 +7,12 @@
7 7
8typedef struct TransportAddress_ipAddress { /* SEQUENCE */ 8typedef struct TransportAddress_ipAddress { /* SEQUENCE */
9 int options; /* No use */ 9 int options; /* No use */
10 unsigned ip; 10 unsigned int ip;
11} TransportAddress_ipAddress; 11} TransportAddress_ipAddress;
12 12
13typedef struct TransportAddress_ip6Address { /* SEQUENCE */ 13typedef struct TransportAddress_ip6Address { /* SEQUENCE */
14 int options; /* No use */ 14 int options; /* No use */
15 unsigned ip; 15 unsigned int ip;
16} TransportAddress_ip6Address; 16} TransportAddress_ip6Address;
17 17
18typedef struct TransportAddress { /* CHOICE */ 18typedef struct TransportAddress { /* CHOICE */
@@ -96,12 +96,12 @@ typedef struct DataType { /* CHOICE */
96 96
97typedef struct UnicastAddress_iPAddress { /* SEQUENCE */ 97typedef struct UnicastAddress_iPAddress { /* SEQUENCE */
98 int options; /* No use */ 98 int options; /* No use */
99 unsigned network; 99 unsigned int network;
100} UnicastAddress_iPAddress; 100} UnicastAddress_iPAddress;
101 101
102typedef struct UnicastAddress_iP6Address { /* SEQUENCE */ 102typedef struct UnicastAddress_iP6Address { /* SEQUENCE */
103 int options; /* No use */ 103 int options; /* No use */
104 unsigned network; 104 unsigned int network;
105} UnicastAddress_iP6Address; 105} UnicastAddress_iP6Address;
106 106
107typedef struct UnicastAddress { /* CHOICE */ 107typedef struct UnicastAddress { /* CHOICE */
@@ -698,7 +698,7 @@ typedef struct RegistrationRequest { /* SEQUENCE */
698 } options; 698 } options;
699 RegistrationRequest_callSignalAddress callSignalAddress; 699 RegistrationRequest_callSignalAddress callSignalAddress;
700 RegistrationRequest_rasAddress rasAddress; 700 RegistrationRequest_rasAddress rasAddress;
701 unsigned timeToLive; 701 unsigned int timeToLive;
702} RegistrationRequest; 702} RegistrationRequest;
703 703
704typedef struct RegistrationConfirm_callSignalAddress { /* SEQUENCE OF */ 704typedef struct RegistrationConfirm_callSignalAddress { /* SEQUENCE OF */
@@ -730,7 +730,7 @@ typedef struct RegistrationConfirm { /* SEQUENCE */
730 eRegistrationConfirm_genericData = (1 << 12), 730 eRegistrationConfirm_genericData = (1 << 12),
731 } options; 731 } options;
732 RegistrationConfirm_callSignalAddress callSignalAddress; 732 RegistrationConfirm_callSignalAddress callSignalAddress;
733 unsigned timeToLive; 733 unsigned int timeToLive;
734} RegistrationConfirm; 734} RegistrationConfirm;
735 735
736typedef struct UnregistrationRequest_callSignalAddress { /* SEQUENCE OF */ 736typedef struct UnregistrationRequest_callSignalAddress { /* SEQUENCE OF */
diff --git a/include/linux/netfilter/nfnetlink.h b/include/linux/netfilter/nfnetlink.h
index 6fd1f0d07e6..a1048c1587d 100644
--- a/include/linux/netfilter/nfnetlink.h
+++ b/include/linux/netfilter/nfnetlink.h
@@ -80,7 +80,7 @@ extern int nfnetlink_subsys_register(const struct nfnetlink_subsystem *n);
80extern int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n); 80extern int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n);
81 81
82extern int nfnetlink_has_listeners(struct net *net, unsigned int group); 82extern int nfnetlink_has_listeners(struct net *net, unsigned int group);
83extern int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, unsigned group, 83extern int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, unsigned int group,
84 int echo, gfp_t flags); 84 int echo, gfp_t flags);
85extern int nfnetlink_set_err(struct net *net, u32 pid, u32 group, int error); 85extern int nfnetlink_set_err(struct net *net, u32 pid, u32 group, int error);
86extern int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u_int32_t pid, int flags); 86extern int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u_int32_t pid, int flags);
diff --git a/include/linux/socket.h b/include/linux/socket.h
index b84bbd48b87..25d6322fb63 100644
--- a/include/linux/socket.h
+++ b/include/linux/socket.h
@@ -68,13 +68,13 @@ struct msghdr {
68 __kernel_size_t msg_iovlen; /* Number of blocks */ 68 __kernel_size_t msg_iovlen; /* Number of blocks */
69 void * msg_control; /* Per protocol magic (eg BSD file descriptor passing) */ 69 void * msg_control; /* Per protocol magic (eg BSD file descriptor passing) */
70 __kernel_size_t msg_controllen; /* Length of cmsg list */ 70 __kernel_size_t msg_controllen; /* Length of cmsg list */
71 unsigned msg_flags; 71 unsigned int msg_flags;
72}; 72};
73 73
74/* For recvmmsg/sendmmsg */ 74/* For recvmmsg/sendmmsg */
75struct mmsghdr { 75struct mmsghdr {
76 struct msghdr msg_hdr; 76 struct msghdr msg_hdr;
77 unsigned msg_len; 77 unsigned int msg_len;
78}; 78};
79 79
80/* 80/*
diff --git a/include/net/addrconf.h b/include/net/addrconf.h
index 757a17638b1..27f450ba951 100644
--- a/include/net/addrconf.h
+++ b/include/net/addrconf.h
@@ -92,7 +92,7 @@ extern void addrconf_leave_solict(struct inet6_dev *idev,
92 const struct in6_addr *addr); 92 const struct in6_addr *addr);
93 93
94static inline unsigned long addrconf_timeout_fixup(u32 timeout, 94static inline unsigned long addrconf_timeout_fixup(u32 timeout,
95 unsigned unit) 95 unsigned int unit)
96{ 96{
97 if (timeout == 0xffffffff) 97 if (timeout == 0xffffffff)
98 return ~0UL; 98 return ~0UL;
diff --git a/include/net/af_unix.h b/include/net/af_unix.h
index ca68e2cef23..2ee33da36a7 100644
--- a/include/net/af_unix.h
+++ b/include/net/af_unix.h
@@ -22,7 +22,7 @@ extern struct hlist_head unix_socket_table[UNIX_HASH_SIZE + 1];
22struct unix_address { 22struct unix_address {
23 atomic_t refcnt; 23 atomic_t refcnt;
24 int len; 24 int len;
25 unsigned hash; 25 unsigned int hash;
26 struct sockaddr_un name[0]; 26 struct sockaddr_un name[0];
27}; 27};
28 28
diff --git a/include/net/compat.h b/include/net/compat.h
index a974ae92d18..6e956532498 100644
--- a/include/net/compat.h
+++ b/include/net/compat.h
@@ -42,12 +42,12 @@ extern int compat_sock_get_timestampns(struct sock *, struct timespec __user *);
42 42
43extern int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *); 43extern int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *);
44extern int verify_compat_iovec(struct msghdr *, struct iovec *, struct sockaddr_storage *, int); 44extern int verify_compat_iovec(struct msghdr *, struct iovec *, struct sockaddr_storage *, int);
45extern asmlinkage long compat_sys_sendmsg(int,struct compat_msghdr __user *,unsigned); 45extern asmlinkage long compat_sys_sendmsg(int,struct compat_msghdr __user *,unsigned int);
46extern asmlinkage long compat_sys_sendmmsg(int, struct compat_mmsghdr __user *, 46extern asmlinkage long compat_sys_sendmmsg(int, struct compat_mmsghdr __user *,
47 unsigned, unsigned); 47 unsigned int, unsigned int);
48extern asmlinkage long compat_sys_recvmsg(int,struct compat_msghdr __user *,unsigned); 48extern asmlinkage long compat_sys_recvmsg(int,struct compat_msghdr __user *,unsigned int);
49extern asmlinkage long compat_sys_recvmmsg(int, struct compat_mmsghdr __user *, 49extern asmlinkage long compat_sys_recvmmsg(int, struct compat_mmsghdr __user *,
50 unsigned, unsigned, 50 unsigned int, unsigned int,
51 struct compat_timespec __user *); 51 struct compat_timespec __user *);
52extern asmlinkage long compat_sys_getsockopt(int, int, int, char __user *, int __user *); 52extern asmlinkage long compat_sys_getsockopt(int, int, int, char __user *, int __user *);
53extern int put_cmsg_compat(struct msghdr*, int, int, int, void *); 53extern int put_cmsg_compat(struct msghdr*, int, int, int, void *);
diff --git a/include/net/dn.h b/include/net/dn.h
index 814af0b9387..c88bf4ebd33 100644
--- a/include/net/dn.h
+++ b/include/net/dn.h
@@ -199,7 +199,7 @@ static inline void dn_sk_ports_copy(struct flowidn *fld, struct dn_scp *scp)
199 fld->fld_dport = scp->addrrem; 199 fld->fld_dport = scp->addrrem;
200} 200}
201 201
202extern unsigned dn_mss_from_pmtu(struct net_device *dev, int mtu); 202extern unsigned int dn_mss_from_pmtu(struct net_device *dev, int mtu);
203 203
204#define DN_MENUVER_ACC 0x01 204#define DN_MENUVER_ACC 0x01
205#define DN_MENUVER_USR 0x02 205#define DN_MENUVER_USR 0x02
diff --git a/include/net/dn_fib.h b/include/net/dn_fib.h
index 782ef7cb493..1ee9d4bda30 100644
--- a/include/net/dn_fib.h
+++ b/include/net/dn_fib.h
@@ -31,7 +31,7 @@ struct dn_fib_res {
31 31
32struct dn_fib_nh { 32struct dn_fib_nh {
33 struct net_device *nh_dev; 33 struct net_device *nh_dev;
34 unsigned nh_flags; 34 unsigned int nh_flags;
35 unsigned char nh_scope; 35 unsigned char nh_scope;
36 int nh_weight; 36 int nh_weight;
37 int nh_power; 37 int nh_power;
@@ -45,7 +45,7 @@ struct dn_fib_info {
45 int fib_treeref; 45 int fib_treeref;
46 atomic_t fib_clntref; 46 atomic_t fib_clntref;
47 int fib_dead; 47 int fib_dead;
48 unsigned fib_flags; 48 unsigned int fib_flags;
49 int fib_protocol; 49 int fib_protocol;
50 __le16 fib_prefsrc; 50 __le16 fib_prefsrc;
51 __u32 fib_priority; 51 __u32 fib_priority;
@@ -140,7 +140,7 @@ extern void dn_fib_table_cleanup(void);
140 */ 140 */
141extern void dn_fib_rules_init(void); 141extern void dn_fib_rules_init(void);
142extern void dn_fib_rules_cleanup(void); 142extern void dn_fib_rules_cleanup(void);
143extern unsigned dnet_addr_type(__le16 addr); 143extern unsigned int dnet_addr_type(__le16 addr);
144extern int dn_fib_lookup(struct flowidn *fld, struct dn_fib_res *res); 144extern int dn_fib_lookup(struct flowidn *fld, struct dn_fib_res *res);
145 145
146extern int dn_fib_dump(struct sk_buff *skb, struct netlink_callback *cb); 146extern int dn_fib_dump(struct sk_buff *skb, struct netlink_callback *cb);
diff --git a/include/net/dn_route.h b/include/net/dn_route.h
index 81712cfa1dd..c507e05d172 100644
--- a/include/net/dn_route.h
+++ b/include/net/dn_route.h
@@ -76,8 +76,8 @@ struct dn_route {
76 __le16 rt_src_map; 76 __le16 rt_src_map;
77 __le16 rt_dst_map; 77 __le16 rt_dst_map;
78 78
79 unsigned rt_flags; 79 unsigned int rt_flags;
80 unsigned rt_type; 80 unsigned int rt_type;
81}; 81};
82 82
83static inline bool dn_is_input_route(struct dn_route *rt) 83static inline bool dn_is_input_route(struct dn_route *rt)
diff --git a/include/net/dst_ops.h b/include/net/dst_ops.h
index e1c2ee0eef4..3682a0a076c 100644
--- a/include/net/dst_ops.h
+++ b/include/net/dst_ops.h
@@ -12,7 +12,7 @@ struct sk_buff;
12struct dst_ops { 12struct dst_ops {
13 unsigned short family; 13 unsigned short family;
14 __be16 protocol; 14 __be16 protocol;
15 unsigned gc_thresh; 15 unsigned int gc_thresh;
16 16
17 int (*gc)(struct dst_ops *ops); 17 int (*gc)(struct dst_ops *ops);
18 struct dst_entry * (*check)(struct dst_entry *, __u32 cookie); 18 struct dst_entry * (*check)(struct dst_entry *, __u32 cookie);
diff --git a/include/net/icmp.h b/include/net/icmp.h
index ce70a581d95..9ac2524d140 100644
--- a/include/net/icmp.h
+++ b/include/net/icmp.h
@@ -25,7 +25,7 @@
25 25
26struct icmp_err { 26struct icmp_err {
27 int errno; 27 int errno;
28 unsigned fatal:1; 28 unsigned int fatal:1;
29}; 29};
30 30
31extern const struct icmp_err icmp_err_convert[]; 31extern const struct icmp_err icmp_err_convert[];
diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h
index 51a7031b4aa..50f325fd069 100644
--- a/include/net/if_inet6.h
+++ b/include/net/if_inet6.h
@@ -120,7 +120,7 @@ struct ifmcaddr6 {
120 unsigned char mca_crcount; 120 unsigned char mca_crcount;
121 unsigned long mca_sfcount[2]; 121 unsigned long mca_sfcount[2];
122 struct timer_list mca_timer; 122 struct timer_list mca_timer;
123 unsigned mca_flags; 123 unsigned int mca_flags;
124 int mca_users; 124 int mca_users;
125 atomic_t mca_refcnt; 125 atomic_t mca_refcnt;
126 spinlock_t mca_lock; 126 spinlock_t mca_lock;
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h
index 2ad92ca4e6f..c062b6773cc 100644
--- a/include/net/ip6_route.h
+++ b/include/net/ip6_route.h
@@ -146,7 +146,7 @@ struct rt6_rtnl_dump_arg {
146 146
147extern int rt6_dump_route(struct rt6_info *rt, void *p_arg); 147extern int rt6_dump_route(struct rt6_info *rt, void *p_arg);
148extern void rt6_ifdown(struct net *net, struct net_device *dev); 148extern void rt6_ifdown(struct net *net, struct net_device *dev);
149extern void rt6_mtu_change(struct net_device *dev, unsigned mtu); 149extern void rt6_mtu_change(struct net_device *dev, unsigned int mtu);
150extern void rt6_remove_prefsrc(struct inet6_ifaddr *ifp); 150extern void rt6_remove_prefsrc(struct inet6_ifaddr *ifp);
151 151
152 152
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h
index 10422ef14e2..78df0866cc3 100644
--- a/include/net/ip_fib.h
+++ b/include/net/ip_fib.h
@@ -49,7 +49,7 @@ struct fib_nh {
49 struct net_device *nh_dev; 49 struct net_device *nh_dev;
50 struct hlist_node nh_hash; 50 struct hlist_node nh_hash;
51 struct fib_info *nh_parent; 51 struct fib_info *nh_parent;
52 unsigned nh_flags; 52 unsigned int nh_flags;
53 unsigned char nh_scope; 53 unsigned char nh_scope;
54#ifdef CONFIG_IP_ROUTE_MULTIPATH 54#ifdef CONFIG_IP_ROUTE_MULTIPATH
55 int nh_weight; 55 int nh_weight;
@@ -74,7 +74,7 @@ struct fib_info {
74 struct net *fib_net; 74 struct net *fib_net;
75 int fib_treeref; 75 int fib_treeref;
76 atomic_t fib_clntref; 76 atomic_t fib_clntref;
77 unsigned fib_flags; 77 unsigned int fib_flags;
78 unsigned char fib_dead; 78 unsigned char fib_dead;
79 unsigned char fib_protocol; 79 unsigned char fib_protocol;
80 unsigned char fib_scope; 80 unsigned char fib_scope;
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 2bdee51ba30..a903a828bce 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -580,8 +580,8 @@ struct ip_vs_service_user_kern {
580 /* virtual service options */ 580 /* virtual service options */
581 char *sched_name; 581 char *sched_name;
582 char *pe_name; 582 char *pe_name;
583 unsigned flags; /* virtual service flags */ 583 unsigned int flags; /* virtual service flags */
584 unsigned timeout; /* persistent timeout in sec */ 584 unsigned int timeout; /* persistent timeout in sec */
585 u32 netmask; /* persistent netmask */ 585 u32 netmask; /* persistent netmask */
586}; 586};
587 587
@@ -592,7 +592,7 @@ struct ip_vs_dest_user_kern {
592 u16 port; 592 u16 port;
593 593
594 /* real server options */ 594 /* real server options */
595 unsigned conn_flags; /* connection flags */ 595 unsigned int conn_flags; /* connection flags */
596 int weight; /* destination weight */ 596 int weight; /* destination weight */
597 597
598 /* thresholds for active connections */ 598 /* thresholds for active connections */
@@ -616,8 +616,8 @@ struct ip_vs_service {
616 union nf_inet_addr addr; /* IP address for virtual service */ 616 union nf_inet_addr addr; /* IP address for virtual service */
617 __be16 port; /* port number for the service */ 617 __be16 port; /* port number for the service */
618 __u32 fwmark; /* firewall mark of the service */ 618 __u32 fwmark; /* firewall mark of the service */
619 unsigned flags; /* service status flags */ 619 unsigned int flags; /* service status flags */
620 unsigned timeout; /* persistent timeout in ticks */ 620 unsigned int timeout; /* persistent timeout in ticks */
621 __be32 netmask; /* grouping granularity */ 621 __be32 netmask; /* grouping granularity */
622 struct net *net; 622 struct net *net;
623 623
@@ -647,7 +647,7 @@ struct ip_vs_dest {
647 u16 af; /* address family */ 647 u16 af; /* address family */
648 __be16 port; /* port number of the server */ 648 __be16 port; /* port number of the server */
649 union nf_inet_addr addr; /* IP address of the server */ 649 union nf_inet_addr addr; /* IP address of the server */
650 volatile unsigned flags; /* dest status flags */ 650 volatile unsigned int flags; /* dest status flags */
651 atomic_t conn_flags; /* flags to copy to conn */ 651 atomic_t conn_flags; /* flags to copy to conn */
652 atomic_t weight; /* server weight */ 652 atomic_t weight; /* server weight */
653 653
@@ -953,7 +953,7 @@ static inline int sysctl_sync_ver(struct netns_ipvs *ipvs)
953 * IPVS core functions 953 * IPVS core functions
954 * (from ip_vs_core.c) 954 * (from ip_vs_core.c)
955 */ 955 */
956extern const char *ip_vs_proto_name(unsigned proto); 956extern const char *ip_vs_proto_name(unsigned int proto);
957extern void ip_vs_init_hash_table(struct list_head *table, int rows); 957extern void ip_vs_init_hash_table(struct list_head *table, int rows);
958#define IP_VS_INIT_HASH_TABLE(t) ip_vs_init_hash_table((t), ARRAY_SIZE((t))) 958#define IP_VS_INIT_HASH_TABLE(t) ip_vs_init_hash_table((t), ARRAY_SIZE((t)))
959 959
@@ -1014,7 +1014,7 @@ extern void ip_vs_conn_fill_cport(struct ip_vs_conn *cp, __be16 cport);
1014 1014
1015struct ip_vs_conn *ip_vs_conn_new(const struct ip_vs_conn_param *p, 1015struct ip_vs_conn *ip_vs_conn_new(const struct ip_vs_conn_param *p,
1016 const union nf_inet_addr *daddr, 1016 const union nf_inet_addr *daddr,
1017 __be16 dport, unsigned flags, 1017 __be16 dport, unsigned int flags,
1018 struct ip_vs_dest *dest, __u32 fwmark); 1018 struct ip_vs_dest *dest, __u32 fwmark);
1019extern void ip_vs_conn_expire_now(struct ip_vs_conn *cp); 1019extern void ip_vs_conn_expire_now(struct ip_vs_conn *cp);
1020 1020
diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index e4170a22fc6..2d3fca37c6a 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -345,7 +345,7 @@ static inline int ipv6_addr_equal(const struct in6_addr *a1,
345static inline int __ipv6_prefix_equal(const __be32 *a1, const __be32 *a2, 345static inline int __ipv6_prefix_equal(const __be32 *a1, const __be32 *a2,
346 unsigned int prefixlen) 346 unsigned int prefixlen)
347{ 347{
348 unsigned pdw, pbi; 348 unsigned int pdw, pbi;
349 349
350 /* check complete u32 in prefix */ 350 /* check complete u32 in prefix */
351 pdw = prefixlen >> 5; 351 pdw = prefixlen >> 5;
diff --git a/include/net/llc_c_ev.h b/include/net/llc_c_ev.h
index 23a409381fa..6ca3113df39 100644
--- a/include/net/llc_c_ev.h
+++ b/include/net/llc_c_ev.h
@@ -264,6 +264,6 @@ extern int llc_conn_ev_qlfy_set_status_rst_done(struct sock *sk,
264static __inline__ int llc_conn_space(struct sock *sk, struct sk_buff *skb) 264static __inline__ int llc_conn_space(struct sock *sk, struct sk_buff *skb)
265{ 265{
266 return atomic_read(&sk->sk_rmem_alloc) + skb->truesize < 266 return atomic_read(&sk->sk_rmem_alloc) + skb->truesize <
267 (unsigned)sk->sk_rcvbuf; 267 (unsigned int)sk->sk_rcvbuf;
268} 268}
269#endif /* LLC_C_EV_H */ 269#endif /* LLC_C_EV_H */
diff --git a/include/net/neighbour.h b/include/net/neighbour.h
index 63ebd70ba69..6cdfeedb650 100644
--- a/include/net/neighbour.h
+++ b/include/net/neighbour.h
@@ -322,7 +322,7 @@ static inline int neigh_event_send(struct neighbour *neigh, struct sk_buff *skb)
322#ifdef CONFIG_BRIDGE_NETFILTER 322#ifdef CONFIG_BRIDGE_NETFILTER
323static inline int neigh_hh_bridge(struct hh_cache *hh, struct sk_buff *skb) 323static inline int neigh_hh_bridge(struct hh_cache *hh, struct sk_buff *skb)
324{ 324{
325 unsigned seq, hh_alen; 325 unsigned int seq, hh_alen;
326 326
327 do { 327 do {
328 seq = read_seqbegin(&hh->hh_lock); 328 seq = read_seqbegin(&hh->hh_lock);
@@ -335,7 +335,7 @@ static inline int neigh_hh_bridge(struct hh_cache *hh, struct sk_buff *skb)
335 335
336static inline int neigh_hh_output(struct hh_cache *hh, struct sk_buff *skb) 336static inline int neigh_hh_output(struct hh_cache *hh, struct sk_buff *skb)
337{ 337{
338 unsigned seq; 338 unsigned int seq;
339 int hh_len; 339 int hh_len;
340 340
341 do { 341 do {
diff --git a/include/net/netns/hash.h b/include/net/netns/hash.h
index 548d78f2cc4..c06ac58ca10 100644
--- a/include/net/netns/hash.h
+++ b/include/net/netns/hash.h
@@ -5,7 +5,7 @@
5 5
6struct net; 6struct net;
7 7
8static inline unsigned net_hash_mix(struct net *net) 8static inline unsigned int net_hash_mix(struct net *net)
9{ 9{
10#ifdef CONFIG_NET_NS 10#ifdef CONFIG_NET_NS
11 /* 11 /*
diff --git a/include/net/nfc/nfc.h b/include/net/nfc/nfc.h
index bac070bf351..79955a238cc 100644
--- a/include/net/nfc/nfc.h
+++ b/include/net/nfc/nfc.h
@@ -86,7 +86,7 @@ struct nfc_genl_data {
86}; 86};
87 87
88struct nfc_dev { 88struct nfc_dev {
89 unsigned idx; 89 unsigned int idx;
90 struct nfc_target *targets; 90 struct nfc_target *targets;
91 int n_targets; 91 int n_targets;
92 int targets_generation; 92 int targets_generation;
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h
index fffdc603f4c..66f5ac370f9 100644
--- a/include/net/pkt_sched.h
+++ b/include/net/pkt_sched.h
@@ -107,7 +107,7 @@ extern int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp,
107/* Calculate maximal size of packet seen by hard_start_xmit 107/* Calculate maximal size of packet seen by hard_start_xmit
108 routine of this device. 108 routine of this device.
109 */ 109 */
110static inline unsigned psched_mtu(const struct net_device *dev) 110static inline unsigned int psched_mtu(const struct net_device *dev)
111{ 111{
112 return dev->mtu + dev->hard_header_len; 112 return dev->mtu + dev->hard_header_len;
113} 113}
diff --git a/include/net/route.h b/include/net/route.h
index b1c0d5b564c..ed2b78e2375 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -50,7 +50,7 @@ struct rtable {
50 __be32 rt_key_src; 50 __be32 rt_key_src;
51 51
52 int rt_genid; 52 int rt_genid;
53 unsigned rt_flags; 53 unsigned int rt_flags;
54 __u16 rt_type; 54 __u16 rt_type;
55 __u8 rt_key_tos; 55 __u8 rt_key_tos;
56 56
@@ -185,8 +185,8 @@ extern unsigned short ip_rt_frag_needed(struct net *net, const struct iphdr *iph
185 unsigned short new_mtu, struct net_device *dev); 185 unsigned short new_mtu, struct net_device *dev);
186extern void ip_rt_send_redirect(struct sk_buff *skb); 186extern void ip_rt_send_redirect(struct sk_buff *skb);
187 187
188extern unsigned inet_addr_type(struct net *net, __be32 addr); 188extern unsigned int inet_addr_type(struct net *net, __be32 addr);
189extern unsigned inet_dev_addr_type(struct net *net, const struct net_device *dev, __be32 addr); 189extern unsigned int inet_dev_addr_type(struct net *net, const struct net_device *dev, __be32 addr);
190extern void ip_rt_multicast_event(struct in_device *); 190extern void ip_rt_multicast_event(struct in_device *);
191extern int ip_rt_ioctl(struct net *, unsigned int cmd, void __user *arg); 191extern int ip_rt_ioctl(struct net *, unsigned int cmd, void __user *arg);
192extern void ip_rt_get_source(u8 *src, struct sk_buff *skb, struct rtable *rt); 192extern void ip_rt_get_source(u8 *src, struct sk_buff *skb, struct rtable *rt);
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index 88949a99453..e4652fe5895 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -1145,10 +1145,10 @@ struct sctp_outq {
1145 /* Data pending that has never been transmitted. */ 1145 /* Data pending that has never been transmitted. */
1146 struct list_head out_chunk_list; 1146 struct list_head out_chunk_list;
1147 1147
1148 unsigned out_qlen; /* Total length of queued data chunks. */ 1148 unsigned int out_qlen; /* Total length of queued data chunks. */
1149 1149
1150 /* Error of send failed, may used in SCTP_SEND_FAILED event. */ 1150 /* Error of send failed, may used in SCTP_SEND_FAILED event. */
1151 unsigned error; 1151 unsigned int error;
1152 1152
1153 /* These are control chunks we want to send. */ 1153 /* These are control chunks we want to send. */
1154 struct list_head control_chunk_list; 1154 struct list_head control_chunk_list;
@@ -2000,8 +2000,8 @@ void sctp_assoc_update(struct sctp_association *old,
2000__u32 sctp_association_get_next_tsn(struct sctp_association *); 2000__u32 sctp_association_get_next_tsn(struct sctp_association *);
2001 2001
2002void sctp_assoc_sync_pmtu(struct sctp_association *); 2002void sctp_assoc_sync_pmtu(struct sctp_association *);
2003void sctp_assoc_rwnd_increase(struct sctp_association *, unsigned); 2003void sctp_assoc_rwnd_increase(struct sctp_association *, unsigned int);
2004void sctp_assoc_rwnd_decrease(struct sctp_association *, unsigned); 2004void sctp_assoc_rwnd_decrease(struct sctp_association *, unsigned int);
2005void sctp_assoc_set_primary(struct sctp_association *, 2005void sctp_assoc_set_primary(struct sctp_association *,
2006 struct sctp_transport *); 2006 struct sctp_transport *);
2007void sctp_assoc_del_nonprimary_peers(struct sctp_association *, 2007void sctp_assoc_del_nonprimary_peers(struct sctp_association *,
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 057f0168462..025c31aa65d 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1226,7 +1226,7 @@ extern void tcp_put_md5sig_pool(void);
1226 1226
1227extern int tcp_md5_hash_header(struct tcp_md5sig_pool *, const struct tcphdr *); 1227extern int tcp_md5_hash_header(struct tcp_md5sig_pool *, const struct tcphdr *);
1228extern int tcp_md5_hash_skb_data(struct tcp_md5sig_pool *, const struct sk_buff *, 1228extern int tcp_md5_hash_skb_data(struct tcp_md5sig_pool *, const struct sk_buff *,
1229 unsigned header_len); 1229 unsigned int header_len);
1230extern int tcp_md5_hash_key(struct tcp_md5sig_pool *hp, 1230extern int tcp_md5_hash_key(struct tcp_md5sig_pool *hp,
1231 const struct tcp_md5sig_key *key); 1231 const struct tcp_md5sig_key *key);
1232 1232
diff --git a/include/net/udp.h b/include/net/udp.h
index 9671f5f1df9..e66fc297b10 100644
--- a/include/net/udp.h
+++ b/include/net/udp.h
@@ -81,7 +81,7 @@ struct udp_table {
81extern struct udp_table udp_table; 81extern struct udp_table udp_table;
82extern void udp_table_init(struct udp_table *, const char *); 82extern void udp_table_init(struct udp_table *, const char *);
83static inline struct udp_hslot *udp_hashslot(struct udp_table *table, 83static inline struct udp_hslot *udp_hashslot(struct udp_table *table,
84 struct net *net, unsigned num) 84 struct net *net, unsigned int num)
85{ 85{
86 return &table->hash[udp_hashfn(net, num, table->mask)]; 86 return &table->hash[udp_hashfn(net, num, table->mask)];
87} 87}
diff --git a/include/net/wimax.h b/include/net/wimax.h
index 322ff4fbdb4..bbb74f990ca 100644
--- a/include/net/wimax.h
+++ b/include/net/wimax.h
@@ -423,8 +423,8 @@ struct wimax_dev {
423 int (*op_reset)(struct wimax_dev *wimax_dev); 423 int (*op_reset)(struct wimax_dev *wimax_dev);
424 424
425 struct rfkill *rfkill; 425 struct rfkill *rfkill;
426 unsigned rf_hw; 426 unsigned int rf_hw;
427 unsigned rf_sw; 427 unsigned int rf_sw;
428 char name[32]; 428 char name[32];
429 429
430 struct dentry *debugfs_dentry; 430 struct dentry *debugfs_dentry;
diff --git a/include/net/x25.h b/include/net/x25.h
index a06119a0512..b4a8a892312 100644
--- a/include/net/x25.h
+++ b/include/net/x25.h
@@ -305,7 +305,7 @@ static inline void x25_unregister_sysctl(void) {};
305#endif /* CONFIG_SYSCTL */ 305#endif /* CONFIG_SYSCTL */
306 306
307struct x25_skb_cb { 307struct x25_skb_cb {
308 unsigned flags; 308 unsigned int flags;
309}; 309};
310#define X25_SKB_CB(s) ((struct x25_skb_cb *) ((s)->cb)) 310#define X25_SKB_CB(s) ((struct x25_skb_cb *) ((s)->cb))
311 311
diff --git a/net/802/fc.c b/net/802/fc.c
index b324e31401a..05eea6b98bb 100644
--- a/net/802/fc.c
+++ b/net/802/fc.c
@@ -35,7 +35,7 @@
35 35
36static int fc_header(struct sk_buff *skb, struct net_device *dev, 36static int fc_header(struct sk_buff *skb, struct net_device *dev,
37 unsigned short type, 37 unsigned short type,
38 const void *daddr, const void *saddr, unsigned len) 38 const void *daddr, const void *saddr, unsigned int len)
39{ 39{
40 struct fch_hdr *fch; 40 struct fch_hdr *fch;
41 int hdr_len; 41 int hdr_len;
diff --git a/net/802/fddi.c b/net/802/fddi.c
index 5ab25cd4314..9cda40661e0 100644
--- a/net/802/fddi.c
+++ b/net/802/fddi.c
@@ -51,7 +51,7 @@
51 51
52static int fddi_header(struct sk_buff *skb, struct net_device *dev, 52static int fddi_header(struct sk_buff *skb, struct net_device *dev,
53 unsigned short type, 53 unsigned short type,
54 const void *daddr, const void *saddr, unsigned len) 54 const void *daddr, const void *saddr, unsigned int len)
55{ 55{
56 int hl = FDDI_K_SNAP_HLEN; 56 int hl = FDDI_K_SNAP_HLEN;
57 struct fddihdr *fddi; 57 struct fddihdr *fddi;
diff --git a/net/802/hippi.c b/net/802/hippi.c
index 056794e6637..51a1f530417 100644
--- a/net/802/hippi.c
+++ b/net/802/hippi.c
@@ -45,7 +45,7 @@
45 45
46static int hippi_header(struct sk_buff *skb, struct net_device *dev, 46static int hippi_header(struct sk_buff *skb, struct net_device *dev,
47 unsigned short type, 47 unsigned short type,
48 const void *daddr, const void *saddr, unsigned len) 48 const void *daddr, const void *saddr, unsigned int len)
49{ 49{
50 struct hippi_hdr *hip = (struct hippi_hdr *)skb_push(skb, HIPPI_HLEN); 50 struct hippi_hdr *hip = (struct hippi_hdr *)skb_push(skb, HIPPI_HLEN);
51 struct hippi_cb *hcb = (struct hippi_cb *) skb->cb; 51 struct hippi_cb *hcb = (struct hippi_cb *) skb->cb;
diff --git a/net/802/tr.c b/net/802/tr.c
index b9a3a145e34..e65f0b8de0c 100644
--- a/net/802/tr.c
+++ b/net/802/tr.c
@@ -101,7 +101,7 @@ static inline unsigned long rif_hash(const unsigned char *addr)
101 101
102static int tr_header(struct sk_buff *skb, struct net_device *dev, 102static int tr_header(struct sk_buff *skb, struct net_device *dev,
103 unsigned short type, 103 unsigned short type,
104 const void *daddr, const void *saddr, unsigned len) 104 const void *daddr, const void *saddr, unsigned int len)
105{ 105{
106 struct trh_hdr *trh; 106 struct trh_hdr *trh;
107 int hdr_len; 107 int hdr_len;
@@ -193,7 +193,7 @@ __be16 tr_type_trans(struct sk_buff *skb, struct net_device *dev)
193 193
194 struct trh_hdr *trh; 194 struct trh_hdr *trh;
195 struct trllc *trllc; 195 struct trllc *trllc;
196 unsigned riflen=0; 196 unsigned int riflen=0;
197 197
198 skb->dev = dev; 198 skb->dev = dev;
199 skb_reset_mac_header(skb); 199 skb_reset_mac_header(skb);
diff --git a/net/9p/client.c b/net/9p/client.c
index b23a17c431c..a170893d70e 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -1530,7 +1530,7 @@ p9_client_read(struct p9_fid *fid, char *data, char __user *udata, u64 offset,
1530 1530
1531 1531
1532 p9_debug(P9_DEBUG_9P, ">>> TREAD fid %d offset %llu %d\n", 1532 p9_debug(P9_DEBUG_9P, ">>> TREAD fid %d offset %llu %d\n",
1533 fid->fid, (long long unsigned) offset, count); 1533 fid->fid, (unsigned long long) offset, count);
1534 err = 0; 1534 err = 0;
1535 clnt = fid->clnt; 1535 clnt = fid->clnt;
1536 1536
@@ -1605,7 +1605,7 @@ p9_client_write(struct p9_fid *fid, char *data, const char __user *udata,
1605 struct p9_req_t *req; 1605 struct p9_req_t *req;
1606 1606
1607 p9_debug(P9_DEBUG_9P, ">>> TWRITE fid %d offset %llu count %d\n", 1607 p9_debug(P9_DEBUG_9P, ">>> TWRITE fid %d offset %llu count %d\n",
1608 fid->fid, (long long unsigned) offset, count); 1608 fid->fid, (unsigned long long) offset, count);
1609 err = 0; 1609 err = 0;
1610 clnt = fid->clnt; 1610 clnt = fid->clnt;
1611 1611
@@ -2040,7 +2040,7 @@ int p9_client_readdir(struct p9_fid *fid, char *data, u32 count, u64 offset)
2040 char *dataptr; 2040 char *dataptr;
2041 2041
2042 p9_debug(P9_DEBUG_9P, ">>> TREADDIR fid %d offset %llu count %d\n", 2042 p9_debug(P9_DEBUG_9P, ">>> TREADDIR fid %d offset %llu count %d\n",
2043 fid->fid, (long long unsigned) offset, count); 2043 fid->fid, (unsigned long long) offset, count);
2044 2044
2045 err = 0; 2045 err = 0;
2046 clnt = fid->clnt; 2046 clnt = fid->clnt;
diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c
index fccae26fa67..6449bae1570 100644
--- a/net/9p/trans_fd.c
+++ b/net/9p/trans_fd.c
@@ -513,7 +513,7 @@ error:
513 clear_bit(Wworksched, &m->wsched); 513 clear_bit(Wworksched, &m->wsched);
514} 514}
515 515
516static int p9_pollwake(wait_queue_t *wait, unsigned mode, int sync, void *key) 516static int p9_pollwake(wait_queue_t *wait, unsigned int mode, int sync, void *key)
517{ 517{
518 struct p9_poll_wait *pwait = 518 struct p9_poll_wait *pwait =
519 container_of(wait, struct p9_poll_wait, wait); 519 container_of(wait, struct p9_poll_wait, wait);
diff --git a/net/atm/br2684.c b/net/atm/br2684.c
index 353fccf1cde..4819d31533e 100644
--- a/net/atm/br2684.c
+++ b/net/atm/br2684.c
@@ -73,7 +73,7 @@ struct br2684_vcc {
73#ifdef CONFIG_ATM_BR2684_IPFILTER 73#ifdef CONFIG_ATM_BR2684_IPFILTER
74 struct br2684_filter filter; 74 struct br2684_filter filter;
75#endif /* CONFIG_ATM_BR2684_IPFILTER */ 75#endif /* CONFIG_ATM_BR2684_IPFILTER */
76 unsigned copies_needed, copies_failed; 76 unsigned int copies_needed, copies_failed;
77}; 77};
78 78
79struct br2684_dev { 79struct br2684_dev {
diff --git a/net/atm/mpoa_proc.c b/net/atm/mpoa_proc.c
index 53e50029227..5bdd300db0f 100644
--- a/net/atm/mpoa_proc.c
+++ b/net/atm/mpoa_proc.c
@@ -207,7 +207,7 @@ static ssize_t proc_mpc_write(struct file *file, const char __user *buff,
207 size_t nbytes, loff_t *ppos) 207 size_t nbytes, loff_t *ppos)
208{ 208{
209 char *page, *p; 209 char *page, *p;
210 unsigned len; 210 unsigned int len;
211 211
212 if (nbytes == 0) 212 if (nbytes == 0)
213 return 0; 213 return 0;
diff --git a/net/atm/signaling.c b/net/atm/signaling.c
index 509c8ac02b6..86767ca908a 100644
--- a/net/atm/signaling.c
+++ b/net/atm/signaling.c
@@ -166,7 +166,7 @@ void sigd_enq2(struct atm_vcc *vcc, enum atmsvc_msg_type type,
166{ 166{
167 struct sk_buff *skb; 167 struct sk_buff *skb;
168 struct atmsvc_msg *msg; 168 struct atmsvc_msg *msg;
169 static unsigned session = 0; 169 static unsigned int session = 0;
170 170
171 pr_debug("%d (0x%p)\n", (int)type, vcc); 171 pr_debug("%d (0x%p)\n", (int)type, vcc);
172 while (!(skb = alloc_skb(sizeof(struct atmsvc_msg), GFP_KERNEL))) 172 while (!(skb = alloc_skb(sizeof(struct atmsvc_msg), GFP_KERNEL)))
diff --git a/net/ax25/ax25_ip.c b/net/ax25/ax25_ip.c
index 846ae4e2b11..67de6b33f2c 100644
--- a/net/ax25/ax25_ip.c
+++ b/net/ax25/ax25_ip.c
@@ -48,7 +48,7 @@
48 48
49int ax25_hard_header(struct sk_buff *skb, struct net_device *dev, 49int ax25_hard_header(struct sk_buff *skb, struct net_device *dev,
50 unsigned short type, const void *daddr, 50 unsigned short type, const void *daddr,
51 const void *saddr, unsigned len) 51 const void *saddr, unsigned int len)
52{ 52{
53 unsigned char *buff; 53 unsigned char *buff;
54 54
@@ -219,7 +219,7 @@ put:
219 219
220int ax25_hard_header(struct sk_buff *skb, struct net_device *dev, 220int ax25_hard_header(struct sk_buff *skb, struct net_device *dev,
221 unsigned short type, const void *daddr, 221 unsigned short type, const void *daddr,
222 const void *saddr, unsigned len) 222 const void *saddr, unsigned int len)
223{ 223{
224 return -AX25_HEADER_LEN; 224 return -AX25_HEADER_LEN;
225} 225}
diff --git a/net/batman-adv/bat_sysfs.c b/net/batman-adv/bat_sysfs.c
index c6efd687ca7..2c816883ca1 100644
--- a/net/batman-adv/bat_sysfs.c
+++ b/net/batman-adv/bat_sysfs.c
@@ -149,7 +149,7 @@ static int store_bool_attr(char *buff, size_t count,
149 atomic_read(attr) == 1 ? "enabled" : "disabled", 149 atomic_read(attr) == 1 ? "enabled" : "disabled",
150 enabled == 1 ? "enabled" : "disabled"); 150 enabled == 1 ? "enabled" : "disabled");
151 151
152 atomic_set(attr, (unsigned)enabled); 152 atomic_set(attr, (unsigned int)enabled);
153 return count; 153 return count;
154} 154}
155 155
@@ -268,7 +268,7 @@ static ssize_t store_vis_mode(struct kobject *kobj, struct attribute *attr,
268 "client" : "server", vis_mode_tmp == VIS_TYPE_CLIENT_UPDATE ? 268 "client" : "server", vis_mode_tmp == VIS_TYPE_CLIENT_UPDATE ?
269 "client" : "server"); 269 "client" : "server");
270 270
271 atomic_set(&bat_priv->vis_mode, (unsigned)vis_mode_tmp); 271 atomic_set(&bat_priv->vis_mode, (unsigned int)vis_mode_tmp);
272 return count; 272 return count;
273} 273}
274 274
@@ -354,7 +354,7 @@ static ssize_t store_gw_mode(struct kobject *kobj, struct attribute *attr,
354 curr_gw_mode_str, buff); 354 curr_gw_mode_str, buff);
355 355
356 gw_deselect(bat_priv); 356 gw_deselect(bat_priv);
357 atomic_set(&bat_priv->gw_mode, (unsigned)gw_mode_tmp); 357 atomic_set(&bat_priv->gw_mode, (unsigned int)gw_mode_tmp);
358 return count; 358 return count;
359} 359}
360 360
diff --git a/net/bridge/br_forward.c b/net/bridge/br_forward.c
index 61f65344e71..aab8470707c 100644
--- a/net/bridge/br_forward.c
+++ b/net/bridge/br_forward.c
@@ -34,7 +34,7 @@ static inline int should_deliver(const struct net_bridge_port *p,
34 p->state == BR_STATE_FORWARDING); 34 p->state == BR_STATE_FORWARDING);
35} 35}
36 36
37static inline unsigned packet_length(const struct sk_buff *skb) 37static inline unsigned int packet_length(const struct sk_buff *skb)
38{ 38{
39 return skb->len - (skb->protocol == htons(ETH_P_8021Q) ? VLAN_HLEN : 0); 39 return skb->len - (skb->protocol == htons(ETH_P_8021Q) ? VLAN_HLEN : 0);
40} 40}
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c
index 27ca25ed702..020e463f222 100644
--- a/net/bridge/br_multicast.c
+++ b/net/bridge/br_multicast.c
@@ -512,8 +512,8 @@ static struct net_bridge_mdb_entry *br_multicast_get_group(
512 struct net_bridge_mdb_htable *mdb; 512 struct net_bridge_mdb_htable *mdb;
513 struct net_bridge_mdb_entry *mp; 513 struct net_bridge_mdb_entry *mp;
514 struct hlist_node *p; 514 struct hlist_node *p;
515 unsigned count = 0; 515 unsigned int count = 0;
516 unsigned max; 516 unsigned int max;
517 int elasticity; 517 int elasticity;
518 int err; 518 int err;
519 519
@@ -1281,8 +1281,8 @@ static int br_multicast_ipv4_rcv(struct net_bridge *br,
1281 struct sk_buff *skb2 = skb; 1281 struct sk_buff *skb2 = skb;
1282 const struct iphdr *iph; 1282 const struct iphdr *iph;
1283 struct igmphdr *ih; 1283 struct igmphdr *ih;
1284 unsigned len; 1284 unsigned int len;
1285 unsigned offset; 1285 unsigned int offset;
1286 int err; 1286 int err;
1287 1287
1288 /* We treat OOM as packet loss for now. */ 1288 /* We treat OOM as packet loss for now. */
@@ -1382,7 +1382,7 @@ static int br_multicast_ipv6_rcv(struct net_bridge *br,
1382 u8 icmp6_type; 1382 u8 icmp6_type;
1383 u8 nexthdr; 1383 u8 nexthdr;
1384 __be16 frag_off; 1384 __be16 frag_off;
1385 unsigned len; 1385 unsigned int len;
1386 int offset; 1386 int offset;
1387 int err; 1387 int err;
1388 1388
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
index 346b368d869..df38108f697 100644
--- a/net/bridge/br_netlink.c
+++ b/net/bridge/br_netlink.c
@@ -88,7 +88,7 @@ void br_ifinfo_notify(int event, struct net_bridge_port *port)
88 int err = -ENOBUFS; 88 int err = -ENOBUFS;
89 89
90 br_debug(port->br, "port %u(%s) event %d\n", 90 br_debug(port->br, "port %u(%s) event %d\n",
91 (unsigned)port->port_no, port->dev->name, event); 91 (unsigned int)port->port_no, port->dev->name, event);
92 92
93 skb = nlmsg_new(br_nlmsg_size(), GFP_ATOMIC); 93 skb = nlmsg_new(br_nlmsg_size(), GFP_ATOMIC);
94 if (skb == NULL) 94 if (skb == NULL)
diff --git a/net/bridge/br_private_stp.h b/net/bridge/br_private_stp.h
index 05ed9bc7e42..0c0fe36e7aa 100644
--- a/net/bridge/br_private_stp.h
+++ b/net/bridge/br_private_stp.h
@@ -29,10 +29,9 @@
29#define BR_MIN_PATH_COST 1 29#define BR_MIN_PATH_COST 1
30#define BR_MAX_PATH_COST 65535 30#define BR_MAX_PATH_COST 65535
31 31
32struct br_config_bpdu 32struct br_config_bpdu {
33{ 33 unsigned int topology_change:1;
34 unsigned topology_change:1; 34 unsigned int topology_change_ack:1;
35 unsigned topology_change_ack:1;
36 bridge_id root; 35 bridge_id root;
37 int root_path_cost; 36 int root_path_cost;
38 bridge_id bridge_id; 37 bridge_id bridge_id;
diff --git a/net/bridge/br_stp.c b/net/bridge/br_stp.c
index 8c836d96ba7..af9a12099ba 100644
--- a/net/bridge/br_stp.c
+++ b/net/bridge/br_stp.c
@@ -32,7 +32,7 @@ static const char *const br_port_state_names[] = {
32void br_log_state(const struct net_bridge_port *p) 32void br_log_state(const struct net_bridge_port *p)
33{ 33{
34 br_info(p->br, "port %u(%s) entered %s state\n", 34 br_info(p->br, "port %u(%s) entered %s state\n",
35 (unsigned) p->port_no, p->dev->name, 35 (unsigned int) p->port_no, p->dev->name,
36 br_port_state_names[p->state]); 36 br_port_state_names[p->state]);
37} 37}
38 38
@@ -478,7 +478,7 @@ void br_received_tcn_bpdu(struct net_bridge_port *p)
478{ 478{
479 if (br_is_designated_port(p)) { 479 if (br_is_designated_port(p)) {
480 br_info(p->br, "port %u(%s) received tcn bpdu\n", 480 br_info(p->br, "port %u(%s) received tcn bpdu\n",
481 (unsigned) p->port_no, p->dev->name); 481 (unsigned int) p->port_no, p->dev->name);
482 482
483 br_topology_change_detection(p->br); 483 br_topology_change_detection(p->br);
484 br_topology_change_acknowledge(p); 484 br_topology_change_acknowledge(p);
diff --git a/net/bridge/br_stp_timer.c b/net/bridge/br_stp_timer.c
index 58de2a0f997..a6747e67342 100644
--- a/net/bridge/br_stp_timer.c
+++ b/net/bridge/br_stp_timer.c
@@ -56,7 +56,7 @@ static void br_message_age_timer_expired(unsigned long arg)
56 return; 56 return;
57 57
58 br_info(br, "port %u(%s) neighbor %.2x%.2x.%pM lost\n", 58 br_info(br, "port %u(%s) neighbor %.2x%.2x.%pM lost\n",
59 (unsigned) p->port_no, p->dev->name, 59 (unsigned int) p->port_no, p->dev->name,
60 id->prio[0], id->prio[1], &id->addr); 60 id->prio[0], id->prio[1], &id->addr);
61 61
62 /* 62 /*
@@ -84,7 +84,7 @@ static void br_forward_delay_timer_expired(unsigned long arg)
84 struct net_bridge *br = p->br; 84 struct net_bridge *br = p->br;
85 85
86 br_debug(br, "port %u(%s) forward delay timer\n", 86 br_debug(br, "port %u(%s) forward delay timer\n",
87 (unsigned) p->port_no, p->dev->name); 87 (unsigned int) p->port_no, p->dev->name);
88 spin_lock(&br->lock); 88 spin_lock(&br->lock);
89 if (p->state == BR_STATE_LISTENING) { 89 if (p->state == BR_STATE_LISTENING) {
90 p->state = BR_STATE_LEARNING; 90 p->state = BR_STATE_LEARNING;
@@ -131,7 +131,7 @@ static void br_hold_timer_expired(unsigned long arg)
131 struct net_bridge_port *p = (struct net_bridge_port *) arg; 131 struct net_bridge_port *p = (struct net_bridge_port *) arg;
132 132
133 br_debug(p->br, "port %u(%s) hold timer expired\n", 133 br_debug(p->br, "port %u(%s) hold timer expired\n",
134 (unsigned) p->port_no, p->dev->name); 134 (unsigned int) p->port_no, p->dev->name);
135 135
136 spin_lock(&p->br->lock); 136 spin_lock(&p->br->lock);
137 if (p->config_pending) 137 if (p->config_pending)
diff --git a/net/bridge/br_sysfs_br.c b/net/bridge/br_sysfs_br.c
index c236c0e4398..766fd7fb029 100644
--- a/net/bridge/br_sysfs_br.c
+++ b/net/bridge/br_sysfs_br.c
@@ -297,7 +297,7 @@ static ssize_t store_group_addr(struct device *d,
297 const char *buf, size_t len) 297 const char *buf, size_t len)
298{ 298{
299 struct net_bridge *br = to_bridge(d); 299 struct net_bridge *br = to_bridge(d);
300 unsigned new_addr[6]; 300 unsigned int new_addr[6];
301 int i; 301 int i;
302 302
303 if (!capable(CAP_NET_ADMIN)) 303 if (!capable(CAP_NET_ADMIN))
diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c
index ce47ee9f48c..0dccdb3c7d2 100644
--- a/net/caif/caif_socket.c
+++ b/net/caif/caif_socket.c
@@ -130,7 +130,7 @@ static int caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
130 struct caifsock *cf_sk = container_of(sk, struct caifsock, sk); 130 struct caifsock *cf_sk = container_of(sk, struct caifsock, sk);
131 131
132 if (atomic_read(&sk->sk_rmem_alloc) + skb->truesize >= 132 if (atomic_read(&sk->sk_rmem_alloc) + skb->truesize >=
133 (unsigned)sk->sk_rcvbuf && rx_flow_is_on(cf_sk)) { 133 (unsigned int)sk->sk_rcvbuf && rx_flow_is_on(cf_sk)) {
134 if (net_ratelimit()) 134 if (net_ratelimit())
135 pr_debug("sending flow OFF (queue len = %d %d)\n", 135 pr_debug("sending flow OFF (queue len = %d %d)\n",
136 atomic_read(&cf_sk->sk.sk_rmem_alloc), 136 atomic_read(&cf_sk->sk.sk_rmem_alloc),
diff --git a/net/ceph/auth_x.h b/net/ceph/auth_x.h
index e02da7a5c5a..f459e93b774 100644
--- a/net/ceph/auth_x.h
+++ b/net/ceph/auth_x.h
@@ -13,7 +13,7 @@
13 */ 13 */
14struct ceph_x_ticket_handler { 14struct ceph_x_ticket_handler {
15 struct rb_node node; 15 struct rb_node node;
16 unsigned service; 16 unsigned int service;
17 17
18 struct ceph_crypto_key session_key; 18 struct ceph_crypto_key session_key;
19 struct ceph_timespec validity; 19 struct ceph_timespec validity;
@@ -27,7 +27,7 @@ struct ceph_x_ticket_handler {
27 27
28struct ceph_x_authorizer { 28struct ceph_x_authorizer {
29 struct ceph_buffer *buf; 29 struct ceph_buffer *buf;
30 unsigned service; 30 unsigned int service;
31 u64 nonce; 31 u64 nonce;
32 char reply_buf[128]; /* big enough for encrypted blob */ 32 char reply_buf[128]; /* big enough for encrypted blob */
33}; 33};
@@ -38,7 +38,7 @@ struct ceph_x_info {
38 bool starting; 38 bool starting;
39 u64 server_challenge; 39 u64 server_challenge;
40 40
41 unsigned have_keys; 41 unsigned int have_keys;
42 struct rb_root ticket_handlers; 42 struct rb_root ticket_handlers;
43 43
44 struct ceph_x_authorizer auth_authorizer; 44 struct ceph_x_authorizer auth_authorizer;
diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c
index cc913193d99..a776f751edb 100644
--- a/net/ceph/ceph_common.c
+++ b/net/ceph/ceph_common.c
@@ -441,8 +441,8 @@ EXPORT_SYMBOL(ceph_client_id);
441 * create a fresh client instance 441 * create a fresh client instance
442 */ 442 */
443struct ceph_client *ceph_create_client(struct ceph_options *opt, void *private, 443struct ceph_client *ceph_create_client(struct ceph_options *opt, void *private,
444 unsigned supported_features, 444 unsigned int supported_features,
445 unsigned required_features) 445 unsigned int required_features)
446{ 446{
447 struct ceph_client *client; 447 struct ceph_client *client;
448 struct ceph_entity_addr *myaddr = NULL; 448 struct ceph_entity_addr *myaddr = NULL;
diff --git a/net/ceph/ceph_hash.c b/net/ceph/ceph_hash.c
index 0a1b53bce76..67bb1f11e61 100644
--- a/net/ceph/ceph_hash.c
+++ b/net/ceph/ceph_hash.c
@@ -20,7 +20,7 @@
20 c = c - a; c = c - b; c = c ^ (b >> 15); \ 20 c = c - a; c = c - b; c = c ^ (b >> 15); \
21 } while (0) 21 } while (0)
22 22
23unsigned ceph_str_hash_rjenkins(const char *str, unsigned length) 23unsigned int ceph_str_hash_rjenkins(const char *str, unsigned int length)
24{ 24{
25 const unsigned char *k = (const unsigned char *)str; 25 const unsigned char *k = (const unsigned char *)str;
26 __u32 a, b, c; /* the internal state */ 26 __u32 a, b, c; /* the internal state */
@@ -81,7 +81,7 @@ unsigned ceph_str_hash_rjenkins(const char *str, unsigned length)
81/* 81/*
82 * linux dcache hash 82 * linux dcache hash
83 */ 83 */
84unsigned ceph_str_hash_linux(const char *str, unsigned length) 84unsigned int ceph_str_hash_linux(const char *str, unsigned int length)
85{ 85{
86 unsigned long hash = 0; 86 unsigned long hash = 0;
87 unsigned char c; 87 unsigned char c;
@@ -94,7 +94,7 @@ unsigned ceph_str_hash_linux(const char *str, unsigned length)
94} 94}
95 95
96 96
97unsigned ceph_str_hash(int type, const char *s, unsigned len) 97unsigned int ceph_str_hash(int type, const char *s, unsigned int len)
98{ 98{
99 switch (type) { 99 switch (type) {
100 case CEPH_STR_HASH_LINUX: 100 case CEPH_STR_HASH_LINUX:
diff --git a/net/ceph/crush/mapper.c b/net/ceph/crush/mapper.c
index b79747c4b64..854ac53f56c 100644
--- a/net/ceph/crush/mapper.c
+++ b/net/ceph/crush/mapper.c
@@ -68,8 +68,8 @@ int crush_find_rule(struct crush_map *map, int ruleset, int type, int size)
68static int bucket_perm_choose(struct crush_bucket *bucket, 68static int bucket_perm_choose(struct crush_bucket *bucket,
69 int x, int r) 69 int x, int r)
70{ 70{
71 unsigned pr = r % bucket->size; 71 unsigned int pr = r % bucket->size;
72 unsigned i, s; 72 unsigned int i, s;
73 73
74 /* start a new permutation if @x has changed */ 74 /* start a new permutation if @x has changed */
75 if (bucket->perm_x != x || bucket->perm_n == 0) { 75 if (bucket->perm_x != x || bucket->perm_n == 0) {
@@ -100,13 +100,13 @@ static int bucket_perm_choose(struct crush_bucket *bucket,
100 for (i = 0; i < bucket->perm_n; i++) 100 for (i = 0; i < bucket->perm_n; i++)
101 dprintk(" perm_choose have %d: %d\n", i, bucket->perm[i]); 101 dprintk(" perm_choose have %d: %d\n", i, bucket->perm[i]);
102 while (bucket->perm_n <= pr) { 102 while (bucket->perm_n <= pr) {
103 unsigned p = bucket->perm_n; 103 unsigned int p = bucket->perm_n;
104 /* no point in swapping the final entry */ 104 /* no point in swapping the final entry */
105 if (p < bucket->size - 1) { 105 if (p < bucket->size - 1) {
106 i = crush_hash32_3(bucket->hash, x, bucket->id, p) % 106 i = crush_hash32_3(bucket->hash, x, bucket->id, p) %
107 (bucket->size - p); 107 (bucket->size - p);
108 if (i) { 108 if (i) {
109 unsigned t = bucket->perm[p + i]; 109 unsigned int t = bucket->perm[p + i];
110 bucket->perm[p + i] = bucket->perm[p]; 110 bucket->perm[p + i] = bucket->perm[p];
111 bucket->perm[p] = t; 111 bucket->perm[p] = t;
112 } 112 }
diff --git a/net/ceph/debugfs.c b/net/ceph/debugfs.c
index 27d4ea315d1..54b531a0112 100644
--- a/net/ceph/debugfs.c
+++ b/net/ceph/debugfs.c
@@ -94,9 +94,9 @@ static int monc_show(struct seq_file *s, void *p)
94 mutex_lock(&monc->mutex); 94 mutex_lock(&monc->mutex);
95 95
96 if (monc->have_mdsmap) 96 if (monc->have_mdsmap)
97 seq_printf(s, "have mdsmap %u\n", (unsigned)monc->have_mdsmap); 97 seq_printf(s, "have mdsmap %u\n", (unsigned int)monc->have_mdsmap);
98 if (monc->have_osdmap) 98 if (monc->have_osdmap)
99 seq_printf(s, "have osdmap %u\n", (unsigned)monc->have_osdmap); 99 seq_printf(s, "have osdmap %u\n", (unsigned int)monc->have_osdmap);
100 if (monc->want_next_osdmap) 100 if (monc->want_next_osdmap)
101 seq_printf(s, "want next osdmap\n"); 101 seq_printf(s, "want next osdmap\n");
102 102
@@ -146,7 +146,7 @@ static int osdc_show(struct seq_file *s, void *pp)
146 146
147 if (req->r_reassert_version.epoch) 147 if (req->r_reassert_version.epoch)
148 seq_printf(s, "\t%u'%llu", 148 seq_printf(s, "\t%u'%llu",
149 (unsigned)le32_to_cpu(req->r_reassert_version.epoch), 149 (unsigned int)le32_to_cpu(req->r_reassert_version.epoch),
150 le64_to_cpu(req->r_reassert_version.version)); 150 le64_to_cpu(req->r_reassert_version.version));
151 else 151 else
152 seq_printf(s, "\t"); 152 seq_printf(s, "\t");
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
index f0993af2ae4..36fa6bf6849 100644
--- a/net/ceph/messenger.c
+++ b/net/ceph/messenger.c
@@ -699,7 +699,7 @@ static int prepare_write_connect(struct ceph_messenger *msgr,
699 struct ceph_connection *con, 699 struct ceph_connection *con,
700 int include_banner) 700 int include_banner)
701{ 701{
702 unsigned global_seq = get_global_seq(con->msgr, 0); 702 unsigned int global_seq = get_global_seq(con->msgr, 0);
703 int proto; 703 int proto;
704 704
705 switch (con->peer_name.type) { 705 switch (con->peer_name.type) {
@@ -816,7 +816,7 @@ static void iter_bio_next(struct bio **bio_iter, int *seg)
816static int write_partial_msg_pages(struct ceph_connection *con) 816static int write_partial_msg_pages(struct ceph_connection *con)
817{ 817{
818 struct ceph_msg *msg = con->out_msg; 818 struct ceph_msg *msg = con->out_msg;
819 unsigned data_len = le32_to_cpu(msg->hdr.data_len); 819 unsigned int data_len = le32_to_cpu(msg->hdr.data_len);
820 size_t len; 820 size_t len;
821 bool do_datacrc = !con->msgr->nocrc; 821 bool do_datacrc = !con->msgr->nocrc;
822 int ret; 822 int ret;
@@ -1554,7 +1554,7 @@ static struct ceph_msg *ceph_alloc_msg(struct ceph_connection *con,
1554 1554
1555static int read_partial_message_pages(struct ceph_connection *con, 1555static int read_partial_message_pages(struct ceph_connection *con,
1556 struct page **pages, 1556 struct page **pages,
1557 unsigned data_len, bool do_datacrc) 1557 unsigned int data_len, bool do_datacrc)
1558{ 1558{
1559 void *p; 1559 void *p;
1560 int ret; 1560 int ret;
@@ -1587,7 +1587,7 @@ static int read_partial_message_pages(struct ceph_connection *con,
1587#ifdef CONFIG_BLOCK 1587#ifdef CONFIG_BLOCK
1588static int read_partial_message_bio(struct ceph_connection *con, 1588static int read_partial_message_bio(struct ceph_connection *con,
1589 struct bio **bio_iter, int *bio_seg, 1589 struct bio **bio_iter, int *bio_seg,
1590 unsigned data_len, bool do_datacrc) 1590 unsigned int data_len, bool do_datacrc)
1591{ 1591{
1592 struct bio_vec *bv = bio_iovec_idx(*bio_iter, *bio_seg); 1592 struct bio_vec *bv = bio_iovec_idx(*bio_iter, *bio_seg);
1593 void *p; 1593 void *p;
@@ -1629,7 +1629,7 @@ static int read_partial_message(struct ceph_connection *con)
1629 struct ceph_msg *m = con->in_msg; 1629 struct ceph_msg *m = con->in_msg;
1630 int ret; 1630 int ret;
1631 int to, left; 1631 int to, left;
1632 unsigned front_len, middle_len, data_len; 1632 unsigned int front_len, middle_len, data_len;
1633 bool do_datacrc = !con->msgr->nocrc; 1633 bool do_datacrc = !con->msgr->nocrc;
1634 int skip; 1634 int skip;
1635 u64 seq; 1635 u64 seq;
@@ -2345,9 +2345,9 @@ void ceph_con_revoke_message(struct ceph_connection *con, struct ceph_msg *msg)
2345{ 2345{
2346 mutex_lock(&con->mutex); 2346 mutex_lock(&con->mutex);
2347 if (con->in_msg && con->in_msg == msg) { 2347 if (con->in_msg && con->in_msg == msg) {
2348 unsigned front_len = le32_to_cpu(con->in_hdr.front_len); 2348 unsigned int front_len = le32_to_cpu(con->in_hdr.front_len);
2349 unsigned middle_len = le32_to_cpu(con->in_hdr.middle_len); 2349 unsigned int middle_len = le32_to_cpu(con->in_hdr.middle_len);
2350 unsigned data_len = le32_to_cpu(con->in_hdr.data_len); 2350 unsigned int data_len = le32_to_cpu(con->in_hdr.data_len);
2351 2351
2352 /* skip rest of message */ 2352 /* skip rest of message */
2353 dout("con_revoke_pages %p msg %p revoked\n", con, msg); 2353 dout("con_revoke_pages %p msg %p revoked\n", con, msg);
diff --git a/net/ceph/mon_client.c b/net/ceph/mon_client.c
index 1845cde2622..10d6008d31f 100644
--- a/net/ceph/mon_client.c
+++ b/net/ceph/mon_client.c
@@ -168,7 +168,7 @@ static bool __sub_expired(struct ceph_mon_client *monc)
168 */ 168 */
169static void __schedule_delayed(struct ceph_mon_client *monc) 169static void __schedule_delayed(struct ceph_mon_client *monc)
170{ 170{
171 unsigned delay; 171 unsigned int delay;
172 172
173 if (monc->cur_mon < 0 || __sub_expired(monc)) 173 if (monc->cur_mon < 0 || __sub_expired(monc))
174 delay = 10 * HZ; 174 delay = 10 * HZ;
@@ -184,7 +184,7 @@ static void __schedule_delayed(struct ceph_mon_client *monc)
184static void __send_subscribe(struct ceph_mon_client *monc) 184static void __send_subscribe(struct ceph_mon_client *monc)
185{ 185{
186 dout("__send_subscribe sub_sent=%u exp=%u want_osd=%d\n", 186 dout("__send_subscribe sub_sent=%u exp=%u want_osd=%d\n",
187 (unsigned)monc->sub_sent, __sub_expired(monc), 187 (unsigned int)monc->sub_sent, __sub_expired(monc),
188 monc->want_next_osdmap); 188 monc->want_next_osdmap);
189 if ((__sub_expired(monc) && !monc->sub_sent) || 189 if ((__sub_expired(monc) && !monc->sub_sent) ||
190 monc->want_next_osdmap == 1) { 190 monc->want_next_osdmap == 1) {
@@ -201,7 +201,7 @@ static void __send_subscribe(struct ceph_mon_client *monc)
201 201
202 if (monc->want_next_osdmap) { 202 if (monc->want_next_osdmap) {
203 dout("__send_subscribe to 'osdmap' %u\n", 203 dout("__send_subscribe to 'osdmap' %u\n",
204 (unsigned)monc->have_osdmap); 204 (unsigned int)monc->have_osdmap);
205 ceph_encode_string(&p, end, "osdmap", 6); 205 ceph_encode_string(&p, end, "osdmap", 6);
206 i = p; 206 i = p;
207 i->have = cpu_to_le64(monc->have_osdmap); 207 i->have = cpu_to_le64(monc->have_osdmap);
@@ -211,7 +211,7 @@ static void __send_subscribe(struct ceph_mon_client *monc)
211 } 211 }
212 if (monc->want_mdsmap) { 212 if (monc->want_mdsmap) {
213 dout("__send_subscribe to 'mdsmap' %u+\n", 213 dout("__send_subscribe to 'mdsmap' %u+\n",
214 (unsigned)monc->have_mdsmap); 214 (unsigned int)monc->have_mdsmap);
215 ceph_encode_string(&p, end, "mdsmap", 6); 215 ceph_encode_string(&p, end, "mdsmap", 6);
216 i = p; 216 i = p;
217 i->have = cpu_to_le64(monc->have_mdsmap); 217 i->have = cpu_to_le64(monc->have_mdsmap);
@@ -236,7 +236,7 @@ static void __send_subscribe(struct ceph_mon_client *monc)
236static void handle_subscribe_ack(struct ceph_mon_client *monc, 236static void handle_subscribe_ack(struct ceph_mon_client *monc,
237 struct ceph_msg *msg) 237 struct ceph_msg *msg)
238{ 238{
239 unsigned seconds; 239 unsigned int seconds;
240 struct ceph_mon_subscribe_ack *h = msg->front.iov_base; 240 struct ceph_mon_subscribe_ack *h = msg->front.iov_base;
241 241
242 if (msg->front.iov_len < sizeof(*h)) 242 if (msg->front.iov_len < sizeof(*h))
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c
index 5e254055c91..1b0ef3c4d39 100644
--- a/net/ceph/osd_client.c
+++ b/net/ceph/osd_client.c
@@ -1214,7 +1214,7 @@ static void handle_reply(struct ceph_osd_client *osdc, struct ceph_msg *msg,
1214 } 1214 }
1215 1215
1216 if (!req->r_got_reply) { 1216 if (!req->r_got_reply) {
1217 unsigned bytes; 1217 unsigned int bytes;
1218 1218
1219 req->r_result = le32_to_cpu(rhead->result); 1219 req->r_result = le32_to_cpu(rhead->result);
1220 bytes = le32_to_cpu(msg->hdr.data_len); 1220 bytes = le32_to_cpu(msg->hdr.data_len);
diff --git a/net/ceph/osdmap.c b/net/ceph/osdmap.c
index 29ad46ec9dc..56e561a6900 100644
--- a/net/ceph/osdmap.c
+++ b/net/ceph/osdmap.c
@@ -38,7 +38,7 @@ done:
38 38
39/* maps */ 39/* maps */
40 40
41static int calc_bits_of(unsigned t) 41static int calc_bits_of(unsigned int t)
42{ 42{
43 int b = 0; 43 int b = 0;
44 while (t) { 44 while (t) {
@@ -154,7 +154,7 @@ static struct crush_map *crush_decode(void *pbyval, void *end)
154 magic = ceph_decode_32(p); 154 magic = ceph_decode_32(p);
155 if (magic != CRUSH_MAGIC) { 155 if (magic != CRUSH_MAGIC) {
156 pr_err("crush_decode magic %x != current %x\n", 156 pr_err("crush_decode magic %x != current %x\n",
157 (unsigned)magic, (unsigned)CRUSH_MAGIC); 157 (unsigned int)magic, (unsigned int)CRUSH_MAGIC);
158 goto bad; 158 goto bad;
159 } 159 }
160 c->max_buckets = ceph_decode_32(p); 160 c->max_buckets = ceph_decode_32(p);
@@ -460,7 +460,7 @@ static void __remove_pg_pool(struct rb_root *root, struct ceph_pg_pool_info *pi)
460 460
461static int __decode_pool(void **p, void *end, struct ceph_pg_pool_info *pi) 461static int __decode_pool(void **p, void *end, struct ceph_pg_pool_info *pi)
462{ 462{
463 unsigned n, m; 463 unsigned int n, m;
464 464
465 ceph_decode_copy(p, &pi->v, sizeof(pi->v)); 465 ceph_decode_copy(p, &pi->v, sizeof(pi->v));
466 calc_pg_masks(pi); 466 calc_pg_masks(pi);
@@ -970,7 +970,7 @@ void ceph_calc_file_object_mapping(struct ceph_file_layout *layout,
970 objsetno = stripeno / su_per_object; 970 objsetno = stripeno / su_per_object;
971 971
972 *ono = objsetno * sc + stripepos; 972 *ono = objsetno * sc + stripepos;
973 dout("objset %u * sc %u = ono %u\n", objsetno, sc, (unsigned)*ono); 973 dout("objset %u * sc %u = ono %u\n", objsetno, sc, (unsigned int)*ono);
974 974
975 /* *oxoff = *off % layout->fl_stripe_unit; # offset in su */ 975 /* *oxoff = *off % layout->fl_stripe_unit; # offset in su */
976 t = off; 976 t = off;
@@ -998,12 +998,12 @@ int ceph_calc_object_layout(struct ceph_object_layout *ol,
998 struct ceph_file_layout *fl, 998 struct ceph_file_layout *fl,
999 struct ceph_osdmap *osdmap) 999 struct ceph_osdmap *osdmap)
1000{ 1000{
1001 unsigned num, num_mask; 1001 unsigned int num, num_mask;
1002 struct ceph_pg pgid; 1002 struct ceph_pg pgid;
1003 s32 preferred = (s32)le32_to_cpu(fl->fl_pg_preferred); 1003 s32 preferred = (s32)le32_to_cpu(fl->fl_pg_preferred);
1004 int poolid = le32_to_cpu(fl->fl_pg_pool); 1004 int poolid = le32_to_cpu(fl->fl_pg_pool);
1005 struct ceph_pg_pool_info *pool; 1005 struct ceph_pg_pool_info *pool;
1006 unsigned ps; 1006 unsigned int ps;
1007 1007
1008 BUG_ON(!osdmap); 1008 BUG_ON(!osdmap);
1009 1009
@@ -1045,7 +1045,7 @@ static int *calc_pg_raw(struct ceph_osdmap *osdmap, struct ceph_pg pgid,
1045 struct ceph_pg_mapping *pg; 1045 struct ceph_pg_mapping *pg;
1046 struct ceph_pg_pool_info *pool; 1046 struct ceph_pg_pool_info *pool;
1047 int ruleno; 1047 int ruleno;
1048 unsigned poolid, ps, pps, t; 1048 unsigned int poolid, ps, pps, t;
1049 int preferred; 1049 int preferred;
1050 1050
1051 poolid = le32_to_cpu(pgid.pool); 1051 poolid = le32_to_cpu(pgid.pool);
diff --git a/net/compat.c b/net/compat.c
index e055708b8ec..e240441a231 100644
--- a/net/compat.c
+++ b/net/compat.c
@@ -741,13 +741,13 @@ static unsigned char nas[21] = {
741}; 741};
742#undef AL 742#undef AL
743 743
744asmlinkage long compat_sys_sendmsg(int fd, struct compat_msghdr __user *msg, unsigned flags) 744asmlinkage long compat_sys_sendmsg(int fd, struct compat_msghdr __user *msg, unsigned int flags)
745{ 745{
746 return sys_sendmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT); 746 return sys_sendmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT);
747} 747}
748 748
749asmlinkage long compat_sys_sendmmsg(int fd, struct compat_mmsghdr __user *mmsg, 749asmlinkage long compat_sys_sendmmsg(int fd, struct compat_mmsghdr __user *mmsg,
750 unsigned vlen, unsigned int flags) 750 unsigned int vlen, unsigned int flags)
751{ 751{
752 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, 752 return __sys_sendmmsg(fd, (struct mmsghdr __user *)mmsg, vlen,
753 flags | MSG_CMSG_COMPAT); 753 flags | MSG_CMSG_COMPAT);
@@ -758,20 +758,20 @@ asmlinkage long compat_sys_recvmsg(int fd, struct compat_msghdr __user *msg, uns
758 return sys_recvmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT); 758 return sys_recvmsg(fd, (struct msghdr __user *)msg, flags | MSG_CMSG_COMPAT);
759} 759}
760 760
761asmlinkage long compat_sys_recv(int fd, void __user *buf, size_t len, unsigned flags) 761asmlinkage long compat_sys_recv(int fd, void __user *buf, size_t len, unsigned int flags)
762{ 762{
763 return sys_recv(fd, buf, len, flags | MSG_CMSG_COMPAT); 763 return sys_recv(fd, buf, len, flags | MSG_CMSG_COMPAT);
764} 764}
765 765
766asmlinkage long compat_sys_recvfrom(int fd, void __user *buf, size_t len, 766asmlinkage long compat_sys_recvfrom(int fd, void __user *buf, size_t len,
767 unsigned flags, struct sockaddr __user *addr, 767 unsigned int flags, struct sockaddr __user *addr,
768 int __user *addrlen) 768 int __user *addrlen)
769{ 769{
770 return sys_recvfrom(fd, buf, len, flags | MSG_CMSG_COMPAT, addr, addrlen); 770 return sys_recvfrom(fd, buf, len, flags | MSG_CMSG_COMPAT, addr, addrlen);
771} 771}
772 772
773asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg, 773asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg,
774 unsigned vlen, unsigned int flags, 774 unsigned int vlen, unsigned int flags,
775 struct compat_timespec __user *timeout) 775 struct compat_timespec __user *timeout)
776{ 776{
777 int datagrams; 777 int datagrams;
diff --git a/net/core/datagram.c b/net/core/datagram.c
index e4fbfd6e2bd..ae6acf6a3de 100644
--- a/net/core/datagram.c
+++ b/net/core/datagram.c
@@ -65,7 +65,7 @@ static inline int connection_based(struct sock *sk)
65 return sk->sk_type == SOCK_SEQPACKET || sk->sk_type == SOCK_STREAM; 65 return sk->sk_type == SOCK_SEQPACKET || sk->sk_type == SOCK_STREAM;
66} 66}
67 67
68static int receiver_wake_function(wait_queue_t *wait, unsigned mode, int sync, 68static int receiver_wake_function(wait_queue_t *wait, unsigned int mode, int sync,
69 void *key) 69 void *key)
70{ 70{
71 unsigned long bits = (unsigned long)key; 71 unsigned long bits = (unsigned long)key;
@@ -158,7 +158,7 @@ out_noerr:
158 * quite explicitly by POSIX 1003.1g, don't change them without having 158 * quite explicitly by POSIX 1003.1g, don't change them without having
159 * the standard around please. 159 * the standard around please.
160 */ 160 */
161struct sk_buff *__skb_recv_datagram(struct sock *sk, unsigned flags, 161struct sk_buff *__skb_recv_datagram(struct sock *sk, unsigned int flags,
162 int *peeked, int *off, int *err) 162 int *peeked, int *off, int *err)
163{ 163{
164 struct sk_buff *skb; 164 struct sk_buff *skb;
@@ -216,7 +216,7 @@ no_packet:
216} 216}
217EXPORT_SYMBOL(__skb_recv_datagram); 217EXPORT_SYMBOL(__skb_recv_datagram);
218 218
219struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, 219struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned int flags,
220 int noblock, int *err) 220 int noblock, int *err)
221{ 221{
222 int peeked, off = 0; 222 int peeked, off = 0;
diff --git a/net/core/dev.c b/net/core/dev.c
index 9bb8f87c4cd..c93812733f1 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -208,7 +208,8 @@ static inline void dev_base_seq_inc(struct net *net)
208 208
209static inline struct hlist_head *dev_name_hash(struct net *net, const char *name) 209static inline struct hlist_head *dev_name_hash(struct net *net, const char *name)
210{ 210{
211 unsigned hash = full_name_hash(name, strnlen(name, IFNAMSIZ)); 211 unsigned int hash = full_name_hash(name, strnlen(name, IFNAMSIZ));
212
212 return &net->dev_name_head[hash_32(hash, NETDEV_HASHBITS)]; 213 return &net->dev_name_head[hash_32(hash, NETDEV_HASHBITS)];
213} 214}
214 215
@@ -4618,9 +4619,9 @@ void dev_set_rx_mode(struct net_device *dev)
4618 * 4619 *
4619 * Get the combination of flag bits exported through APIs to userspace. 4620 * Get the combination of flag bits exported through APIs to userspace.
4620 */ 4621 */
4621unsigned dev_get_flags(const struct net_device *dev) 4622unsigned int dev_get_flags(const struct net_device *dev)
4622{ 4623{
4623 unsigned flags; 4624 unsigned int flags;
4624 4625
4625 flags = (dev->flags & ~(IFF_PROMISC | 4626 flags = (dev->flags & ~(IFF_PROMISC |
4626 IFF_ALLMULTI | 4627 IFF_ALLMULTI |
diff --git a/net/core/filter.c b/net/core/filter.c
index 95d05a6012d..47a5f055e7f 100644
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -531,7 +531,7 @@ int sk_chk_filter(struct sock_filter *filter, unsigned int flen)
531 * Compare this with conditional jumps below, 531 * Compare this with conditional jumps below,
532 * where offsets are limited. --ANK (981016) 532 * where offsets are limited. --ANK (981016)
533 */ 533 */
534 if (ftest->k >= (unsigned)(flen-pc-1)) 534 if (ftest->k >= (unsigned int)(flen-pc-1))
535 return -EINVAL; 535 return -EINVAL;
536 break; 536 break;
537 case BPF_S_JMP_JEQ_K: 537 case BPF_S_JMP_JEQ_K:
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 2d3e6fcdc9c..434eed8c618 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -890,7 +890,7 @@ static void neigh_timer_handler(unsigned long arg)
890{ 890{
891 unsigned long now, next; 891 unsigned long now, next;
892 struct neighbour *neigh = (struct neighbour *)arg; 892 struct neighbour *neigh = (struct neighbour *)arg;
893 unsigned state; 893 unsigned int state;
894 int notify = 0; 894 int notify = 0;
895 895
896 write_lock(&neigh->lock); 896 write_lock(&neigh->lock);
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index 97d0f2453a0..fdf9e61d065 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -231,7 +231,7 @@ NETDEVICE_SHOW(flags, fmt_hex);
231 231
232static int change_flags(struct net_device *net, unsigned long new_flags) 232static int change_flags(struct net_device *net, unsigned long new_flags)
233{ 233{
234 return dev_change_flags(net, (unsigned) new_flags); 234 return dev_change_flags(net, (unsigned int) new_flags);
235} 235}
236 236
237static ssize_t store_flags(struct device *dev, struct device_attribute *attr, 237static ssize_t store_flags(struct device *dev, struct device_attribute *attr,
@@ -581,7 +581,7 @@ static ssize_t store_rps_map(struct netdev_rx_queue *queue,
581 return err; 581 return err;
582 } 582 }
583 583
584 map = kzalloc(max_t(unsigned, 584 map = kzalloc(max_t(unsigned int,
585 RPS_MAP_SIZE(cpumask_weight(mask)), L1_CACHE_BYTES), 585 RPS_MAP_SIZE(cpumask_weight(mask)), L1_CACHE_BYTES),
586 GFP_KERNEL); 586 GFP_KERNEL);
587 if (!map) { 587 if (!map) {
@@ -902,7 +902,7 @@ static ssize_t bql_set_hold_time(struct netdev_queue *queue,
902 const char *buf, size_t len) 902 const char *buf, size_t len)
903{ 903{
904 struct dql *dql = &queue->dql; 904 struct dql *dql = &queue->dql;
905 unsigned value; 905 unsigned int value;
906 int err; 906 int err;
907 907
908 err = kstrtouint(buf, 10, &value); 908 err = kstrtouint(buf, 10, &value);
@@ -1106,7 +1106,7 @@ static ssize_t store_xps_map(struct netdev_queue *queue,
1106 return err; 1106 return err;
1107 } 1107 }
1108 1108
1109 new_dev_maps = kzalloc(max_t(unsigned, 1109 new_dev_maps = kzalloc(max_t(unsigned int,
1110 XPS_DEV_MAPS_SIZE, L1_CACHE_BYTES), GFP_KERNEL); 1110 XPS_DEV_MAPS_SIZE, L1_CACHE_BYTES), GFP_KERNEL);
1111 if (!new_dev_maps) { 1111 if (!new_dev_maps) {
1112 free_cpumask_var(mask); 1112 free_cpumask_var(mask);
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 4d8ce93cd50..ffb5d382f24 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -320,7 +320,7 @@ struct pktgen_dev {
320 (see RFC 3260, sec. 4) */ 320 (see RFC 3260, sec. 4) */
321 321
322 /* MPLS */ 322 /* MPLS */
323 unsigned nr_labels; /* Depth of stack, 0 = no MPLS */ 323 unsigned int nr_labels; /* Depth of stack, 0 = no MPLS */
324 __be32 labels[MAX_MPLS_LABELS]; 324 __be32 labels[MAX_MPLS_LABELS];
325 325
326 /* VLAN/SVLAN (802.1Q/Q-in-Q) */ 326 /* VLAN/SVLAN (802.1Q/Q-in-Q) */
@@ -373,10 +373,10 @@ struct pktgen_dev {
373 */ 373 */
374 char odevname[32]; 374 char odevname[32];
375 struct flow_state *flows; 375 struct flow_state *flows;
376 unsigned cflows; /* Concurrent flows (config) */ 376 unsigned int cflows; /* Concurrent flows (config) */
377 unsigned lflow; /* Flow length (config) */ 377 unsigned int lflow; /* Flow length (config) */
378 unsigned nflows; /* accumulated flows (stats) */ 378 unsigned int nflows; /* accumulated flows (stats) */
379 unsigned curfl; /* current sequenced flow (state)*/ 379 unsigned int curfl; /* current sequenced flow (state)*/
380 380
381 u16 queue_map_min; 381 u16 queue_map_min;
382 u16 queue_map_max; 382 u16 queue_map_max;
@@ -592,7 +592,7 @@ static int pktgen_if_show(struct seq_file *seq, void *v)
592 pkt_dev->src_mac_count, pkt_dev->dst_mac_count); 592 pkt_dev->src_mac_count, pkt_dev->dst_mac_count);
593 593
594 if (pkt_dev->nr_labels) { 594 if (pkt_dev->nr_labels) {
595 unsigned i; 595 unsigned int i;
596 seq_printf(seq, " mpls: "); 596 seq_printf(seq, " mpls: ");
597 for (i = 0; i < pkt_dev->nr_labels; i++) 597 for (i = 0; i < pkt_dev->nr_labels; i++)
598 seq_printf(seq, "%08x%s", ntohl(pkt_dev->labels[i]), 598 seq_printf(seq, "%08x%s", ntohl(pkt_dev->labels[i]),
@@ -812,7 +812,7 @@ done_str:
812 812
813static ssize_t get_labels(const char __user *buffer, struct pktgen_dev *pkt_dev) 813static ssize_t get_labels(const char __user *buffer, struct pktgen_dev *pkt_dev)
814{ 814{
815 unsigned n = 0; 815 unsigned int n = 0;
816 char c; 816 char c;
817 ssize_t i = 0; 817 ssize_t i = 0;
818 int len; 818 int len;
@@ -1510,7 +1510,7 @@ static ssize_t pktgen_if_write(struct file *file,
1510 } 1510 }
1511 1511
1512 if (!strcmp(name, "mpls")) { 1512 if (!strcmp(name, "mpls")) {
1513 unsigned n, cnt; 1513 unsigned int n, cnt;
1514 1514
1515 len = get_labels(&user_buffer[i], pkt_dev); 1515 len = get_labels(&user_buffer[i], pkt_dev);
1516 if (len < 0) 1516 if (len < 0)
@@ -2324,7 +2324,7 @@ static void mod_cur_headers(struct pktgen_dev *pkt_dev)
2324 } 2324 }
2325 2325
2326 if (pkt_dev->flags & F_MPLS_RND) { 2326 if (pkt_dev->flags & F_MPLS_RND) {
2327 unsigned i; 2327 unsigned int i;
2328 for (i = 0; i < pkt_dev->nr_labels; i++) 2328 for (i = 0; i < pkt_dev->nr_labels; i++)
2329 if (pkt_dev->labels[i] & MPLS_STACK_BOTTOM) 2329 if (pkt_dev->labels[i] & MPLS_STACK_BOTTOM)
2330 pkt_dev->labels[i] = MPLS_STACK_BOTTOM | 2330 pkt_dev->labels[i] = MPLS_STACK_BOTTOM |
@@ -2550,7 +2550,7 @@ err:
2550 2550
2551static void mpls_push(__be32 *mpls, struct pktgen_dev *pkt_dev) 2551static void mpls_push(__be32 *mpls, struct pktgen_dev *pkt_dev)
2552{ 2552{
2553 unsigned i; 2553 unsigned int i;
2554 for (i = 0; i < pkt_dev->nr_labels; i++) 2554 for (i = 0; i < pkt_dev->nr_labels; i++)
2555 *mpls++ = pkt_dev->labels[i] & ~MPLS_STACK_BOTTOM; 2555 *mpls++ = pkt_dev->labels[i] & ~MPLS_STACK_BOTTOM;
2556 2556
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 4a0d8cfff2a..2ff6fe4bada 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -552,7 +552,7 @@ void __rta_fill(struct sk_buff *skb, int attrtype, int attrlen, const void *data
552} 552}
553EXPORT_SYMBOL(__rta_fill); 553EXPORT_SYMBOL(__rta_fill);
554 554
555int rtnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, unsigned group, int echo) 555int rtnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, unsigned int group, int echo)
556{ 556{
557 struct sock *rtnl = net->rtnl; 557 struct sock *rtnl = net->rtnl;
558 int err = 0; 558 int err = 0;
@@ -1953,7 +1953,7 @@ static int rtnl_dump_all(struct sk_buff *skb, struct netlink_callback *cb)
1953 return skb->len; 1953 return skb->len;
1954} 1954}
1955 1955
1956void rtmsg_ifinfo(int type, struct net_device *dev, unsigned change) 1956void rtmsg_ifinfo(int type, struct net_device *dev, unsigned int change)
1957{ 1957{
1958 struct net *net = dev_net(dev); 1958 struct net *net = dev_net(dev);
1959 struct sk_buff *skb; 1959 struct sk_buff *skb;
@@ -2048,7 +2048,7 @@ static int rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
2048 struct rtattr *attr = (void *)nlh + NLMSG_ALIGN(min_len); 2048 struct rtattr *attr = (void *)nlh + NLMSG_ALIGN(min_len);
2049 2049
2050 while (RTA_OK(attr, attrlen)) { 2050 while (RTA_OK(attr, attrlen)) {
2051 unsigned flavor = attr->rta_type; 2051 unsigned int flavor = attr->rta_type;
2052 if (flavor) { 2052 if (flavor) {
2053 if (flavor > rta_max[sz_idx]) 2053 if (flavor > rta_max[sz_idx])
2054 return -EINVAL; 2054 return -EINVAL;
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 35b3a685e34..8f0d68d1436 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -3166,7 +3166,7 @@ int sock_queue_err_skb(struct sock *sk, struct sk_buff *skb)
3166 int len = skb->len; 3166 int len = skb->len;
3167 3167
3168 if (atomic_read(&sk->sk_rmem_alloc) + skb->truesize >= 3168 if (atomic_read(&sk->sk_rmem_alloc) + skb->truesize >=
3169 (unsigned)sk->sk_rcvbuf) 3169 (unsigned int)sk->sk_rcvbuf)
3170 return -ENOMEM; 3170 return -ENOMEM;
3171 3171
3172 skb_orphan(skb); 3172 skb_orphan(skb);
diff --git a/net/core/sock.c b/net/core/sock.c
index b2e14c07d92..c7e60eac639 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -1534,7 +1534,7 @@ struct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force,
1534 */ 1534 */
1535void *sock_kmalloc(struct sock *sk, int size, gfp_t priority) 1535void *sock_kmalloc(struct sock *sk, int size, gfp_t priority)
1536{ 1536{
1537 if ((unsigned)size <= sysctl_optmem_max && 1537 if ((unsigned int)size <= sysctl_optmem_max &&
1538 atomic_read(&sk->sk_omem_alloc) + size < sysctl_optmem_max) { 1538 atomic_read(&sk->sk_omem_alloc) + size < sysctl_optmem_max) {
1539 void *mem; 1539 void *mem;
1540 /* First do the add, to avoid the race if kmalloc 1540 /* First do the add, to avoid the race if kmalloc
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c
index 70bfaf2d196..8c67bedf85b 100644
--- a/net/dccp/ccids/ccid3.c
+++ b/net/dccp/ccids/ccid3.c
@@ -100,7 +100,7 @@ static void ccid3_update_send_interval(struct ccid3_hc_tx_sock *hc)
100 100
101 DCCP_BUG_ON(hc->tx_t_ipi == 0); 101 DCCP_BUG_ON(hc->tx_t_ipi == 0);
102 ccid3_pr_debug("t_ipi=%u, s=%u, X=%u\n", hc->tx_t_ipi, 102 ccid3_pr_debug("t_ipi=%u, s=%u, X=%u\n", hc->tx_t_ipi,
103 hc->tx_s, (unsigned)(hc->tx_x >> 6)); 103 hc->tx_s, (unsigned int)(hc->tx_x >> 6));
104} 104}
105 105
106static u32 ccid3_hc_tx_idle_rtt(struct ccid3_hc_tx_sock *hc, ktime_t now) 106static u32 ccid3_hc_tx_idle_rtt(struct ccid3_hc_tx_sock *hc, ktime_t now)
@@ -153,9 +153,9 @@ static void ccid3_hc_tx_update_x(struct sock *sk, ktime_t *stamp)
153 153
154 if (hc->tx_x != old_x) { 154 if (hc->tx_x != old_x) {
155 ccid3_pr_debug("X_prev=%u, X_now=%u, X_calc=%u, " 155 ccid3_pr_debug("X_prev=%u, X_now=%u, X_calc=%u, "
156 "X_recv=%u\n", (unsigned)(old_x >> 6), 156 "X_recv=%u\n", (unsigned int)(old_x >> 6),
157 (unsigned)(hc->tx_x >> 6), hc->tx_x_calc, 157 (unsigned int)(hc->tx_x >> 6), hc->tx_x_calc,
158 (unsigned)(hc->tx_x_recv >> 6)); 158 (unsigned int)(hc->tx_x_recv >> 6));
159 159
160 ccid3_update_send_interval(hc); 160 ccid3_update_send_interval(hc);
161 } 161 }
@@ -425,8 +425,8 @@ done_computing_x:
425 "p=%u, X_calc=%u, X_recv=%u, X=%u\n", 425 "p=%u, X_calc=%u, X_recv=%u, X=%u\n",
426 dccp_role(sk), sk, hc->tx_rtt, r_sample, 426 dccp_role(sk), sk, hc->tx_rtt, r_sample,
427 hc->tx_s, hc->tx_p, hc->tx_x_calc, 427 hc->tx_s, hc->tx_p, hc->tx_x_calc,
428 (unsigned)(hc->tx_x_recv >> 6), 428 (unsigned int)(hc->tx_x_recv >> 6),
429 (unsigned)(hc->tx_x >> 6)); 429 (unsigned int)(hc->tx_x >> 6));
430 430
431 /* unschedule no feedback timer */ 431 /* unschedule no feedback timer */
432 sk_stop_timer(sk, &hc->tx_no_feedback_timer); 432 sk_stop_timer(sk, &hc->tx_no_feedback_timer);
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h
index 29d6bb629a6..9040be049d8 100644
--- a/net/dccp/dccp.h
+++ b/net/dccp/dccp.h
@@ -75,7 +75,7 @@ extern void dccp_time_wait(struct sock *sk, int state, int timeo);
75 * state, about 60 seconds */ 75 * state, about 60 seconds */
76 76
77/* RFC 1122, 4.2.3.1 initial RTO value */ 77/* RFC 1122, 4.2.3.1 initial RTO value */
78#define DCCP_TIMEOUT_INIT ((unsigned)(3 * HZ)) 78#define DCCP_TIMEOUT_INIT ((unsigned int)(3 * HZ))
79 79
80/* 80/*
81 * The maximum back-off value for retransmissions. This is needed for 81 * The maximum back-off value for retransmissions. This is needed for
@@ -84,7 +84,7 @@ extern void dccp_time_wait(struct sock *sk, int state, int timeo);
84 * - feature-negotiation retransmission (sec. 6.6.3), 84 * - feature-negotiation retransmission (sec. 6.6.3),
85 * - Acks in client-PARTOPEN state (sec. 8.1.5). 85 * - Acks in client-PARTOPEN state (sec. 8.1.5).
86 */ 86 */
87#define DCCP_RTO_MAX ((unsigned)(64 * HZ)) 87#define DCCP_RTO_MAX ((unsigned int)(64 * HZ))
88 88
89/* 89/*
90 * RTT sampling: sanity bounds and fallback RTT value from RFC 4340, section 3.4 90 * RTT sampling: sanity bounds and fallback RTT value from RFC 4340, section 3.4
@@ -287,9 +287,9 @@ extern struct sock *dccp_check_req(struct sock *sk, struct sk_buff *skb,
287extern int dccp_child_process(struct sock *parent, struct sock *child, 287extern int dccp_child_process(struct sock *parent, struct sock *child,
288 struct sk_buff *skb); 288 struct sk_buff *skb);
289extern int dccp_rcv_state_process(struct sock *sk, struct sk_buff *skb, 289extern int dccp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
290 struct dccp_hdr *dh, unsigned len); 290 struct dccp_hdr *dh, unsigned int len);
291extern int dccp_rcv_established(struct sock *sk, struct sk_buff *skb, 291extern int dccp_rcv_established(struct sock *sk, struct sk_buff *skb,
292 const struct dccp_hdr *dh, const unsigned len); 292 const struct dccp_hdr *dh, const unsigned int len);
293 293
294extern int dccp_init_sock(struct sock *sk, const __u8 ctl_sock_initialized); 294extern int dccp_init_sock(struct sock *sk, const __u8 ctl_sock_initialized);
295extern void dccp_destroy_sock(struct sock *sk); 295extern void dccp_destroy_sock(struct sock *sk);
diff --git a/net/dccp/input.c b/net/dccp/input.c
index 51d5fe5fffb..bc93a333931 100644
--- a/net/dccp/input.c
+++ b/net/dccp/input.c
@@ -285,7 +285,7 @@ static int dccp_check_seqno(struct sock *sk, struct sk_buff *skb)
285} 285}
286 286
287static int __dccp_rcv_established(struct sock *sk, struct sk_buff *skb, 287static int __dccp_rcv_established(struct sock *sk, struct sk_buff *skb,
288 const struct dccp_hdr *dh, const unsigned len) 288 const struct dccp_hdr *dh, const unsigned int len)
289{ 289{
290 struct dccp_sock *dp = dccp_sk(sk); 290 struct dccp_sock *dp = dccp_sk(sk);
291 291
@@ -366,7 +366,7 @@ discard:
366} 366}
367 367
368int dccp_rcv_established(struct sock *sk, struct sk_buff *skb, 368int dccp_rcv_established(struct sock *sk, struct sk_buff *skb,
369 const struct dccp_hdr *dh, const unsigned len) 369 const struct dccp_hdr *dh, const unsigned int len)
370{ 370{
371 if (dccp_check_seqno(sk, skb)) 371 if (dccp_check_seqno(sk, skb))
372 goto discard; 372 goto discard;
@@ -388,7 +388,7 @@ EXPORT_SYMBOL_GPL(dccp_rcv_established);
388static int dccp_rcv_request_sent_state_process(struct sock *sk, 388static int dccp_rcv_request_sent_state_process(struct sock *sk,
389 struct sk_buff *skb, 389 struct sk_buff *skb,
390 const struct dccp_hdr *dh, 390 const struct dccp_hdr *dh,
391 const unsigned len) 391 const unsigned int len)
392{ 392{
393 /* 393 /*
394 * Step 4: Prepare sequence numbers in REQUEST 394 * Step 4: Prepare sequence numbers in REQUEST
@@ -521,7 +521,7 @@ unable_to_proceed:
521static int dccp_rcv_respond_partopen_state_process(struct sock *sk, 521static int dccp_rcv_respond_partopen_state_process(struct sock *sk,
522 struct sk_buff *skb, 522 struct sk_buff *skb,
523 const struct dccp_hdr *dh, 523 const struct dccp_hdr *dh,
524 const unsigned len) 524 const unsigned int len)
525{ 525{
526 struct dccp_sock *dp = dccp_sk(sk); 526 struct dccp_sock *dp = dccp_sk(sk);
527 u32 sample = dp->dccps_options_received.dccpor_timestamp_echo; 527 u32 sample = dp->dccps_options_received.dccpor_timestamp_echo;
@@ -572,7 +572,7 @@ static int dccp_rcv_respond_partopen_state_process(struct sock *sk,
572} 572}
573 573
574int dccp_rcv_state_process(struct sock *sk, struct sk_buff *skb, 574int dccp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
575 struct dccp_hdr *dh, unsigned len) 575 struct dccp_hdr *dh, unsigned int len)
576{ 576{
577 struct dccp_sock *dp = dccp_sk(sk); 577 struct dccp_sock *dp = dccp_sk(sk);
578 struct dccp_skb_cb *dcb = DCCP_SKB_CB(skb); 578 struct dccp_skb_cb *dcb = DCCP_SKB_CB(skb);
diff --git a/net/decnet/af_decnet.c b/net/decnet/af_decnet.c
index 4136987d94d..2ba1a2814c2 100644
--- a/net/decnet/af_decnet.c
+++ b/net/decnet/af_decnet.c
@@ -250,7 +250,7 @@ static void dn_unhash_sock_bh(struct sock *sk)
250static struct hlist_head *listen_hash(struct sockaddr_dn *addr) 250static struct hlist_head *listen_hash(struct sockaddr_dn *addr)
251{ 251{
252 int i; 252 int i;
253 unsigned hash = addr->sdn_objnum; 253 unsigned int hash = addr->sdn_objnum;
254 254
255 if (hash == 0) { 255 if (hash == 0) {
256 hash = addr->sdn_objnamel; 256 hash = addr->sdn_objnamel;
@@ -1844,9 +1844,9 @@ static inline int dn_queue_too_long(struct dn_scp *scp, struct sk_buff_head *que
1844 * inclusion (or not) of the two 16 bit acknowledgement fields so it doesn't 1844 * inclusion (or not) of the two 16 bit acknowledgement fields so it doesn't
1845 * make much practical difference. 1845 * make much practical difference.
1846 */ 1846 */
1847unsigned dn_mss_from_pmtu(struct net_device *dev, int mtu) 1847unsigned int dn_mss_from_pmtu(struct net_device *dev, int mtu)
1848{ 1848{
1849 unsigned mss = 230 - DN_MAX_NSP_DATA_HEADER; 1849 unsigned int mss = 230 - DN_MAX_NSP_DATA_HEADER;
1850 if (dev) { 1850 if (dev) {
1851 struct dn_dev *dn_db = rcu_dereference_raw(dev->dn_ptr); 1851 struct dn_dev *dn_db = rcu_dereference_raw(dev->dn_ptr);
1852 mtu -= LL_RESERVED_SPACE(dev); 1852 mtu -= LL_RESERVED_SPACE(dev);
diff --git a/net/decnet/dn_fib.c b/net/decnet/dn_fib.c
index 9e885f180b6..65a8cd7891f 100644
--- a/net/decnet/dn_fib.c
+++ b/net/decnet/dn_fib.c
@@ -302,11 +302,12 @@ struct dn_fib_info *dn_fib_create_info(const struct rtmsg *r, struct dn_kern_rta
302 struct rtattr *attr = RTA_DATA(rta->rta_mx); 302 struct rtattr *attr = RTA_DATA(rta->rta_mx);
303 303
304 while(RTA_OK(attr, attrlen)) { 304 while(RTA_OK(attr, attrlen)) {
305 unsigned flavour = attr->rta_type; 305 unsigned int flavour = attr->rta_type;
306
306 if (flavour) { 307 if (flavour) {
307 if (flavour > RTAX_MAX) 308 if (flavour > RTAX_MAX)
308 goto err_inval; 309 goto err_inval;
309 fi->fib_metrics[flavour-1] = *(unsigned*)RTA_DATA(attr); 310 fi->fib_metrics[flavour-1] = *(unsigned int *)RTA_DATA(attr);
310 } 311 }
311 attr = RTA_NEXT(attr, attrlen); 312 attr = RTA_NEXT(attr, attrlen);
312 } 313 }
diff --git a/net/decnet/dn_nsp_in.c b/net/decnet/dn_nsp_in.c
index f6544b2c91b..58084f37151 100644
--- a/net/decnet/dn_nsp_in.c
+++ b/net/decnet/dn_nsp_in.c
@@ -588,7 +588,7 @@ static __inline__ int dn_queue_skb(struct sock *sk, struct sk_buff *skb, int sig
588 number of warnings when compiling with -W --ANK 588 number of warnings when compiling with -W --ANK
589 */ 589 */
590 if (atomic_read(&sk->sk_rmem_alloc) + skb->truesize >= 590 if (atomic_read(&sk->sk_rmem_alloc) + skb->truesize >=
591 (unsigned)sk->sk_rcvbuf) { 591 (unsigned int)sk->sk_rcvbuf) {
592 err = -ENOMEM; 592 err = -ENOMEM;
593 goto out; 593 goto out;
594 } 594 }
diff --git a/net/decnet/dn_nsp_out.c b/net/decnet/dn_nsp_out.c
index e446e85e64a..b952f88d9c1 100644
--- a/net/decnet/dn_nsp_out.c
+++ b/net/decnet/dn_nsp_out.c
@@ -209,7 +209,7 @@ static void dn_nsp_rtt(struct sock *sk, long rtt)
209 * 209 *
210 * Returns: The number of times the packet has been sent previously 210 * Returns: The number of times the packet has been sent previously
211 */ 211 */
212static inline unsigned dn_nsp_clone_and_send(struct sk_buff *skb, 212static inline unsigned int dn_nsp_clone_and_send(struct sk_buff *skb,
213 gfp_t gfp) 213 gfp_t gfp)
214{ 214{
215 struct dn_skb_cb *cb = DN_SKB_CB(skb); 215 struct dn_skb_cb *cb = DN_SKB_CB(skb);
@@ -240,7 +240,7 @@ void dn_nsp_output(struct sock *sk)
240{ 240{
241 struct dn_scp *scp = DN_SK(sk); 241 struct dn_scp *scp = DN_SK(sk);
242 struct sk_buff *skb; 242 struct sk_buff *skb;
243 unsigned reduce_win = 0; 243 unsigned int reduce_win = 0;
244 244
245 /* 245 /*
246 * First we check for otherdata/linkservice messages 246 * First we check for otherdata/linkservice messages
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c
index 80a3de4906d..7e1f8788da1 100644
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -122,7 +122,7 @@ static int dn_route_input(struct sk_buff *);
122static void dn_run_flush(unsigned long dummy); 122static void dn_run_flush(unsigned long dummy);
123 123
124static struct dn_rt_hash_bucket *dn_rt_hash_table; 124static struct dn_rt_hash_bucket *dn_rt_hash_table;
125static unsigned dn_rt_hash_mask; 125static unsigned int dn_rt_hash_mask;
126 126
127static struct timer_list dn_route_timer; 127static struct timer_list dn_route_timer;
128static DEFINE_TIMER(dn_rt_flush_timer, dn_run_flush, 0, 0); 128static DEFINE_TIMER(dn_rt_flush_timer, dn_run_flush, 0, 0);
@@ -149,13 +149,13 @@ static void dn_dst_destroy(struct dst_entry *dst)
149 dst_destroy_metrics_generic(dst); 149 dst_destroy_metrics_generic(dst);
150} 150}
151 151
152static __inline__ unsigned dn_hash(__le16 src, __le16 dst) 152static __inline__ unsigned int dn_hash(__le16 src, __le16 dst)
153{ 153{
154 __u16 tmp = (__u16 __force)(src ^ dst); 154 __u16 tmp = (__u16 __force)(src ^ dst);
155 tmp ^= (tmp >> 3); 155 tmp ^= (tmp >> 3);
156 tmp ^= (tmp >> 5); 156 tmp ^= (tmp >> 5);
157 tmp ^= (tmp >> 10); 157 tmp ^= (tmp >> 10);
158 return dn_rt_hash_mask & (unsigned)tmp; 158 return dn_rt_hash_mask & (unsigned int)tmp;
159} 159}
160 160
161static inline void dnrt_free(struct dn_route *rt) 161static inline void dnrt_free(struct dn_route *rt)
@@ -297,7 +297,7 @@ static inline int compare_keys(struct flowidn *fl1, struct flowidn *fl2)
297 (fl1->flowidn_iif ^ fl2->flowidn_iif)) == 0; 297 (fl1->flowidn_iif ^ fl2->flowidn_iif)) == 0;
298} 298}
299 299
300static int dn_insert_route(struct dn_route *rt, unsigned hash, struct dn_route **rp) 300static int dn_insert_route(struct dn_route *rt, unsigned int hash, struct dn_route **rp)
301{ 301{
302 struct dn_route *rth; 302 struct dn_route *rth;
303 struct dn_route __rcu **rthp; 303 struct dn_route __rcu **rthp;
@@ -934,8 +934,8 @@ static int dn_route_output_slow(struct dst_entry **pprt, const struct flowidn *o
934 struct dn_route *rt = NULL; 934 struct dn_route *rt = NULL;
935 struct net_device *dev_out = NULL, *dev; 935 struct net_device *dev_out = NULL, *dev;
936 struct neighbour *neigh = NULL; 936 struct neighbour *neigh = NULL;
937 unsigned hash; 937 unsigned int hash;
938 unsigned flags = 0; 938 unsigned int flags = 0;
939 struct dn_fib_res res = { .fi = NULL, .type = RTN_UNICAST }; 939 struct dn_fib_res res = { .fi = NULL, .type = RTN_UNICAST };
940 int err; 940 int err;
941 int free_res = 0; 941 int free_res = 0;
@@ -1209,7 +1209,7 @@ e_neighbour:
1209 */ 1209 */
1210static int __dn_route_output_key(struct dst_entry **pprt, const struct flowidn *flp, int flags) 1210static int __dn_route_output_key(struct dst_entry **pprt, const struct flowidn *flp, int flags)
1211{ 1211{
1212 unsigned hash = dn_hash(flp->saddr, flp->daddr); 1212 unsigned int hash = dn_hash(flp->saddr, flp->daddr);
1213 struct dn_route *rt = NULL; 1213 struct dn_route *rt = NULL;
1214 1214
1215 if (!(flags & MSG_TRYHARD)) { 1215 if (!(flags & MSG_TRYHARD)) {
@@ -1275,7 +1275,7 @@ static int dn_route_input_slow(struct sk_buff *skb)
1275 struct net_device *out_dev = NULL; 1275 struct net_device *out_dev = NULL;
1276 struct dn_dev *dn_db; 1276 struct dn_dev *dn_db;
1277 struct neighbour *neigh = NULL; 1277 struct neighbour *neigh = NULL;
1278 unsigned hash; 1278 unsigned int hash;
1279 int flags = 0; 1279 int flags = 0;
1280 __le16 gateway = 0; 1280 __le16 gateway = 0;
1281 __le16 local_src = 0; 1281 __le16 local_src = 0;
@@ -1490,7 +1490,7 @@ static int dn_route_input(struct sk_buff *skb)
1490{ 1490{
1491 struct dn_route *rt; 1491 struct dn_route *rt;
1492 struct dn_skb_cb *cb = DN_SKB_CB(skb); 1492 struct dn_skb_cb *cb = DN_SKB_CB(skb);
1493 unsigned hash = dn_hash(cb->src, cb->dst); 1493 unsigned int hash = dn_hash(cb->src, cb->dst);
1494 1494
1495 if (skb_dst(skb)) 1495 if (skb_dst(skb))
1496 return 0; 1496 return 0;
diff --git a/net/decnet/dn_rules.c b/net/decnet/dn_rules.c
index 7399e3d5192..e65f2c856e0 100644
--- a/net/decnet/dn_rules.c
+++ b/net/decnet/dn_rules.c
@@ -177,11 +177,11 @@ static int dn_fib_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh,
177 return 1; 177 return 1;
178} 178}
179 179
180unsigned dnet_addr_type(__le16 addr) 180unsigned int dnet_addr_type(__le16 addr)
181{ 181{
182 struct flowidn fld = { .daddr = addr }; 182 struct flowidn fld = { .daddr = addr };
183 struct dn_fib_res res; 183 struct dn_fib_res res;
184 unsigned ret = RTN_UNICAST; 184 unsigned int ret = RTN_UNICAST;
185 struct dn_fib_table *tb = dn_fib_get_table(RT_TABLE_LOCAL, 0); 185 struct dn_fib_table *tb = dn_fib_get_table(RT_TABLE_LOCAL, 0);
186 186
187 res.r = NULL; 187 res.r = NULL;
diff --git a/net/dns_resolver/dns_key.c b/net/dns_resolver/dns_key.c
index c73bba326d7..6f70ea935b0 100644
--- a/net/dns_resolver/dns_key.c
+++ b/net/dns_resolver/dns_key.c
@@ -38,7 +38,7 @@ MODULE_DESCRIPTION("DNS Resolver");
38MODULE_AUTHOR("Wang Lei"); 38MODULE_AUTHOR("Wang Lei");
39MODULE_LICENSE("GPL"); 39MODULE_LICENSE("GPL");
40 40
41unsigned dns_resolver_debug; 41unsigned int dns_resolver_debug;
42module_param_named(debug, dns_resolver_debug, uint, S_IWUSR | S_IRUGO); 42module_param_named(debug, dns_resolver_debug, uint, S_IWUSR | S_IRUGO);
43MODULE_PARM_DESC(debug, "DNS Resolver debugging mask"); 43MODULE_PARM_DESC(debug, "DNS Resolver debugging mask");
44 44
diff --git a/net/dns_resolver/internal.h b/net/dns_resolver/internal.h
index 189ca9e9b78..17c7886b5b3 100644
--- a/net/dns_resolver/internal.h
+++ b/net/dns_resolver/internal.h
@@ -31,7 +31,7 @@ extern const struct cred *dns_resolver_cache;
31/* 31/*
32 * debug tracing 32 * debug tracing
33 */ 33 */
34extern unsigned dns_resolver_debug; 34extern unsigned int dns_resolver_debug;
35 35
36#define kdebug(FMT, ...) \ 36#define kdebug(FMT, ...) \
37do { \ 37do { \
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c
index bf10a311cf1..5889a6c38a1 100644
--- a/net/ethernet/eth.c
+++ b/net/ethernet/eth.c
@@ -77,7 +77,7 @@ __setup("ether=", netdev_boot_setup);
77 */ 77 */
78int eth_header(struct sk_buff *skb, struct net_device *dev, 78int eth_header(struct sk_buff *skb, struct net_device *dev,
79 unsigned short type, 79 unsigned short type,
80 const void *daddr, const void *saddr, unsigned len) 80 const void *daddr, const void *saddr, unsigned int len)
81{ 81{
82 struct ethhdr *eth = (struct ethhdr *)skb_push(skb, ETH_HLEN); 82 struct ethhdr *eth = (struct ethhdr *)skb_push(skb, ETH_HLEN);
83 83
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index 36851588536..58c8895716f 100644
--- a/net/ieee802154/6lowpan.c
+++ b/net/ieee802154/6lowpan.c
@@ -371,7 +371,7 @@ err:
371static int lowpan_header_create(struct sk_buff *skb, 371static int lowpan_header_create(struct sk_buff *skb,
372 struct net_device *dev, 372 struct net_device *dev,
373 unsigned short type, const void *_daddr, 373 unsigned short type, const void *_daddr,
374 const void *_saddr, unsigned len) 374 const void *_saddr, unsigned int len)
375{ 375{
376 u8 tmp, iphc0, iphc1, *hc06_ptr; 376 u8 tmp, iphc0, iphc1, *hc06_ptr;
377 struct ipv6hdr *hdr; 377 struct ipv6hdr *hdr;
diff --git a/net/ieee802154/dgram.c b/net/ieee802154/dgram.c
index 1b09eaabaac..6fbb2ad7bb6 100644
--- a/net/ieee802154/dgram.c
+++ b/net/ieee802154/dgram.c
@@ -44,8 +44,8 @@ struct dgram_sock {
44 struct ieee802154_addr src_addr; 44 struct ieee802154_addr src_addr;
45 struct ieee802154_addr dst_addr; 45 struct ieee802154_addr dst_addr;
46 46
47 unsigned bound:1; 47 unsigned int bound:1;
48 unsigned want_ack:1; 48 unsigned int want_ack:1;
49}; 49};
50 50
51static inline struct dgram_sock *dgram_sk(const struct sock *sk) 51static inline struct dgram_sock *dgram_sk(const struct sock *sk)
@@ -206,7 +206,7 @@ static int dgram_sendmsg(struct kiocb *iocb, struct sock *sk,
206 struct msghdr *msg, size_t size) 206 struct msghdr *msg, size_t size)
207{ 207{
208 struct net_device *dev; 208 struct net_device *dev;
209 unsigned mtu; 209 unsigned int mtu;
210 struct sk_buff *skb; 210 struct sk_buff *skb;
211 struct dgram_sock *ro = dgram_sk(sk); 211 struct dgram_sock *ro = dgram_sk(sk);
212 int hlen, tlen; 212 int hlen, tlen;
diff --git a/net/ieee802154/raw.c b/net/ieee802154/raw.c
index f96bae8fd33..50e823927d4 100644
--- a/net/ieee802154/raw.c
+++ b/net/ieee802154/raw.c
@@ -106,7 +106,7 @@ static int raw_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
106 size_t size) 106 size_t size)
107{ 107{
108 struct net_device *dev; 108 struct net_device *dev;
109 unsigned mtu; 109 unsigned int mtu;
110 struct sk_buff *skb; 110 struct sk_buff *skb;
111 int hlen, tlen; 111 int hlen, tlen;
112 int err; 112 int err;
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index 18d9b81ecb1..373b56bf8f4 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -1059,7 +1059,7 @@ static int arp_req_set(struct net *net, struct arpreq *r,
1059 neigh = __neigh_lookup_errno(&arp_tbl, &ip, dev); 1059 neigh = __neigh_lookup_errno(&arp_tbl, &ip, dev);
1060 err = PTR_ERR(neigh); 1060 err = PTR_ERR(neigh);
1061 if (!IS_ERR(neigh)) { 1061 if (!IS_ERR(neigh)) {
1062 unsigned state = NUD_STALE; 1062 unsigned int state = NUD_STALE;
1063 if (r->arp_flags & ATF_PERM) 1063 if (r->arp_flags & ATF_PERM)
1064 state = NUD_PERMANENT; 1064 state = NUD_PERMANENT;
1065 err = neigh_update(neigh, (r->arp_flags & ATF_COM) ? 1065 err = neigh_update(neigh, (r->arp_flags & ATF_COM) ?
@@ -1071,7 +1071,7 @@ static int arp_req_set(struct net *net, struct arpreq *r,
1071 return err; 1071 return err;
1072} 1072}
1073 1073
1074static unsigned arp_state_to_flags(struct neighbour *neigh) 1074static unsigned int arp_state_to_flags(struct neighbour *neigh)
1075{ 1075{
1076 if (neigh->nud_state&NUD_PERMANENT) 1076 if (neigh->nud_state&NUD_PERMANENT)
1077 return ATF_PERM | ATF_COM; 1077 return ATF_PERM | ATF_COM;
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c
index 7ba2196e437..8a01bfb7c87 100644
--- a/net/ipv4/devinet.c
+++ b/net/ipv4/devinet.c
@@ -1125,7 +1125,7 @@ skip:
1125 } 1125 }
1126} 1126}
1127 1127
1128static inline bool inetdev_valid_mtu(unsigned mtu) 1128static inline bool inetdev_valid_mtu(unsigned int mtu)
1129{ 1129{
1130 return mtu >= 68; 1130 return mtu >= 68;
1131} 1131}
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index cbe3a68507c..3854411fa37 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -136,13 +136,13 @@ static void fib_flush(struct net *net)
136 * Find address type as if only "dev" was present in the system. If 136 * Find address type as if only "dev" was present in the system. If
137 * on_dev is NULL then all interfaces are taken into consideration. 137 * on_dev is NULL then all interfaces are taken into consideration.
138 */ 138 */
139static inline unsigned __inet_dev_addr_type(struct net *net, 139static inline unsigned int __inet_dev_addr_type(struct net *net,
140 const struct net_device *dev, 140 const struct net_device *dev,
141 __be32 addr) 141 __be32 addr)
142{ 142{
143 struct flowi4 fl4 = { .daddr = addr }; 143 struct flowi4 fl4 = { .daddr = addr };
144 struct fib_result res; 144 struct fib_result res;
145 unsigned ret = RTN_BROADCAST; 145 unsigned int ret = RTN_BROADCAST;
146 struct fib_table *local_table; 146 struct fib_table *local_table;
147 147
148 if (ipv4_is_zeronet(addr) || ipv4_is_lbcast(addr)) 148 if (ipv4_is_zeronet(addr) || ipv4_is_lbcast(addr))
@@ -740,7 +740,7 @@ void fib_del_ifaddr(struct in_ifaddr *ifa, struct in_ifaddr *iprim)
740#define BRD_OK 2 740#define BRD_OK 2
741#define BRD0_OK 4 741#define BRD0_OK 4
742#define BRD1_OK 8 742#define BRD1_OK 8
743 unsigned ok = 0; 743 unsigned int ok = 0;
744 int subnet = 0; /* Primary network */ 744 int subnet = 0; /* Primary network */
745 int gone = 1; /* Address is missing */ 745 int gone = 1; /* Address is missing */
746 int same_prefsrc = 0; /* Another primary with same IP */ 746 int same_prefsrc = 0; /* Another primary with same IP */
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c
index 14409f111bc..7d972f650a6 100644
--- a/net/ipv4/inet_connection_sock.c
+++ b/net/ipv4/inet_connection_sock.c
@@ -42,7 +42,8 @@ EXPORT_SYMBOL(sysctl_local_reserved_ports);
42 42
43void inet_get_local_port_range(int *low, int *high) 43void inet_get_local_port_range(int *low, int *high)
44{ 44{
45 unsigned seq; 45 unsigned int seq;
46
46 do { 47 do {
47 seq = read_seqbegin(&sysctl_local_ports.lock); 48 seq = read_seqbegin(&sysctl_local_ports.lock);
48 49
diff --git a/net/ipv4/inet_timewait_sock.c b/net/ipv4/inet_timewait_sock.c
index 89168c6351f..543ef622545 100644
--- a/net/ipv4/inet_timewait_sock.c
+++ b/net/ipv4/inet_timewait_sock.c
@@ -263,7 +263,7 @@ rescan:
263void inet_twdr_hangman(unsigned long data) 263void inet_twdr_hangman(unsigned long data)
264{ 264{
265 struct inet_timewait_death_row *twdr; 265 struct inet_timewait_death_row *twdr;
266 int unsigned need_timer; 266 unsigned int need_timer;
267 267
268 twdr = (struct inet_timewait_death_row *)data; 268 twdr = (struct inet_timewait_death_row *)data;
269 spin_lock(&twdr->death_lock); 269 spin_lock(&twdr->death_lock);
diff --git a/net/ipv4/ip_options.c b/net/ipv4/ip_options.c
index 1372c4586ed..95722ed0e5b 100644
--- a/net/ipv4/ip_options.c
+++ b/net/ipv4/ip_options.c
@@ -413,7 +413,7 @@ int ip_options_compile(struct net *net,
413 opt->is_changed = 1; 413 opt->is_changed = 1;
414 } 414 }
415 } else { 415 } else {
416 unsigned overflow = optptr[3]>>4; 416 unsigned int overflow = optptr[3]>>4;
417 if (overflow == 15) { 417 if (overflow == 15) {
418 pp_ptr = optptr + 3; 418 pp_ptr = optptr + 3;
419 goto error; 419 goto error;
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c
index 0a87e1fc0ce..51c6c672c8a 100644
--- a/net/ipv4/ip_sockglue.c
+++ b/net/ipv4/ip_sockglue.c
@@ -147,7 +147,7 @@ static void ip_cmsg_recv_dstaddr(struct msghdr *msg, struct sk_buff *skb)
147void ip_cmsg_recv(struct msghdr *msg, struct sk_buff *skb) 147void ip_cmsg_recv(struct msghdr *msg, struct sk_buff *skb)
148{ 148{
149 struct inet_sock *inet = inet_sk(skb->sk); 149 struct inet_sock *inet = inet_sk(skb->sk);
150 unsigned flags = inet->cmsg_flags; 150 unsigned int flags = inet->cmsg_flags;
151 151
152 /* Ordered by supposed usage frequency */ 152 /* Ordered by supposed usage frequency */
153 if (flags & 1) 153 if (flags & 1)
@@ -1094,7 +1094,7 @@ EXPORT_SYMBOL(compat_ip_setsockopt);
1094 */ 1094 */
1095 1095
1096static int do_ip_getsockopt(struct sock *sk, int level, int optname, 1096static int do_ip_getsockopt(struct sock *sk, int level, int optname,
1097 char __user *optval, int __user *optlen, unsigned flags) 1097 char __user *optval, int __user *optlen, unsigned int flags)
1098{ 1098{
1099 struct inet_sock *inet = inet_sk(sk); 1099 struct inet_sock *inet = inet_sk(sk);
1100 int val; 1100 int val;
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index 92ac7e7363a..f267280d870 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -1198,7 +1198,7 @@ static int __init ic_dynamic(void)
1198 d = ic_first_dev; 1198 d = ic_first_dev;
1199 retries = CONF_SEND_RETRIES; 1199 retries = CONF_SEND_RETRIES;
1200 get_random_bytes(&timeout, sizeof(timeout)); 1200 get_random_bytes(&timeout, sizeof(timeout));
1201 timeout = CONF_BASE_TIMEOUT + (timeout % (unsigned) CONF_TIMEOUT_RANDOM); 1201 timeout = CONF_BASE_TIMEOUT + (timeout % (unsigned int) CONF_TIMEOUT_RANDOM);
1202 for (;;) { 1202 for (;;) {
1203 /* Track the device we are configuring */ 1203 /* Track the device we are configuring */
1204 ic_dev_xid = d->xid; 1204 ic_dev_xid = d->xid;
diff --git a/net/ipv4/netfilter.c b/net/ipv4/netfilter.c
index 4f47e064e26..3cd8c586741 100644
--- a/net/ipv4/netfilter.c
+++ b/net/ipv4/netfilter.c
@@ -12,7 +12,7 @@
12#include <net/netfilter/nf_queue.h> 12#include <net/netfilter/nf_queue.h>
13 13
14/* route_me_harder function, used by iptable_nat, iptable_mangle + ip_queue */ 14/* route_me_harder function, used by iptable_nat, iptable_mangle + ip_queue */
15int ip_route_me_harder(struct sk_buff *skb, unsigned addr_type) 15int ip_route_me_harder(struct sk_buff *skb, unsigned int addr_type)
16{ 16{
17 struct net *net = dev_net(skb_dst(skb)->dev); 17 struct net *net = dev_net(skb_dst(skb)->dev);
18 const struct iphdr *iph = ip_hdr(skb); 18 const struct iphdr *iph = ip_hdr(skb);
diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c
index fd7a3f68917..a3935273869 100644
--- a/net/ipv4/netfilter/arp_tables.c
+++ b/net/ipv4/netfilter/arp_tables.c
@@ -303,7 +303,7 @@ unsigned int arpt_do_table(struct sk_buff *skb,
303 if (v < 0) { 303 if (v < 0) {
304 /* Pop from stack? */ 304 /* Pop from stack? */
305 if (v != XT_RETURN) { 305 if (v != XT_RETURN) {
306 verdict = (unsigned)(-v) - 1; 306 verdict = (unsigned int)(-v) - 1;
307 break; 307 break;
308 } 308 }
309 e = back; 309 e = back;
diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c
index 24e556e83a3..585b80f3cc6 100644
--- a/net/ipv4/netfilter/ip_tables.c
+++ b/net/ipv4/netfilter/ip_tables.c
@@ -377,7 +377,7 @@ ipt_do_table(struct sk_buff *skb,
377 if (v < 0) { 377 if (v < 0) {
378 /* Pop from stack? */ 378 /* Pop from stack? */
379 if (v != XT_RETURN) { 379 if (v != XT_RETURN) {
380 verdict = (unsigned)(-v) - 1; 380 verdict = (unsigned int)(-v) - 1;
381 break; 381 break;
382 } 382 }
383 if (*stackptr <= origptr) { 383 if (*stackptr <= origptr) {
diff --git a/net/ipv4/netfilter/nf_nat_sip.c b/net/ipv4/netfilter/nf_nat_sip.c
index 57932c43960..ea4a23813d2 100644
--- a/net/ipv4/netfilter/nf_nat_sip.c
+++ b/net/ipv4/netfilter/nf_nat_sip.c
@@ -283,7 +283,7 @@ static unsigned int ip_nat_sip_expect(struct sk_buff *skb, unsigned int dataoff,
283 __be32 newip; 283 __be32 newip;
284 u_int16_t port; 284 u_int16_t port;
285 char buffer[sizeof("nnn.nnn.nnn.nnn:nnnnn")]; 285 char buffer[sizeof("nnn.nnn.nnn.nnn:nnnnn")];
286 unsigned buflen; 286 unsigned int buflen;
287 287
288 /* Connection will come from reply */ 288 /* Connection will come from reply */
289 if (ct->tuplehash[dir].tuple.src.u3.ip == ct->tuplehash[!dir].tuple.dst.u3.ip) 289 if (ct->tuplehash[dir].tuple.src.u3.ip == ct->tuplehash[!dir].tuple.dst.u3.ip)
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c
index 9f380ace22e..6e930c7174d 100644
--- a/net/ipv4/ping.c
+++ b/net/ipv4/ping.c
@@ -51,15 +51,16 @@ static struct ping_table ping_table;
51 51
52static u16 ping_port_rover; 52static u16 ping_port_rover;
53 53
54static inline int ping_hashfn(struct net *net, unsigned num, unsigned mask) 54static inline int ping_hashfn(struct net *net, unsigned int num, unsigned int mask)
55{ 55{
56 int res = (num + net_hash_mix(net)) & mask; 56 int res = (num + net_hash_mix(net)) & mask;
57
57 pr_debug("hash(%d) = %d\n", num, res); 58 pr_debug("hash(%d) = %d\n", num, res);
58 return res; 59 return res;
59} 60}
60 61
61static inline struct hlist_nulls_head *ping_hashslot(struct ping_table *table, 62static inline struct hlist_nulls_head *ping_hashslot(struct ping_table *table,
62 struct net *net, unsigned num) 63 struct net *net, unsigned int num)
63{ 64{
64 return &table->hash[ping_hashfn(net, num, PING_HTABLE_MASK)]; 65 return &table->hash[ping_hashfn(net, num, PING_HTABLE_MASK)];
65} 66}
@@ -188,7 +189,8 @@ static void inet_get_ping_group_range_net(struct net *net, gid_t *low,
188 gid_t *high) 189 gid_t *high)
189{ 190{
190 gid_t *data = net->ipv4.sysctl_ping_group_range; 191 gid_t *data = net->ipv4.sysctl_ping_group_range;
191 unsigned seq; 192 unsigned int seq;
193
192 do { 194 do {
193 seq = read_seqbegin(&sysctl_local_ports.lock); 195 seq = read_seqbegin(&sysctl_local_ports.lock);
194 196
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index a13ce2364ed..ac4d6b3fa9c 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -296,7 +296,7 @@ static inline void rt_hash_lock_init(void)
296#endif 296#endif
297 297
298static struct rt_hash_bucket *rt_hash_table __read_mostly; 298static struct rt_hash_bucket *rt_hash_table __read_mostly;
299static unsigned rt_hash_mask __read_mostly; 299static unsigned int rt_hash_mask __read_mostly;
300static unsigned int rt_hash_log __read_mostly; 300static unsigned int rt_hash_log __read_mostly;
301 301
302static DEFINE_PER_CPU(struct rt_cache_stat, rt_cache_stat); 302static DEFINE_PER_CPU(struct rt_cache_stat, rt_cache_stat);
@@ -1143,7 +1143,7 @@ static int rt_bind_neighbour(struct rtable *rt)
1143 return 0; 1143 return 0;
1144} 1144}
1145 1145
1146static struct rtable *rt_intern_hash(unsigned hash, struct rtable *rt, 1146static struct rtable *rt_intern_hash(unsigned int hash, struct rtable *rt,
1147 struct sk_buff *skb, int ifindex) 1147 struct sk_buff *skb, int ifindex)
1148{ 1148{
1149 struct rtable *rth, *cand; 1149 struct rtable *rth, *cand;
@@ -1384,7 +1384,7 @@ void __ip_select_ident(struct iphdr *iph, struct dst_entry *dst, int more)
1384} 1384}
1385EXPORT_SYMBOL(__ip_select_ident); 1385EXPORT_SYMBOL(__ip_select_ident);
1386 1386
1387static void rt_del(unsigned hash, struct rtable *rt) 1387static void rt_del(unsigned int hash, struct rtable *rt)
1388{ 1388{
1389 struct rtable __rcu **rthp; 1389 struct rtable __rcu **rthp;
1390 struct rtable *aux; 1390 struct rtable *aux;
@@ -1538,7 +1538,7 @@ static struct dst_entry *ipv4_negative_advice(struct dst_entry *dst)
1538 ip_rt_put(rt); 1538 ip_rt_put(rt);
1539 ret = NULL; 1539 ret = NULL;
1540 } else if (rt->rt_flags & RTCF_REDIRECTED) { 1540 } else if (rt->rt_flags & RTCF_REDIRECTED) {
1541 unsigned hash = rt_hash(rt->rt_key_dst, rt->rt_key_src, 1541 unsigned int hash = rt_hash(rt->rt_key_dst, rt->rt_key_src,
1542 rt->rt_oif, 1542 rt->rt_oif,
1543 rt_genid(dev_net(dst->dev))); 1543 rt_genid(dev_net(dst->dev)));
1544 rt_del(hash, rt); 1544 rt_del(hash, rt);
@@ -2217,7 +2217,7 @@ static int ip_mkroute_input(struct sk_buff *skb,
2217{ 2217{
2218 struct rtable *rth = NULL; 2218 struct rtable *rth = NULL;
2219 int err; 2219 int err;
2220 unsigned hash; 2220 unsigned int hash;
2221 2221
2222#ifdef CONFIG_IP_ROUTE_MULTIPATH 2222#ifdef CONFIG_IP_ROUTE_MULTIPATH
2223 if (res->fi && res->fi->fib_nhs > 1) 2223 if (res->fi && res->fi->fib_nhs > 1)
@@ -2255,10 +2255,10 @@ static int ip_route_input_slow(struct sk_buff *skb, __be32 daddr, __be32 saddr,
2255 struct fib_result res; 2255 struct fib_result res;
2256 struct in_device *in_dev = __in_dev_get_rcu(dev); 2256 struct in_device *in_dev = __in_dev_get_rcu(dev);
2257 struct flowi4 fl4; 2257 struct flowi4 fl4;
2258 unsigned flags = 0; 2258 unsigned int flags = 0;
2259 u32 itag = 0; 2259 u32 itag = 0;
2260 struct rtable *rth; 2260 struct rtable *rth;
2261 unsigned hash; 2261 unsigned int hash;
2262 __be32 spec_dst; 2262 __be32 spec_dst;
2263 int err = -EINVAL; 2263 int err = -EINVAL;
2264 struct net *net = dev_net(dev); 2264 struct net *net = dev_net(dev);
@@ -2433,8 +2433,8 @@ martian_source_keep_err:
2433int ip_route_input_common(struct sk_buff *skb, __be32 daddr, __be32 saddr, 2433int ip_route_input_common(struct sk_buff *skb, __be32 daddr, __be32 saddr,
2434 u8 tos, struct net_device *dev, bool noref) 2434 u8 tos, struct net_device *dev, bool noref)
2435{ 2435{
2436 struct rtable *rth; 2436 struct rtable *rth;
2437 unsigned hash; 2437 unsigned int hash;
2438 int iif = dev->ifindex; 2438 int iif = dev->ifindex;
2439 struct net *net; 2439 struct net *net;
2440 int res; 2440 int res;
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c
index 7a7724da9bf..34a628625d9 100644
--- a/net/ipv4/sysctl_net_ipv4.c
+++ b/net/ipv4/sysctl_net_ipv4.c
@@ -78,7 +78,7 @@ static int ipv4_local_port_range(ctl_table *table, int write,
78static void inet_get_ping_group_range_table(struct ctl_table *table, gid_t *low, gid_t *high) 78static void inet_get_ping_group_range_table(struct ctl_table *table, gid_t *low, gid_t *high)
79{ 79{
80 gid_t *data = table->data; 80 gid_t *data = table->data;
81 unsigned seq; 81 unsigned int seq;
82 do { 82 do {
83 seq = read_seqbegin(&sysctl_local_ports.lock); 83 seq = read_seqbegin(&sysctl_local_ports.lock);
84 84
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 8bb6adeb62c..c53e8a827f5 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -2675,7 +2675,7 @@ struct sk_buff *tcp_tso_segment(struct sk_buff *skb,
2675{ 2675{
2676 struct sk_buff *segs = ERR_PTR(-EINVAL); 2676 struct sk_buff *segs = ERR_PTR(-EINVAL);
2677 struct tcphdr *th; 2677 struct tcphdr *th;
2678 unsigned thlen; 2678 unsigned int thlen;
2679 unsigned int seq; 2679 unsigned int seq;
2680 __be32 delta; 2680 __be32 delta;
2681 unsigned int oldlen; 2681 unsigned int oldlen;
@@ -3033,9 +3033,9 @@ int tcp_md5_hash_skb_data(struct tcp_md5sig_pool *hp,
3033 struct scatterlist sg; 3033 struct scatterlist sg;
3034 const struct tcphdr *tp = tcp_hdr(skb); 3034 const struct tcphdr *tp = tcp_hdr(skb);
3035 struct hash_desc *desc = &hp->md5_desc; 3035 struct hash_desc *desc = &hp->md5_desc;
3036 unsigned i; 3036 unsigned int i;
3037 const unsigned head_data_len = skb_headlen(skb) > header_len ? 3037 const unsigned int head_data_len = skb_headlen(skb) > header_len ?
3038 skb_headlen(skb) - header_len : 0; 3038 skb_headlen(skb) - header_len : 0;
3039 const struct skb_shared_info *shi = skb_shinfo(skb); 3039 const struct skb_shared_info *shi = skb_shinfo(skb);
3040 struct sk_buff *frag_iter; 3040 struct sk_buff *frag_iter;
3041 3041
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 3dc94febc9e..99448f06a42 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -175,7 +175,7 @@ static void tcp_measure_rcv_mss(struct sock *sk, const struct sk_buff *skb)
175static void tcp_incr_quickack(struct sock *sk) 175static void tcp_incr_quickack(struct sock *sk)
176{ 176{
177 struct inet_connection_sock *icsk = inet_csk(sk); 177 struct inet_connection_sock *icsk = inet_csk(sk);
178 unsigned quickacks = tcp_sk(sk)->rcv_wnd / (2 * icsk->icsk_ack.rcv_mss); 178 unsigned int quickacks = tcp_sk(sk)->rcv_wnd / (2 * icsk->icsk_ack.rcv_mss);
179 179
180 if (quickacks == 0) 180 if (quickacks == 0)
181 quickacks = 2; 181 quickacks = 2;
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 376b2cfbb68..de8790ced94 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -563,13 +563,13 @@ static void tcp_options_write(__be32 *ptr, struct tcp_sock *tp,
563/* Compute TCP options for SYN packets. This is not the final 563/* Compute TCP options for SYN packets. This is not the final
564 * network wire format yet. 564 * network wire format yet.
565 */ 565 */
566static unsigned tcp_syn_options(struct sock *sk, struct sk_buff *skb, 566static unsigned int tcp_syn_options(struct sock *sk, struct sk_buff *skb,
567 struct tcp_out_options *opts, 567 struct tcp_out_options *opts,
568 struct tcp_md5sig_key **md5) 568 struct tcp_md5sig_key **md5)
569{ 569{
570 struct tcp_sock *tp = tcp_sk(sk); 570 struct tcp_sock *tp = tcp_sk(sk);
571 struct tcp_cookie_values *cvp = tp->cookie_values; 571 struct tcp_cookie_values *cvp = tp->cookie_values;
572 unsigned remaining = MAX_TCP_OPTION_SPACE; 572 unsigned int remaining = MAX_TCP_OPTION_SPACE;
573 u8 cookie_size = (!tp->rx_opt.cookie_out_never && cvp != NULL) ? 573 u8 cookie_size = (!tp->rx_opt.cookie_out_never && cvp != NULL) ?
574 tcp_cookie_size_check(cvp->cookie_desired) : 574 tcp_cookie_size_check(cvp->cookie_desired) :
575 0; 575 0;
@@ -663,15 +663,15 @@ static unsigned tcp_syn_options(struct sock *sk, struct sk_buff *skb,
663} 663}
664 664
665/* Set up TCP options for SYN-ACKs. */ 665/* Set up TCP options for SYN-ACKs. */
666static unsigned tcp_synack_options(struct sock *sk, 666static unsigned int tcp_synack_options(struct sock *sk,
667 struct request_sock *req, 667 struct request_sock *req,
668 unsigned mss, struct sk_buff *skb, 668 unsigned int mss, struct sk_buff *skb,
669 struct tcp_out_options *opts, 669 struct tcp_out_options *opts,
670 struct tcp_md5sig_key **md5, 670 struct tcp_md5sig_key **md5,
671 struct tcp_extend_values *xvp) 671 struct tcp_extend_values *xvp)
672{ 672{
673 struct inet_request_sock *ireq = inet_rsk(req); 673 struct inet_request_sock *ireq = inet_rsk(req);
674 unsigned remaining = MAX_TCP_OPTION_SPACE; 674 unsigned int remaining = MAX_TCP_OPTION_SPACE;
675 u8 cookie_plus = (xvp != NULL && !xvp->cookie_out_never) ? 675 u8 cookie_plus = (xvp != NULL && !xvp->cookie_out_never) ?
676 xvp->cookie_plus : 676 xvp->cookie_plus :
677 0; 677 0;
@@ -742,13 +742,13 @@ static unsigned tcp_synack_options(struct sock *sk,
742/* Compute TCP options for ESTABLISHED sockets. This is not the 742/* Compute TCP options for ESTABLISHED sockets. This is not the
743 * final wire format yet. 743 * final wire format yet.
744 */ 744 */
745static unsigned tcp_established_options(struct sock *sk, struct sk_buff *skb, 745static unsigned int tcp_established_options(struct sock *sk, struct sk_buff *skb,
746 struct tcp_out_options *opts, 746 struct tcp_out_options *opts,
747 struct tcp_md5sig_key **md5) 747 struct tcp_md5sig_key **md5)
748{ 748{
749 struct tcp_skb_cb *tcb = skb ? TCP_SKB_CB(skb) : NULL; 749 struct tcp_skb_cb *tcb = skb ? TCP_SKB_CB(skb) : NULL;
750 struct tcp_sock *tp = tcp_sk(sk); 750 struct tcp_sock *tp = tcp_sk(sk);
751 unsigned size = 0; 751 unsigned int size = 0;
752 unsigned int eff_sacks; 752 unsigned int eff_sacks;
753 753
754#ifdef CONFIG_TCP_MD5SIG 754#ifdef CONFIG_TCP_MD5SIG
@@ -770,9 +770,9 @@ static unsigned tcp_established_options(struct sock *sk, struct sk_buff *skb,
770 770
771 eff_sacks = tp->rx_opt.num_sacks + tp->rx_opt.dsack; 771 eff_sacks = tp->rx_opt.num_sacks + tp->rx_opt.dsack;
772 if (unlikely(eff_sacks)) { 772 if (unlikely(eff_sacks)) {
773 const unsigned remaining = MAX_TCP_OPTION_SPACE - size; 773 const unsigned int remaining = MAX_TCP_OPTION_SPACE - size;
774 opts->num_sack_blocks = 774 opts->num_sack_blocks =
775 min_t(unsigned, eff_sacks, 775 min_t(unsigned int, eff_sacks,
776 (remaining - TCPOLEN_SACK_BASE_ALIGNED) / 776 (remaining - TCPOLEN_SACK_BASE_ALIGNED) /
777 TCPOLEN_SACK_PERBLOCK); 777 TCPOLEN_SACK_PERBLOCK);
778 size += TCPOLEN_SACK_BASE_ALIGNED + 778 size += TCPOLEN_SACK_BASE_ALIGNED +
@@ -801,7 +801,7 @@ static int tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it,
801 struct tcp_sock *tp; 801 struct tcp_sock *tp;
802 struct tcp_skb_cb *tcb; 802 struct tcp_skb_cb *tcb;
803 struct tcp_out_options opts; 803 struct tcp_out_options opts;
804 unsigned tcp_options_size, tcp_header_size; 804 unsigned int tcp_options_size, tcp_header_size;
805 struct tcp_md5sig_key *md5; 805 struct tcp_md5sig_key *md5;
806 struct tcphdr *th; 806 struct tcphdr *th;
807 int err; 807 int err;
@@ -1258,7 +1258,7 @@ unsigned int tcp_current_mss(struct sock *sk)
1258 const struct tcp_sock *tp = tcp_sk(sk); 1258 const struct tcp_sock *tp = tcp_sk(sk);
1259 const struct dst_entry *dst = __sk_dst_get(sk); 1259 const struct dst_entry *dst = __sk_dst_get(sk);
1260 u32 mss_now; 1260 u32 mss_now;
1261 unsigned header_len; 1261 unsigned int header_len;
1262 struct tcp_out_options opts; 1262 struct tcp_out_options opts;
1263 struct tcp_md5sig_key *md5; 1263 struct tcp_md5sig_key *md5;
1264 1264
@@ -1389,7 +1389,7 @@ static inline int tcp_minshall_check(const struct tcp_sock *tp)
1389 */ 1389 */
1390static inline int tcp_nagle_check(const struct tcp_sock *tp, 1390static inline int tcp_nagle_check(const struct tcp_sock *tp,
1391 const struct sk_buff *skb, 1391 const struct sk_buff *skb,
1392 unsigned mss_now, int nonagle) 1392 unsigned int mss_now, int nonagle)
1393{ 1393{
1394 return skb->len < mss_now && 1394 return skb->len < mss_now &&
1395 ((nonagle & TCP_NAGLE_CORK) || 1395 ((nonagle & TCP_NAGLE_CORK) ||
diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c
index a8df7052e0b..4526fe68e60 100644
--- a/net/ipv4/tcp_probe.c
+++ b/net/ipv4/tcp_probe.c
@@ -91,7 +91,7 @@ static inline int tcp_probe_avail(void)
91 * Note: arguments must match tcp_rcv_established()! 91 * Note: arguments must match tcp_rcv_established()!
92 */ 92 */
93static int jtcp_rcv_established(struct sock *sk, struct sk_buff *skb, 93static int jtcp_rcv_established(struct sock *sk, struct sk_buff *skb,
94 struct tcphdr *th, unsigned len) 94 struct tcphdr *th, unsigned int len)
95{ 95{
96 const struct tcp_sock *tp = tcp_sk(sk); 96 const struct tcp_sock *tp = tcp_sk(sk);
97 const struct inet_sock *inet = inet_sk(sk); 97 const struct inet_sock *inet = inet_sk(sk);
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 381ea511514..3430e8fc18d 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -207,7 +207,7 @@ int udp_lib_get_port(struct sock *sk, unsigned short snum,
207 207
208 if (!snum) { 208 if (!snum) {
209 int low, high, remaining; 209 int low, high, remaining;
210 unsigned rand; 210 unsigned int rand;
211 unsigned short first, last; 211 unsigned short first, last;
212 DECLARE_BITMAP(bitmap, PORTS_PER_CHAIN); 212 DECLARE_BITMAP(bitmap, PORTS_PER_CHAIN);
213 213
diff --git a/net/ipv6/addrconf_core.c b/net/ipv6/addrconf_core.c
index 7981bde5757..d051e5f4bf3 100644
--- a/net/ipv6/addrconf_core.c
+++ b/net/ipv6/addrconf_core.c
@@ -8,7 +8,7 @@
8 8
9#define IPV6_ADDR_SCOPE_TYPE(scope) ((scope) << 16) 9#define IPV6_ADDR_SCOPE_TYPE(scope) ((scope) << 16)
10 10
11static inline unsigned ipv6_addr_scope2type(unsigned scope) 11static inline unsigned int ipv6_addr_scope2type(unsigned int scope)
12{ 12{
13 switch (scope) { 13 switch (scope) {
14 case IPV6_ADDR_SCOPE_NODELOCAL: 14 case IPV6_ADDR_SCOPE_NODELOCAL:
diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c
index f6210d6fd7d..7fba35aea06 100644
--- a/net/ipv6/datagram.c
+++ b/net/ipv6/datagram.c
@@ -515,7 +515,7 @@ int datagram_recv_ctl(struct sock *sk, struct msghdr *msg, struct sk_buff *skb)
515 u8 nexthdr = ipv6_hdr(skb)->nexthdr; 515 u8 nexthdr = ipv6_hdr(skb)->nexthdr;
516 516
517 while (off <= opt->lastopt) { 517 while (off <= opt->lastopt) {
518 unsigned len; 518 unsigned int len;
519 u8 *ptr = nh + off; 519 u8 *ptr = nh + off;
520 520
521 switch (nexthdr) { 521 switch (nexthdr) {
diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c
index b7867a1215b..1dd632971bc 100644
--- a/net/ipv6/ip6_flowlabel.c
+++ b/net/ipv6/ip6_flowlabel.c
@@ -705,9 +705,9 @@ static int ip6fl_seq_show(struct seq_file *seq, void *v)
705 struct ip6_flowlabel *fl = v; 705 struct ip6_flowlabel *fl = v;
706 seq_printf(seq, 706 seq_printf(seq,
707 "%05X %-1d %-6d %-6d %-6ld %-8ld %pi6 %-4d\n", 707 "%05X %-1d %-6d %-6d %-6ld %-8ld %pi6 %-4d\n",
708 (unsigned)ntohl(fl->label), 708 (unsigned int)ntohl(fl->label),
709 fl->share, 709 fl->share,
710 (unsigned)fl->owner, 710 (int)fl->owner,
711 atomic_read(&fl->users), 711 atomic_read(&fl->users),
712 fl->linger/HZ, 712 fl->linger/HZ,
713 (long)(fl->expires - jiffies)/HZ, 713 (long)(fl->expires - jiffies)/HZ,
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index aa21da6a09c..e25b0fdd935 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -198,7 +198,7 @@ ip6_tnl_bucket(struct ip6_tnl_net *ip6n, const struct ip6_tnl_parm *p)
198{ 198{
199 const struct in6_addr *remote = &p->raddr; 199 const struct in6_addr *remote = &p->raddr;
200 const struct in6_addr *local = &p->laddr; 200 const struct in6_addr *local = &p->laddr;
201 unsigned h = 0; 201 unsigned int h = 0;
202 int prio = 0; 202 int prio = 0;
203 203
204 if (!ipv6_addr_any(remote) || !ipv6_addr_any(local)) { 204 if (!ipv6_addr_any(remote) || !ipv6_addr_any(local)) {
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c
index ca1af0760c4..ba6d13d1f1e 100644
--- a/net/ipv6/ipv6_sockglue.c
+++ b/net/ipv6/ipv6_sockglue.c
@@ -942,7 +942,7 @@ static int ipv6_getsockopt_sticky(struct sock *sk, struct ipv6_txoptions *opt,
942} 942}
943 943
944static int do_ipv6_getsockopt(struct sock *sk, int level, int optname, 944static int do_ipv6_getsockopt(struct sock *sk, int level, int optname,
945 char __user *optval, int __user *optlen, unsigned flags) 945 char __user *optval, int __user *optlen, unsigned int flags)
946{ 946{
947 struct ipv6_pinfo *np = inet6_sk(sk); 947 struct ipv6_pinfo *np = inet6_sk(sk);
948 int len; 948 int len;
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c
index 9d4e1555931..d4e350f72bb 100644
--- a/net/ipv6/netfilter/ip6_tables.c
+++ b/net/ipv6/netfilter/ip6_tables.c
@@ -396,7 +396,7 @@ ip6t_do_table(struct sk_buff *skb,
396 if (v < 0) { 396 if (v < 0) {
397 /* Pop from stack? */ 397 /* Pop from stack? */
398 if (v != XT_RETURN) { 398 if (v != XT_RETURN) {
399 verdict = (unsigned)(-v) - 1; 399 verdict = (unsigned int)(-v) - 1;
400 break; 400 break;
401 } 401 }
402 if (*stackptr <= origptr) 402 if (*stackptr <= origptr)
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 8c5df6f3a2d..f910cce69c9 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -82,7 +82,7 @@ static void ip6_rt_update_pmtu(struct dst_entry *dst, u32 mtu);
82static struct rt6_info *rt6_add_route_info(struct net *net, 82static struct rt6_info *rt6_add_route_info(struct net *net,
83 const struct in6_addr *prefix, int prefixlen, 83 const struct in6_addr *prefix, int prefixlen,
84 const struct in6_addr *gwaddr, int ifindex, 84 const struct in6_addr *gwaddr, int ifindex,
85 unsigned pref); 85 unsigned int pref);
86static struct rt6_info *rt6_get_route_info(struct net *net, 86static struct rt6_info *rt6_get_route_info(struct net *net,
87 const struct in6_addr *prefix, int prefixlen, 87 const struct in6_addr *prefix, int prefixlen,
88 const struct in6_addr *gwaddr, int ifindex); 88 const struct in6_addr *gwaddr, int ifindex);
@@ -1870,7 +1870,7 @@ out:
1870static struct rt6_info *rt6_add_route_info(struct net *net, 1870static struct rt6_info *rt6_add_route_info(struct net *net,
1871 const struct in6_addr *prefix, int prefixlen, 1871 const struct in6_addr *prefix, int prefixlen,
1872 const struct in6_addr *gwaddr, int ifindex, 1872 const struct in6_addr *gwaddr, int ifindex,
1873 unsigned pref) 1873 unsigned int pref)
1874{ 1874{
1875 struct fib6_config cfg = { 1875 struct fib6_config cfg = {
1876 .fc_table = RT6_TABLE_INFO, 1876 .fc_table = RT6_TABLE_INFO,
@@ -2200,10 +2200,9 @@ void rt6_ifdown(struct net *net, struct net_device *dev)
2200 icmp6_clean_all(fib6_ifdown, &adn); 2200 icmp6_clean_all(fib6_ifdown, &adn);
2201} 2201}
2202 2202
2203struct rt6_mtu_change_arg 2203struct rt6_mtu_change_arg {
2204{
2205 struct net_device *dev; 2204 struct net_device *dev;
2206 unsigned mtu; 2205 unsigned int mtu;
2207}; 2206};
2208 2207
2209static int rt6_mtu_change_route(struct rt6_info *rt, void *p_arg) 2208static int rt6_mtu_change_route(struct rt6_info *rt, void *p_arg)
@@ -2245,7 +2244,7 @@ static int rt6_mtu_change_route(struct rt6_info *rt, void *p_arg)
2245 return 0; 2244 return 0;
2246} 2245}
2247 2246
2248void rt6_mtu_change(struct net_device *dev, unsigned mtu) 2247void rt6_mtu_change(struct net_device *dev, unsigned int mtu)
2249{ 2248{
2250 struct rt6_mtu_change_arg arg = { 2249 struct rt6_mtu_change_arg arg = {
2251 .dev = dev, 2250 .dev = dev,
diff --git a/net/ipv6/xfrm6_tunnel.c b/net/ipv6/xfrm6_tunnel.c
index 4fe1db12d2a..ee5a7065aac 100644
--- a/net/ipv6/xfrm6_tunnel.c
+++ b/net/ipv6/xfrm6_tunnel.c
@@ -68,9 +68,9 @@ static DEFINE_SPINLOCK(xfrm6_tunnel_spi_lock);
68 68
69static struct kmem_cache *xfrm6_tunnel_spi_kmem __read_mostly; 69static struct kmem_cache *xfrm6_tunnel_spi_kmem __read_mostly;
70 70
71static inline unsigned xfrm6_tunnel_spi_hash_byaddr(const xfrm_address_t *addr) 71static inline unsigned int xfrm6_tunnel_spi_hash_byaddr(const xfrm_address_t *addr)
72{ 72{
73 unsigned h; 73 unsigned int h;
74 74
75 h = (__force u32)(addr->a6[0] ^ addr->a6[1] ^ addr->a6[2] ^ addr->a6[3]); 75 h = (__force u32)(addr->a6[0] ^ addr->a6[1] ^ addr->a6[2] ^ addr->a6[3]);
76 h ^= h >> 16; 76 h ^= h >> 16;
@@ -80,7 +80,7 @@ static inline unsigned xfrm6_tunnel_spi_hash_byaddr(const xfrm_address_t *addr)
80 return h; 80 return h;
81} 81}
82 82
83static inline unsigned xfrm6_tunnel_spi_hash_byspi(u32 spi) 83static inline unsigned int xfrm6_tunnel_spi_hash_byspi(u32 spi)
84{ 84{
85 return spi % XFRM6_TUNNEL_SPI_BYSPI_HSIZE; 85 return spi % XFRM6_TUNNEL_SPI_BYSPI_HSIZE;
86} 86}
diff --git a/net/irda/ircomm/ircomm_tty_ioctl.c b/net/irda/ircomm/ircomm_tty_ioctl.c
index 77c5e6499f8..d0667d68351 100644
--- a/net/irda/ircomm/ircomm_tty_ioctl.c
+++ b/net/irda/ircomm/ircomm_tty_ioctl.c
@@ -54,7 +54,7 @@
54 */ 54 */
55static void ircomm_tty_change_speed(struct ircomm_tty_cb *self) 55static void ircomm_tty_change_speed(struct ircomm_tty_cb *self)
56{ 56{
57 unsigned cflag, cval; 57 unsigned int cflag, cval;
58 int baud; 58 int baud;
59 59
60 IRDA_DEBUG(2, "%s()\n", __func__ ); 60 IRDA_DEBUG(2, "%s()\n", __func__ );
diff --git a/net/key/af_key.c b/net/key/af_key.c
index 7e5d927b576..34e418508a6 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -1714,7 +1714,7 @@ static int key_notify_sa_flush(const struct km_event *c)
1714static int pfkey_flush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) 1714static int pfkey_flush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
1715{ 1715{
1716 struct net *net = sock_net(sk); 1716 struct net *net = sock_net(sk);
1717 unsigned proto; 1717 unsigned int proto;
1718 struct km_event c; 1718 struct km_event c;
1719 struct xfrm_audit audit_info; 1719 struct xfrm_audit audit_info;
1720 int err, err2; 1720 int err, err2;
@@ -3547,7 +3547,7 @@ static int pfkey_sendmsg(struct kiocb *kiocb,
3547 goto out; 3547 goto out;
3548 3548
3549 err = -EMSGSIZE; 3549 err = -EMSGSIZE;
3550 if ((unsigned)len > sk->sk_sndbuf - 32) 3550 if ((unsigned int)len > sk->sk_sndbuf - 32)
3551 goto out; 3551 goto out;
3552 3552
3553 err = -ENOBUFS; 3553 err = -ENOBUFS;
diff --git a/net/l2tp/l2tp_core.h b/net/l2tp/l2tp_core.h
index a16a48e79fa..09e4a38b4f4 100644
--- a/net/l2tp/l2tp_core.h
+++ b/net/l2tp/l2tp_core.h
@@ -54,15 +54,15 @@ struct l2tp_tunnel;
54 */ 54 */
55struct l2tp_session_cfg { 55struct l2tp_session_cfg {
56 enum l2tp_pwtype pw_type; 56 enum l2tp_pwtype pw_type;
57 unsigned data_seq:2; /* data sequencing level 57 unsigned int data_seq:2; /* data sequencing level
58 * 0 => none, 1 => IP only, 58 * 0 => none, 1 => IP only,
59 * 2 => all 59 * 2 => all
60 */ 60 */
61 unsigned recv_seq:1; /* expect receive packets with 61 unsigned int recv_seq:1; /* expect receive packets with
62 * sequence numbers? */ 62 * sequence numbers? */
63 unsigned send_seq:1; /* send packets with sequence 63 unsigned int send_seq:1; /* send packets with sequence
64 * numbers? */ 64 * numbers? */
65 unsigned lns_mode:1; /* behave as LNS? LAC enables 65 unsigned int lns_mode:1; /* behave as LNS? LAC enables
66 * sequence numbers under 66 * sequence numbers under
67 * control of LNS. */ 67 * control of LNS. */
68 int debug; /* bitmask of debug message 68 int debug; /* bitmask of debug message
@@ -107,15 +107,15 @@ struct l2tp_session {
107 107
108 char name[32]; /* for logging */ 108 char name[32]; /* for logging */
109 char ifname[IFNAMSIZ]; 109 char ifname[IFNAMSIZ];
110 unsigned data_seq:2; /* data sequencing level 110 unsigned int data_seq:2; /* data sequencing level
111 * 0 => none, 1 => IP only, 111 * 0 => none, 1 => IP only,
112 * 2 => all 112 * 2 => all
113 */ 113 */
114 unsigned recv_seq:1; /* expect receive packets with 114 unsigned int recv_seq:1; /* expect receive packets with
115 * sequence numbers? */ 115 * sequence numbers? */
116 unsigned send_seq:1; /* send packets with sequence 116 unsigned int send_seq:1; /* send packets with sequence
117 * numbers? */ 117 * numbers? */
118 unsigned lns_mode:1; /* behave as LNS? LAC enables 118 unsigned int lns_mode:1; /* behave as LNS? LAC enables
119 * sequence numbers under 119 * sequence numbers under
120 * control of LNS. */ 120 * control of LNS. */
121 int debug; /* bitmask of debug message 121 int debug; /* bitmask of debug message
diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c
index b9bef2c7502..17bc85d5b7b 100644
--- a/net/llc/af_llc.c
+++ b/net/llc/af_llc.c
@@ -518,7 +518,7 @@ static int llc_ui_listen(struct socket *sock, int backlog)
518 if (sock_flag(sk, SOCK_ZAPPED)) 518 if (sock_flag(sk, SOCK_ZAPPED))
519 goto out; 519 goto out;
520 rc = 0; 520 rc = 0;
521 if (!(unsigned)backlog) /* BSDism */ 521 if (!(unsigned int)backlog) /* BSDism */
522 backlog = 1; 522 backlog = 1;
523 sk->sk_max_ack_backlog = backlog; 523 sk->sk_max_ack_backlog = backlog;
524 if (sk->sk_state != TCP_LISTEN) { 524 if (sk->sk_state != TCP_LISTEN) {
diff --git a/net/netfilter/ipset/ip_set_core.c b/net/netfilter/ipset/ip_set_core.c
index eb66b9790a6..819c342f5b3 100644
--- a/net/netfilter/ipset/ip_set_core.c
+++ b/net/netfilter/ipset/ip_set_core.c
@@ -1618,7 +1618,7 @@ static struct nfnetlink_subsystem ip_set_netlink_subsys __read_mostly = {
1618static int 1618static int
1619ip_set_sockfn_get(struct sock *sk, int optval, void __user *user, int *len) 1619ip_set_sockfn_get(struct sock *sk, int optval, void __user *user, int *len)
1620{ 1620{
1621 unsigned *op; 1621 unsigned int *op;
1622 void *data; 1622 void *data;
1623 int copylen = *len, ret = 0; 1623 int copylen = *len, ret = 0;
1624 1624
@@ -1626,7 +1626,7 @@ ip_set_sockfn_get(struct sock *sk, int optval, void __user *user, int *len)
1626 return -EPERM; 1626 return -EPERM;
1627 if (optval != SO_IP_SET) 1627 if (optval != SO_IP_SET)
1628 return -EBADF; 1628 return -EBADF;
1629 if (*len < sizeof(unsigned)) 1629 if (*len < sizeof(unsigned int))
1630 return -EINVAL; 1630 return -EINVAL;
1631 1631
1632 data = vmalloc(*len); 1632 data = vmalloc(*len);
@@ -1636,7 +1636,7 @@ ip_set_sockfn_get(struct sock *sk, int optval, void __user *user, int *len)
1636 ret = -EFAULT; 1636 ret = -EFAULT;
1637 goto done; 1637 goto done;
1638 } 1638 }
1639 op = (unsigned *) data; 1639 op = (unsigned int *) data;
1640 1640
1641 if (*op < IP_SET_OP_VERSION) { 1641 if (*op < IP_SET_OP_VERSION) {
1642 /* Check the version at the beginning of operations */ 1642 /* Check the version at the beginning of operations */
diff --git a/net/netfilter/ipvs/ip_vs_app.c b/net/netfilter/ipvs/ip_vs_app.c
index 52856178c9d..64f9e8f1320 100644
--- a/net/netfilter/ipvs/ip_vs_app.c
+++ b/net/netfilter/ipvs/ip_vs_app.c
@@ -313,7 +313,7 @@ vs_fix_ack_seq(const struct ip_vs_seq *vseq, struct tcphdr *th)
313 * Assumes already checked proto==IPPROTO_TCP and diff!=0. 313 * Assumes already checked proto==IPPROTO_TCP and diff!=0.
314 */ 314 */
315static inline void vs_seq_update(struct ip_vs_conn *cp, struct ip_vs_seq *vseq, 315static inline void vs_seq_update(struct ip_vs_conn *cp, struct ip_vs_seq *vseq,
316 unsigned flag, __u32 seq, int diff) 316 unsigned int flag, __u32 seq, int diff)
317{ 317{
318 /* spinlock is to keep updating cp->flags atomic */ 318 /* spinlock is to keep updating cp->flags atomic */
319 spin_lock(&cp->lock); 319 spin_lock(&cp->lock);
diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c
index 29fa5badde7..4a09b787300 100644
--- a/net/netfilter/ipvs/ip_vs_conn.c
+++ b/net/netfilter/ipvs/ip_vs_conn.c
@@ -86,42 +86,42 @@ struct ip_vs_aligned_lock
86static struct ip_vs_aligned_lock 86static struct ip_vs_aligned_lock
87__ip_vs_conntbl_lock_array[CT_LOCKARRAY_SIZE] __cacheline_aligned; 87__ip_vs_conntbl_lock_array[CT_LOCKARRAY_SIZE] __cacheline_aligned;
88 88
89static inline void ct_read_lock(unsigned key) 89static inline void ct_read_lock(unsigned int key)
90{ 90{
91 read_lock(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l); 91 read_lock(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l);
92} 92}
93 93
94static inline void ct_read_unlock(unsigned key) 94static inline void ct_read_unlock(unsigned int key)
95{ 95{
96 read_unlock(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l); 96 read_unlock(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l);
97} 97}
98 98
99static inline void ct_write_lock(unsigned key) 99static inline void ct_write_lock(unsigned int key)
100{ 100{
101 write_lock(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l); 101 write_lock(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l);
102} 102}
103 103
104static inline void ct_write_unlock(unsigned key) 104static inline void ct_write_unlock(unsigned int key)
105{ 105{
106 write_unlock(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l); 106 write_unlock(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l);
107} 107}
108 108
109static inline void ct_read_lock_bh(unsigned key) 109static inline void ct_read_lock_bh(unsigned int key)
110{ 110{
111 read_lock_bh(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l); 111 read_lock_bh(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l);
112} 112}
113 113
114static inline void ct_read_unlock_bh(unsigned key) 114static inline void ct_read_unlock_bh(unsigned int key)
115{ 115{
116 read_unlock_bh(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l); 116 read_unlock_bh(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l);
117} 117}
118 118
119static inline void ct_write_lock_bh(unsigned key) 119static inline void ct_write_lock_bh(unsigned int key)
120{ 120{
121 write_lock_bh(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l); 121 write_lock_bh(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l);
122} 122}
123 123
124static inline void ct_write_unlock_bh(unsigned key) 124static inline void ct_write_unlock_bh(unsigned int key)
125{ 125{
126 write_unlock_bh(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l); 126 write_unlock_bh(&__ip_vs_conntbl_lock_array[key&CT_LOCKARRAY_MASK].l);
127} 127}
@@ -130,7 +130,7 @@ static inline void ct_write_unlock_bh(unsigned key)
130/* 130/*
131 * Returns hash value for IPVS connection entry 131 * Returns hash value for IPVS connection entry
132 */ 132 */
133static unsigned int ip_vs_conn_hashkey(struct net *net, int af, unsigned proto, 133static unsigned int ip_vs_conn_hashkey(struct net *net, int af, unsigned int proto,
134 const union nf_inet_addr *addr, 134 const union nf_inet_addr *addr,
135 __be16 port) 135 __be16 port)
136{ 136{
@@ -188,7 +188,7 @@ static unsigned int ip_vs_conn_hashkey_conn(const struct ip_vs_conn *cp)
188 */ 188 */
189static inline int ip_vs_conn_hash(struct ip_vs_conn *cp) 189static inline int ip_vs_conn_hash(struct ip_vs_conn *cp)
190{ 190{
191 unsigned hash; 191 unsigned int hash;
192 int ret; 192 int ret;
193 193
194 if (cp->flags & IP_VS_CONN_F_ONE_PACKET) 194 if (cp->flags & IP_VS_CONN_F_ONE_PACKET)
@@ -224,7 +224,7 @@ static inline int ip_vs_conn_hash(struct ip_vs_conn *cp)
224 */ 224 */
225static inline int ip_vs_conn_unhash(struct ip_vs_conn *cp) 225static inline int ip_vs_conn_unhash(struct ip_vs_conn *cp)
226{ 226{
227 unsigned hash; 227 unsigned int hash;
228 int ret; 228 int ret;
229 229
230 /* unhash it and decrease its reference counter */ 230 /* unhash it and decrease its reference counter */
@@ -257,7 +257,7 @@ static inline int ip_vs_conn_unhash(struct ip_vs_conn *cp)
257static inline struct ip_vs_conn * 257static inline struct ip_vs_conn *
258__ip_vs_conn_in_get(const struct ip_vs_conn_param *p) 258__ip_vs_conn_in_get(const struct ip_vs_conn_param *p)
259{ 259{
260 unsigned hash; 260 unsigned int hash;
261 struct ip_vs_conn *cp; 261 struct ip_vs_conn *cp;
262 struct hlist_node *n; 262 struct hlist_node *n;
263 263
@@ -344,7 +344,7 @@ EXPORT_SYMBOL_GPL(ip_vs_conn_in_get_proto);
344/* Get reference to connection template */ 344/* Get reference to connection template */
345struct ip_vs_conn *ip_vs_ct_in_get(const struct ip_vs_conn_param *p) 345struct ip_vs_conn *ip_vs_ct_in_get(const struct ip_vs_conn_param *p)
346{ 346{
347 unsigned hash; 347 unsigned int hash;
348 struct ip_vs_conn *cp; 348 struct ip_vs_conn *cp;
349 struct hlist_node *n; 349 struct hlist_node *n;
350 350
@@ -394,7 +394,7 @@ struct ip_vs_conn *ip_vs_ct_in_get(const struct ip_vs_conn_param *p)
394 * p->vaddr, p->vport: pkt dest address (foreign host) */ 394 * p->vaddr, p->vport: pkt dest address (foreign host) */
395struct ip_vs_conn *ip_vs_conn_out_get(const struct ip_vs_conn_param *p) 395struct ip_vs_conn *ip_vs_conn_out_get(const struct ip_vs_conn_param *p)
396{ 396{
397 unsigned hash; 397 unsigned int hash;
398 struct ip_vs_conn *cp, *ret=NULL; 398 struct ip_vs_conn *cp, *ret=NULL;
399 struct hlist_node *n; 399 struct hlist_node *n;
400 400
@@ -824,7 +824,7 @@ void ip_vs_conn_expire_now(struct ip_vs_conn *cp)
824 */ 824 */
825struct ip_vs_conn * 825struct ip_vs_conn *
826ip_vs_conn_new(const struct ip_vs_conn_param *p, 826ip_vs_conn_new(const struct ip_vs_conn_param *p,
827 const union nf_inet_addr *daddr, __be16 dport, unsigned flags, 827 const union nf_inet_addr *daddr, __be16 dport, unsigned int flags,
828 struct ip_vs_dest *dest, __u32 fwmark) 828 struct ip_vs_dest *dest, __u32 fwmark)
829{ 829{
830 struct ip_vs_conn *cp; 830 struct ip_vs_conn *cp;
@@ -1057,7 +1057,7 @@ static const struct file_operations ip_vs_conn_fops = {
1057 .release = seq_release_net, 1057 .release = seq_release_net,
1058}; 1058};
1059 1059
1060static const char *ip_vs_origin_name(unsigned flags) 1060static const char *ip_vs_origin_name(unsigned int flags)
1061{ 1061{
1062 if (flags & IP_VS_CONN_F_SYNC) 1062 if (flags & IP_VS_CONN_F_SYNC)
1063 return "SYNC"; 1063 return "SYNC";
@@ -1169,7 +1169,7 @@ void ip_vs_random_dropentry(struct net *net)
1169 * Randomly scan 1/32 of the whole table every second 1169 * Randomly scan 1/32 of the whole table every second
1170 */ 1170 */
1171 for (idx = 0; idx < (ip_vs_conn_tab_size>>5); idx++) { 1171 for (idx = 0; idx < (ip_vs_conn_tab_size>>5); idx++) {
1172 unsigned hash = net_random() & ip_vs_conn_tab_mask; 1172 unsigned int hash = net_random() & ip_vs_conn_tab_mask;
1173 struct hlist_node *n; 1173 struct hlist_node *n;
1174 1174
1175 /* 1175 /*
diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c
index 2555816e778..b5a5c7363f8 100644
--- a/net/netfilter/ipvs/ip_vs_core.c
+++ b/net/netfilter/ipvs/ip_vs_core.c
@@ -80,7 +80,7 @@ static atomic_t ipvs_netns_cnt = ATOMIC_INIT(0);
80#define icmp_id(icmph) (((icmph)->un).echo.id) 80#define icmp_id(icmph) (((icmph)->un).echo.id)
81#define icmpv6_id(icmph) (icmph->icmp6_dataun.u_echo.identifier) 81#define icmpv6_id(icmph) (icmph->icmp6_dataun.u_echo.identifier)
82 82
83const char *ip_vs_proto_name(unsigned proto) 83const char *ip_vs_proto_name(unsigned int proto)
84{ 84{
85 static char buf[20]; 85 static char buf[20];
86 86
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index 964d426d237..b8d0df70122 100644
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -265,11 +265,11 @@ static struct list_head ip_vs_svc_fwm_table[IP_VS_SVC_TAB_SIZE];
265/* 265/*
266 * Returns hash value for virtual service 266 * Returns hash value for virtual service
267 */ 267 */
268static inline unsigned 268static inline unsigned int
269ip_vs_svc_hashkey(struct net *net, int af, unsigned proto, 269ip_vs_svc_hashkey(struct net *net, int af, unsigned int proto,
270 const union nf_inet_addr *addr, __be16 port) 270 const union nf_inet_addr *addr, __be16 port)
271{ 271{
272 register unsigned porth = ntohs(port); 272 register unsigned int porth = ntohs(port);
273 __be32 addr_fold = addr->ip; 273 __be32 addr_fold = addr->ip;
274 274
275#ifdef CONFIG_IP_VS_IPV6 275#ifdef CONFIG_IP_VS_IPV6
@@ -286,7 +286,7 @@ ip_vs_svc_hashkey(struct net *net, int af, unsigned proto,
286/* 286/*
287 * Returns hash value of fwmark for virtual service lookup 287 * Returns hash value of fwmark for virtual service lookup
288 */ 288 */
289static inline unsigned ip_vs_svc_fwm_hashkey(struct net *net, __u32 fwmark) 289static inline unsigned int ip_vs_svc_fwm_hashkey(struct net *net, __u32 fwmark)
290{ 290{
291 return (((size_t)net>>8) ^ fwmark) & IP_VS_SVC_TAB_MASK; 291 return (((size_t)net>>8) ^ fwmark) & IP_VS_SVC_TAB_MASK;
292} 292}
@@ -298,7 +298,7 @@ static inline unsigned ip_vs_svc_fwm_hashkey(struct net *net, __u32 fwmark)
298 */ 298 */
299static int ip_vs_svc_hash(struct ip_vs_service *svc) 299static int ip_vs_svc_hash(struct ip_vs_service *svc)
300{ 300{
301 unsigned hash; 301 unsigned int hash;
302 302
303 if (svc->flags & IP_VS_SVC_F_HASHED) { 303 if (svc->flags & IP_VS_SVC_F_HASHED) {
304 pr_err("%s(): request for already hashed, called from %pF\n", 304 pr_err("%s(): request for already hashed, called from %pF\n",
@@ -361,7 +361,7 @@ static inline struct ip_vs_service *
361__ip_vs_service_find(struct net *net, int af, __u16 protocol, 361__ip_vs_service_find(struct net *net, int af, __u16 protocol,
362 const union nf_inet_addr *vaddr, __be16 vport) 362 const union nf_inet_addr *vaddr, __be16 vport)
363{ 363{
364 unsigned hash; 364 unsigned int hash;
365 struct ip_vs_service *svc; 365 struct ip_vs_service *svc;
366 366
367 /* Check for "full" addressed entries */ 367 /* Check for "full" addressed entries */
@@ -388,7 +388,7 @@ __ip_vs_service_find(struct net *net, int af, __u16 protocol,
388static inline struct ip_vs_service * 388static inline struct ip_vs_service *
389__ip_vs_svc_fwm_find(struct net *net, int af, __u32 fwmark) 389__ip_vs_svc_fwm_find(struct net *net, int af, __u32 fwmark)
390{ 390{
391 unsigned hash; 391 unsigned int hash;
392 struct ip_vs_service *svc; 392 struct ip_vs_service *svc;
393 393
394 /* Check for fwmark addressed entries */ 394 /* Check for fwmark addressed entries */
@@ -489,11 +489,11 @@ __ip_vs_unbind_svc(struct ip_vs_dest *dest)
489/* 489/*
490 * Returns hash value for real service 490 * Returns hash value for real service
491 */ 491 */
492static inline unsigned ip_vs_rs_hashkey(int af, 492static inline unsigned int ip_vs_rs_hashkey(int af,
493 const union nf_inet_addr *addr, 493 const union nf_inet_addr *addr,
494 __be16 port) 494 __be16 port)
495{ 495{
496 register unsigned porth = ntohs(port); 496 register unsigned int porth = ntohs(port);
497 __be32 addr_fold = addr->ip; 497 __be32 addr_fold = addr->ip;
498 498
499#ifdef CONFIG_IP_VS_IPV6 499#ifdef CONFIG_IP_VS_IPV6
@@ -512,7 +512,7 @@ static inline unsigned ip_vs_rs_hashkey(int af,
512 */ 512 */
513static int ip_vs_rs_hash(struct netns_ipvs *ipvs, struct ip_vs_dest *dest) 513static int ip_vs_rs_hash(struct netns_ipvs *ipvs, struct ip_vs_dest *dest)
514{ 514{
515 unsigned hash; 515 unsigned int hash;
516 516
517 if (!list_empty(&dest->d_list)) { 517 if (!list_empty(&dest->d_list)) {
518 return 0; 518 return 0;
@@ -555,7 +555,7 @@ ip_vs_lookup_real_service(struct net *net, int af, __u16 protocol,
555 __be16 dport) 555 __be16 dport)
556{ 556{
557 struct netns_ipvs *ipvs = net_ipvs(net); 557 struct netns_ipvs *ipvs = net_ipvs(net);
558 unsigned hash; 558 unsigned int hash;
559 struct ip_vs_dest *dest; 559 struct ip_vs_dest *dest;
560 560
561 /* 561 /*
@@ -842,7 +842,7 @@ ip_vs_new_dest(struct ip_vs_service *svc, struct ip_vs_dest_user_kern *udest,
842 struct ip_vs_dest **dest_p) 842 struct ip_vs_dest **dest_p)
843{ 843{
844 struct ip_vs_dest *dest; 844 struct ip_vs_dest *dest;
845 unsigned atype; 845 unsigned int atype;
846 846
847 EnterFunction(2); 847 EnterFunction(2);
848 848
@@ -1867,7 +1867,7 @@ struct ip_vs_iter {
1867 * Write the contents of the VS rule table to a PROCfs file. 1867 * Write the contents of the VS rule table to a PROCfs file.
1868 * (It is kept just for backward compatibility) 1868 * (It is kept just for backward compatibility)
1869 */ 1869 */
1870static inline const char *ip_vs_fwd_name(unsigned flags) 1870static inline const char *ip_vs_fwd_name(unsigned int flags)
1871{ 1871{
1872 switch (flags & IP_VS_CONN_F_FWD_MASK) { 1872 switch (flags & IP_VS_CONN_F_FWD_MASK) {
1873 case IP_VS_CONN_F_LOCALNODE: 1873 case IP_VS_CONN_F_LOCALNODE:
diff --git a/net/netfilter/ipvs/ip_vs_dh.c b/net/netfilter/ipvs/ip_vs_dh.c
index 1c269e56200..1a53a7a2fff 100644
--- a/net/netfilter/ipvs/ip_vs_dh.c
+++ b/net/netfilter/ipvs/ip_vs_dh.c
@@ -68,7 +68,7 @@ struct ip_vs_dh_bucket {
68/* 68/*
69 * Returns hash value for IPVS DH entry 69 * Returns hash value for IPVS DH entry
70 */ 70 */
71static inline unsigned ip_vs_dh_hashkey(int af, const union nf_inet_addr *addr) 71static inline unsigned int ip_vs_dh_hashkey(int af, const union nf_inet_addr *addr)
72{ 72{
73 __be32 addr_fold = addr->ip; 73 __be32 addr_fold = addr->ip;
74 74
diff --git a/net/netfilter/ipvs/ip_vs_ftp.c b/net/netfilter/ipvs/ip_vs_ftp.c
index 538d74ee4f6..debb8c71422 100644
--- a/net/netfilter/ipvs/ip_vs_ftp.c
+++ b/net/netfilter/ipvs/ip_vs_ftp.c
@@ -177,7 +177,7 @@ static int ip_vs_ftp_out(struct ip_vs_app *app, struct ip_vs_conn *cp,
177 __be16 port; 177 __be16 port;
178 struct ip_vs_conn *n_cp; 178 struct ip_vs_conn *n_cp;
179 char buf[24]; /* xxx.xxx.xxx.xxx,ppp,ppp\000 */ 179 char buf[24]; /* xxx.xxx.xxx.xxx,ppp,ppp\000 */
180 unsigned buf_len; 180 unsigned int buf_len;
181 int ret = 0; 181 int ret = 0;
182 enum ip_conntrack_info ctinfo; 182 enum ip_conntrack_info ctinfo;
183 struct nf_conn *ct; 183 struct nf_conn *ct;
diff --git a/net/netfilter/ipvs/ip_vs_lblc.c b/net/netfilter/ipvs/ip_vs_lblc.c
index 0f16283fd05..27c24f156c2 100644
--- a/net/netfilter/ipvs/ip_vs_lblc.c
+++ b/net/netfilter/ipvs/ip_vs_lblc.c
@@ -142,7 +142,7 @@ static inline void ip_vs_lblc_free(struct ip_vs_lblc_entry *en)
142/* 142/*
143 * Returns hash value for IPVS LBLC entry 143 * Returns hash value for IPVS LBLC entry
144 */ 144 */
145static inline unsigned 145static inline unsigned int
146ip_vs_lblc_hashkey(int af, const union nf_inet_addr *addr) 146ip_vs_lblc_hashkey(int af, const union nf_inet_addr *addr)
147{ 147{
148 __be32 addr_fold = addr->ip; 148 __be32 addr_fold = addr->ip;
@@ -163,7 +163,7 @@ ip_vs_lblc_hashkey(int af, const union nf_inet_addr *addr)
163static void 163static void
164ip_vs_lblc_hash(struct ip_vs_lblc_table *tbl, struct ip_vs_lblc_entry *en) 164ip_vs_lblc_hash(struct ip_vs_lblc_table *tbl, struct ip_vs_lblc_entry *en)
165{ 165{
166 unsigned hash = ip_vs_lblc_hashkey(en->af, &en->addr); 166 unsigned int hash = ip_vs_lblc_hashkey(en->af, &en->addr);
167 167
168 list_add(&en->list, &tbl->bucket[hash]); 168 list_add(&en->list, &tbl->bucket[hash]);
169 atomic_inc(&tbl->entries); 169 atomic_inc(&tbl->entries);
@@ -178,7 +178,7 @@ static inline struct ip_vs_lblc_entry *
178ip_vs_lblc_get(int af, struct ip_vs_lblc_table *tbl, 178ip_vs_lblc_get(int af, struct ip_vs_lblc_table *tbl,
179 const union nf_inet_addr *addr) 179 const union nf_inet_addr *addr)
180{ 180{
181 unsigned hash = ip_vs_lblc_hashkey(af, addr); 181 unsigned int hash = ip_vs_lblc_hashkey(af, addr);
182 struct ip_vs_lblc_entry *en; 182 struct ip_vs_lblc_entry *en;
183 183
184 list_for_each_entry(en, &tbl->bucket[hash], list) 184 list_for_each_entry(en, &tbl->bucket[hash], list)
diff --git a/net/netfilter/ipvs/ip_vs_lblcr.c b/net/netfilter/ipvs/ip_vs_lblcr.c
index eec797f8cce..749875611ed 100644
--- a/net/netfilter/ipvs/ip_vs_lblcr.c
+++ b/net/netfilter/ipvs/ip_vs_lblcr.c
@@ -311,7 +311,7 @@ static inline void ip_vs_lblcr_free(struct ip_vs_lblcr_entry *en)
311/* 311/*
312 * Returns hash value for IPVS LBLCR entry 312 * Returns hash value for IPVS LBLCR entry
313 */ 313 */
314static inline unsigned 314static inline unsigned int
315ip_vs_lblcr_hashkey(int af, const union nf_inet_addr *addr) 315ip_vs_lblcr_hashkey(int af, const union nf_inet_addr *addr)
316{ 316{
317 __be32 addr_fold = addr->ip; 317 __be32 addr_fold = addr->ip;
@@ -332,7 +332,7 @@ ip_vs_lblcr_hashkey(int af, const union nf_inet_addr *addr)
332static void 332static void
333ip_vs_lblcr_hash(struct ip_vs_lblcr_table *tbl, struct ip_vs_lblcr_entry *en) 333ip_vs_lblcr_hash(struct ip_vs_lblcr_table *tbl, struct ip_vs_lblcr_entry *en)
334{ 334{
335 unsigned hash = ip_vs_lblcr_hashkey(en->af, &en->addr); 335 unsigned int hash = ip_vs_lblcr_hashkey(en->af, &en->addr);
336 336
337 list_add(&en->list, &tbl->bucket[hash]); 337 list_add(&en->list, &tbl->bucket[hash]);
338 atomic_inc(&tbl->entries); 338 atomic_inc(&tbl->entries);
@@ -347,7 +347,7 @@ static inline struct ip_vs_lblcr_entry *
347ip_vs_lblcr_get(int af, struct ip_vs_lblcr_table *tbl, 347ip_vs_lblcr_get(int af, struct ip_vs_lblcr_table *tbl,
348 const union nf_inet_addr *addr) 348 const union nf_inet_addr *addr)
349{ 349{
350 unsigned hash = ip_vs_lblcr_hashkey(af, addr); 350 unsigned int hash = ip_vs_lblcr_hashkey(af, addr);
351 struct ip_vs_lblcr_entry *en; 351 struct ip_vs_lblcr_entry *en;
352 352
353 list_for_each_entry(en, &tbl->bucket[hash], list) 353 list_for_each_entry(en, &tbl->bucket[hash], list)
diff --git a/net/netfilter/ipvs/ip_vs_proto.c b/net/netfilter/ipvs/ip_vs_proto.c
index f843a883325..6eda11de8c0 100644
--- a/net/netfilter/ipvs/ip_vs_proto.c
+++ b/net/netfilter/ipvs/ip_vs_proto.c
@@ -48,7 +48,7 @@ static struct ip_vs_protocol *ip_vs_proto_table[IP_VS_PROTO_TAB_SIZE];
48 */ 48 */
49static int __used __init register_ip_vs_protocol(struct ip_vs_protocol *pp) 49static int __used __init register_ip_vs_protocol(struct ip_vs_protocol *pp)
50{ 50{
51 unsigned hash = IP_VS_PROTO_HASH(pp->protocol); 51 unsigned int hash = IP_VS_PROTO_HASH(pp->protocol);
52 52
53 pp->next = ip_vs_proto_table[hash]; 53 pp->next = ip_vs_proto_table[hash];
54 ip_vs_proto_table[hash] = pp; 54 ip_vs_proto_table[hash] = pp;
@@ -69,7 +69,7 @@ static int
69register_ip_vs_proto_netns(struct net *net, struct ip_vs_protocol *pp) 69register_ip_vs_proto_netns(struct net *net, struct ip_vs_protocol *pp)
70{ 70{
71 struct netns_ipvs *ipvs = net_ipvs(net); 71 struct netns_ipvs *ipvs = net_ipvs(net);
72 unsigned hash = IP_VS_PROTO_HASH(pp->protocol); 72 unsigned int hash = IP_VS_PROTO_HASH(pp->protocol);
73 struct ip_vs_proto_data *pd = 73 struct ip_vs_proto_data *pd =
74 kzalloc(sizeof(struct ip_vs_proto_data), GFP_ATOMIC); 74 kzalloc(sizeof(struct ip_vs_proto_data), GFP_ATOMIC);
75 75
@@ -94,7 +94,7 @@ register_ip_vs_proto_netns(struct net *net, struct ip_vs_protocol *pp)
94static int unregister_ip_vs_protocol(struct ip_vs_protocol *pp) 94static int unregister_ip_vs_protocol(struct ip_vs_protocol *pp)
95{ 95{
96 struct ip_vs_protocol **pp_p; 96 struct ip_vs_protocol **pp_p;
97 unsigned hash = IP_VS_PROTO_HASH(pp->protocol); 97 unsigned int hash = IP_VS_PROTO_HASH(pp->protocol);
98 98
99 pp_p = &ip_vs_proto_table[hash]; 99 pp_p = &ip_vs_proto_table[hash];
100 for (; *pp_p; pp_p = &(*pp_p)->next) { 100 for (; *pp_p; pp_p = &(*pp_p)->next) {
@@ -117,7 +117,7 @@ unregister_ip_vs_proto_netns(struct net *net, struct ip_vs_proto_data *pd)
117{ 117{
118 struct netns_ipvs *ipvs = net_ipvs(net); 118 struct netns_ipvs *ipvs = net_ipvs(net);
119 struct ip_vs_proto_data **pd_p; 119 struct ip_vs_proto_data **pd_p;
120 unsigned hash = IP_VS_PROTO_HASH(pd->pp->protocol); 120 unsigned int hash = IP_VS_PROTO_HASH(pd->pp->protocol);
121 121
122 pd_p = &ipvs->proto_data_table[hash]; 122 pd_p = &ipvs->proto_data_table[hash];
123 for (; *pd_p; pd_p = &(*pd_p)->next) { 123 for (; *pd_p; pd_p = &(*pd_p)->next) {
@@ -139,7 +139,7 @@ unregister_ip_vs_proto_netns(struct net *net, struct ip_vs_proto_data *pd)
139struct ip_vs_protocol * ip_vs_proto_get(unsigned short proto) 139struct ip_vs_protocol * ip_vs_proto_get(unsigned short proto)
140{ 140{
141 struct ip_vs_protocol *pp; 141 struct ip_vs_protocol *pp;
142 unsigned hash = IP_VS_PROTO_HASH(proto); 142 unsigned int hash = IP_VS_PROTO_HASH(proto);
143 143
144 for (pp = ip_vs_proto_table[hash]; pp; pp = pp->next) { 144 for (pp = ip_vs_proto_table[hash]; pp; pp = pp->next) {
145 if (pp->protocol == proto) 145 if (pp->protocol == proto)
@@ -157,7 +157,7 @@ struct ip_vs_proto_data *
157__ipvs_proto_data_get(struct netns_ipvs *ipvs, unsigned short proto) 157__ipvs_proto_data_get(struct netns_ipvs *ipvs, unsigned short proto)
158{ 158{
159 struct ip_vs_proto_data *pd; 159 struct ip_vs_proto_data *pd;
160 unsigned hash = IP_VS_PROTO_HASH(proto); 160 unsigned int hash = IP_VS_PROTO_HASH(proto);
161 161
162 for (pd = ipvs->proto_data_table[hash]; pd; pd = pd->next) { 162 for (pd = ipvs->proto_data_table[hash]; pd; pd = pd->next) {
163 if (pd->pp->protocol == proto) 163 if (pd->pp->protocol == proto)
diff --git a/net/netfilter/ipvs/ip_vs_sh.c b/net/netfilter/ipvs/ip_vs_sh.c
index 069e8d4d5c0..91e97ee049b 100644
--- a/net/netfilter/ipvs/ip_vs_sh.c
+++ b/net/netfilter/ipvs/ip_vs_sh.c
@@ -70,7 +70,7 @@ struct ip_vs_sh_bucket {
70/* 70/*
71 * Returns hash value for IPVS SH entry 71 * Returns hash value for IPVS SH entry
72 */ 72 */
73static inline unsigned ip_vs_sh_hashkey(int af, const union nf_inet_addr *addr) 73static inline unsigned int ip_vs_sh_hashkey(int af, const union nf_inet_addr *addr)
74{ 74{
75 __be32 addr_fold = addr->ip; 75 __be32 addr_fold = addr->ip;
76 76
diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c
index 8a0d6d6889f..f4e0b6cf824 100644
--- a/net/netfilter/ipvs/ip_vs_sync.c
+++ b/net/netfilter/ipvs/ip_vs_sync.c
@@ -839,7 +839,7 @@ static void ip_vs_process_message_v0(struct net *net, const char *buffer,
839 839
840 p = (char *)buffer + sizeof(struct ip_vs_sync_mesg_v0); 840 p = (char *)buffer + sizeof(struct ip_vs_sync_mesg_v0);
841 for (i=0; i<m->nr_conns; i++) { 841 for (i=0; i<m->nr_conns; i++) {
842 unsigned flags, state; 842 unsigned int flags, state;
843 843
844 if (p + SIMPLE_CONN_SIZE > buffer+buflen) { 844 if (p + SIMPLE_CONN_SIZE > buffer+buflen) {
845 IP_VS_ERR_RL("BACKUP v0, bogus conn\n"); 845 IP_VS_ERR_RL("BACKUP v0, bogus conn\n");
@@ -1109,7 +1109,7 @@ static void ip_vs_process_message(struct net *net, __u8 *buffer,
1109 1109
1110 for (i=0; i<nr_conns; i++) { 1110 for (i=0; i<nr_conns; i++) {
1111 union ip_vs_sync_conn *s; 1111 union ip_vs_sync_conn *s;
1112 unsigned size; 1112 unsigned int size;
1113 int retc; 1113 int retc;
1114 1114
1115 p = msg_end; 1115 p = msg_end;
diff --git a/net/netfilter/nf_conntrack_h323_main.c b/net/netfilter/nf_conntrack_h323_main.c
index 722291f8af7..471b054ad00 100644
--- a/net/netfilter/nf_conntrack_h323_main.c
+++ b/net/netfilter/nf_conntrack_h323_main.c
@@ -1230,7 +1230,7 @@ static struct nf_conntrack_expect *find_expect(struct nf_conn *ct,
1230 1230
1231/****************************************************************************/ 1231/****************************************************************************/
1232static int set_expect_timeout(struct nf_conntrack_expect *exp, 1232static int set_expect_timeout(struct nf_conntrack_expect *exp,
1233 unsigned timeout) 1233 unsigned int timeout)
1234{ 1234{
1235 if (!exp || !del_timer(&exp->timeout)) 1235 if (!exp || !del_timer(&exp->timeout))
1236 return 0; 1236 return 0;
diff --git a/net/netfilter/nfnetlink.c b/net/netfilter/nfnetlink.c
index e6ddde16561..3e797d1fcb9 100644
--- a/net/netfilter/nfnetlink.c
+++ b/net/netfilter/nfnetlink.c
@@ -103,7 +103,7 @@ int nfnetlink_has_listeners(struct net *net, unsigned int group)
103EXPORT_SYMBOL_GPL(nfnetlink_has_listeners); 103EXPORT_SYMBOL_GPL(nfnetlink_has_listeners);
104 104
105int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, 105int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 pid,
106 unsigned group, int echo, gfp_t flags) 106 unsigned int group, int echo, gfp_t flags)
107{ 107{
108 return nlmsg_notify(net->nfnl, skb, pid, group, echo, flags); 108 return nlmsg_notify(net->nfnl, skb, pid, group, echo, flags);
109} 109}
diff --git a/net/netfilter/xt_recent.c b/net/netfilter/xt_recent.c
index d2ff15a2412..fc0d6dbe5d1 100644
--- a/net/netfilter/xt_recent.c
+++ b/net/netfilter/xt_recent.c
@@ -314,7 +314,7 @@ static int recent_mt_check(const struct xt_mtchk_param *par)
314#ifdef CONFIG_PROC_FS 314#ifdef CONFIG_PROC_FS
315 struct proc_dir_entry *pde; 315 struct proc_dir_entry *pde;
316#endif 316#endif
317 unsigned i; 317 unsigned int i;
318 int ret = -EINVAL; 318 int ret = -EINVAL;
319 319
320 if (unlikely(!hash_rnd_inited)) { 320 if (unlikely(!hash_rnd_inited)) {
diff --git a/net/netrom/nr_dev.c b/net/netrom/nr_dev.c
index 1c51d7a58f0..743262becd6 100644
--- a/net/netrom/nr_dev.c
+++ b/net/netrom/nr_dev.c
@@ -97,7 +97,7 @@ static int nr_rebuild_header(struct sk_buff *skb)
97 97
98static int nr_header(struct sk_buff *skb, struct net_device *dev, 98static int nr_header(struct sk_buff *skb, struct net_device *dev,
99 unsigned short type, 99 unsigned short type,
100 const void *daddr, const void *saddr, unsigned len) 100 const void *daddr, const void *saddr, unsigned int len)
101{ 101{
102 unsigned char *buff = skb_push(skb, NR_NETWORK_LEN + NR_TRANSPORT_LEN); 102 unsigned char *buff = skb_push(skb, NR_NETWORK_LEN + NR_TRANSPORT_LEN);
103 103
diff --git a/net/nfc/core.c b/net/nfc/core.c
index 295d129864d..32a7b615e65 100644
--- a/net/nfc/core.c
+++ b/net/nfc/core.c
@@ -475,12 +475,12 @@ EXPORT_SYMBOL(nfc_class);
475static int match_idx(struct device *d, void *data) 475static int match_idx(struct device *d, void *data)
476{ 476{
477 struct nfc_dev *dev = to_nfc_dev(d); 477 struct nfc_dev *dev = to_nfc_dev(d);
478 unsigned *idx = data; 478 unsigned int *idx = data;
479 479
480 return dev->idx == *idx; 480 return dev->idx == *idx;
481} 481}
482 482
483struct nfc_dev *nfc_get_device(unsigned idx) 483struct nfc_dev *nfc_get_device(unsigned int idx)
484{ 484{
485 struct device *d; 485 struct device *d;
486 486
diff --git a/net/nfc/nfc.h b/net/nfc/nfc.h
index ec8794c1099..061a830b0a8 100644
--- a/net/nfc/nfc.h
+++ b/net/nfc/nfc.h
@@ -127,7 +127,7 @@ int nfc_genl_dep_link_up_event(struct nfc_dev *dev, u32 target_idx,
127 u8 comm_mode, u8 rf_mode); 127 u8 comm_mode, u8 rf_mode);
128int nfc_genl_dep_link_down_event(struct nfc_dev *dev); 128int nfc_genl_dep_link_down_event(struct nfc_dev *dev);
129 129
130struct nfc_dev *nfc_get_device(unsigned idx); 130struct nfc_dev *nfc_get_device(unsigned int idx);
131 131
132static inline void nfc_put_device(struct nfc_dev *dev) 132static inline void nfc_put_device(struct nfc_dev *dev)
133{ 133{
diff --git a/net/openvswitch/vport-netdev.c b/net/openvswitch/vport-netdev.c
index c1068aed03d..5920bda4ab6 100644
--- a/net/openvswitch/vport-netdev.c
+++ b/net/openvswitch/vport-netdev.c
@@ -140,9 +140,9 @@ int ovs_netdev_get_ifindex(const struct vport *vport)
140 return netdev_vport->dev->ifindex; 140 return netdev_vport->dev->ifindex;
141} 141}
142 142
143static unsigned packet_length(const struct sk_buff *skb) 143static unsigned int packet_length(const struct sk_buff *skb)
144{ 144{
145 unsigned length = skb->len - ETH_HLEN; 145 unsigned int length = skb->len - ETH_HLEN;
146 146
147 if (skb->protocol == htons(ETH_P_8021Q)) 147 if (skb->protocol == htons(ETH_P_8021Q))
148 length -= VLAN_HLEN; 148 length -= VLAN_HLEN;
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 4f2c0df7956..d2b5f6591f1 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -1764,7 +1764,7 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev,
1764 macoff = netoff = TPACKET_ALIGN(po->tp_hdrlen) + 16 + 1764 macoff = netoff = TPACKET_ALIGN(po->tp_hdrlen) + 16 +
1765 po->tp_reserve; 1765 po->tp_reserve;
1766 } else { 1766 } else {
1767 unsigned maclen = skb_network_offset(skb); 1767 unsigned int maclen = skb_network_offset(skb);
1768 netoff = TPACKET_ALIGN(po->tp_hdrlen + 1768 netoff = TPACKET_ALIGN(po->tp_hdrlen +
1769 (maclen < 16 ? 16 : maclen)) + 1769 (maclen < 16 ? 16 : maclen)) +
1770 po->tp_reserve; 1770 po->tp_reserve;
diff --git a/net/phonet/af_phonet.c b/net/phonet/af_phonet.c
index d65f699fbf3..779ce4ff92e 100644
--- a/net/phonet/af_phonet.c
+++ b/net/phonet/af_phonet.c
@@ -129,7 +129,7 @@ static const struct net_proto_family phonet_proto_family = {
129/* Phonet device header operations */ 129/* Phonet device header operations */
130static int pn_header_create(struct sk_buff *skb, struct net_device *dev, 130static int pn_header_create(struct sk_buff *skb, struct net_device *dev,
131 unsigned short type, const void *daddr, 131 unsigned short type, const void *daddr,
132 const void *saddr, unsigned len) 132 const void *saddr, unsigned int len)
133{ 133{
134 u8 *media = skb_push(skb, 1); 134 u8 *media = skb_push(skb, 1);
135 135
diff --git a/net/phonet/pep.c b/net/phonet/pep.c
index 9726fe684ab..9dd4f926f7d 100644
--- a/net/phonet/pep.c
+++ b/net/phonet/pep.c
@@ -273,7 +273,7 @@ static int pipe_rcv_status(struct sock *sk, struct sk_buff *skb)
273 hdr = pnp_hdr(skb); 273 hdr = pnp_hdr(skb);
274 if (hdr->data[0] != PN_PEP_TYPE_COMMON) { 274 if (hdr->data[0] != PN_PEP_TYPE_COMMON) {
275 LIMIT_NETDEBUG(KERN_DEBUG"Phonet unknown PEP type: %u\n", 275 LIMIT_NETDEBUG(KERN_DEBUG"Phonet unknown PEP type: %u\n",
276 (unsigned)hdr->data[0]); 276 (unsigned int)hdr->data[0]);
277 return -EOPNOTSUPP; 277 return -EOPNOTSUPP;
278 } 278 }
279 279
@@ -305,7 +305,7 @@ static int pipe_rcv_status(struct sock *sk, struct sk_buff *skb)
305 305
306 default: 306 default:
307 LIMIT_NETDEBUG(KERN_DEBUG"Phonet unknown PEP indication: %u\n", 307 LIMIT_NETDEBUG(KERN_DEBUG"Phonet unknown PEP indication: %u\n",
308 (unsigned)hdr->data[1]); 308 (unsigned int)hdr->data[1]);
309 return -EOPNOTSUPP; 309 return -EOPNOTSUPP;
310 } 310 }
311 if (wake) 311 if (wake)
@@ -478,9 +478,9 @@ static void pipe_destruct(struct sock *sk)
478 skb_queue_purge(&pn->ctrlreq_queue); 478 skb_queue_purge(&pn->ctrlreq_queue);
479} 479}
480 480
481static u8 pipe_negotiate_fc(const u8 *fcs, unsigned n) 481static u8 pipe_negotiate_fc(const u8 *fcs, unsigned int n)
482{ 482{
483 unsigned i; 483 unsigned int i;
484 u8 final_fc = PN_NO_FLOW_CONTROL; 484 u8 final_fc = PN_NO_FLOW_CONTROL;
485 485
486 for (i = 0; i < n; i++) { 486 for (i = 0; i < n; i++) {
diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c
index da564efe4f5..36f75a9e2c3 100644
--- a/net/phonet/pn_dev.c
+++ b/net/phonet/pn_dev.c
@@ -268,7 +268,7 @@ static int phonet_device_autoconf(struct net_device *dev)
268static void phonet_route_autodel(struct net_device *dev) 268static void phonet_route_autodel(struct net_device *dev)
269{ 269{
270 struct phonet_net *pnn = phonet_pernet(dev_net(dev)); 270 struct phonet_net *pnn = phonet_pernet(dev_net(dev));
271 unsigned i; 271 unsigned int i;
272 DECLARE_BITMAP(deleted, 64); 272 DECLARE_BITMAP(deleted, 64);
273 273
274 /* Remove left-over Phonet routes */ 274 /* Remove left-over Phonet routes */
diff --git a/net/phonet/socket.c b/net/phonet/socket.c
index 4c7eff30dfa..89cfa9ce493 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
diff --git a/net/phonet/sysctl.c b/net/phonet/sysctl.c
index 740bf209dd9..8bed7675b3f 100644
--- a/net/phonet/sysctl.c
+++ b/net/phonet/sysctl.c
@@ -50,7 +50,8 @@ static void set_local_port_range(int range[2])
50 50
51void phonet_get_local_port_range(int *min, int *max) 51void phonet_get_local_port_range(int *min, int *max)
52{ 52{
53 unsigned seq; 53 unsigned int seq;
54
54 do { 55 do {
55 seq = read_seqbegin(&local_port_range_lock); 56 seq = read_seqbegin(&local_port_range_lock);
56 if (min) 57 if (min)
diff --git a/net/rose/rose_dev.c b/net/rose/rose_dev.c
index 906cc05bba6..28dbdb911b8 100644
--- a/net/rose/rose_dev.c
+++ b/net/rose/rose_dev.c
@@ -37,7 +37,7 @@
37 37
38static int rose_header(struct sk_buff *skb, struct net_device *dev, 38static int rose_header(struct sk_buff *skb, struct net_device *dev,
39 unsigned short type, 39 unsigned short type,
40 const void *daddr, const void *saddr, unsigned len) 40 const void *daddr, const void *saddr, unsigned int len)
41{ 41{
42 unsigned char *buff = skb_push(skb, ROSE_MIN_LEN + 2); 42 unsigned char *buff = skb_push(skb, ROSE_MIN_LEN + 2);
43 43
diff --git a/net/rose/rose_subr.c b/net/rose/rose_subr.c
index 47f1fdb346b..7ca57741b2f 100644
--- a/net/rose/rose_subr.c
+++ b/net/rose/rose_subr.c
@@ -399,7 +399,7 @@ int rose_parse_facilities(unsigned char *p, unsigned packet_len,
399 399
400 facilities_len = *p++; 400 facilities_len = *p++;
401 401
402 if (facilities_len == 0 || (unsigned)facilities_len > packet_len) 402 if (facilities_len == 0 || (unsigned int)facilities_len > packet_len)
403 return 0; 403 return 0;
404 404
405 while (facilities_len >= 3 && *p == 0x00) { 405 while (facilities_len >= 3 && *p == 0x00) {
diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c
index 74c064c0dfd..05996d0dd82 100644
--- a/net/rxrpc/af_rxrpc.c
+++ b/net/rxrpc/af_rxrpc.c
@@ -26,7 +26,7 @@ MODULE_AUTHOR("Red Hat, Inc.");
26MODULE_LICENSE("GPL"); 26MODULE_LICENSE("GPL");
27MODULE_ALIAS_NETPROTO(PF_RXRPC); 27MODULE_ALIAS_NETPROTO(PF_RXRPC);
28 28
29unsigned rxrpc_debug; // = RXRPC_DEBUG_KPROTO; 29unsigned int rxrpc_debug; // = RXRPC_DEBUG_KPROTO;
30module_param_named(debug, rxrpc_debug, uint, S_IWUSR | S_IRUGO); 30module_param_named(debug, rxrpc_debug, uint, S_IWUSR | S_IRUGO);
31MODULE_PARM_DESC(debug, "RxRPC debugging mask"); 31MODULE_PARM_DESC(debug, "RxRPC debugging mask");
32 32
@@ -513,7 +513,7 @@ static int rxrpc_setsockopt(struct socket *sock, int level, int optname,
513 char __user *optval, unsigned int optlen) 513 char __user *optval, unsigned int optlen)
514{ 514{
515 struct rxrpc_sock *rx = rxrpc_sk(sock->sk); 515 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
516 unsigned min_sec_level; 516 unsigned int min_sec_level;
517 int ret; 517 int ret;
518 518
519 _enter(",%d,%d,,%d", level, optname, optlen); 519 _enter(",%d,%d,,%d", level, optname, optlen);
@@ -555,13 +555,13 @@ static int rxrpc_setsockopt(struct socket *sock, int level, int optname,
555 555
556 case RXRPC_MIN_SECURITY_LEVEL: 556 case RXRPC_MIN_SECURITY_LEVEL:
557 ret = -EINVAL; 557 ret = -EINVAL;
558 if (optlen != sizeof(unsigned)) 558 if (optlen != sizeof(unsigned int))
559 goto error; 559 goto error;
560 ret = -EISCONN; 560 ret = -EISCONN;
561 if (rx->sk.sk_state != RXRPC_UNCONNECTED) 561 if (rx->sk.sk_state != RXRPC_UNCONNECTED)
562 goto error; 562 goto error;
563 ret = get_user(min_sec_level, 563 ret = get_user(min_sec_level,
564 (unsigned __user *) optval); 564 (unsigned int __user *) optval);
565 if (ret < 0) 565 if (ret < 0)
566 goto error; 566 goto error;
567 ret = -EINVAL; 567 ret = -EINVAL;
diff --git a/net/rxrpc/ar-ack.c b/net/rxrpc/ar-ack.c
index c3126e864f3..e4d9cbcff40 100644
--- a/net/rxrpc/ar-ack.c
+++ b/net/rxrpc/ar-ack.c
@@ -19,7 +19,7 @@
19#include <net/af_rxrpc.h> 19#include <net/af_rxrpc.h>
20#include "ar-internal.h" 20#include "ar-internal.h"
21 21
22static unsigned rxrpc_ack_defer = 1; 22static unsigned int rxrpc_ack_defer = 1;
23 23
24static const char *const rxrpc_acks[] = { 24static const char *const rxrpc_acks[] = {
25 "---", "REQ", "DUP", "OOS", "WIN", "MEM", "PNG", "PNR", "DLY", "IDL", 25 "---", "REQ", "DUP", "OOS", "WIN", "MEM", "PNG", "PNR", "DLY", "IDL",
@@ -548,11 +548,11 @@ static void rxrpc_zap_tx_window(struct rxrpc_call *call)
548 * process the extra information that may be appended to an ACK packet 548 * process the extra information that may be appended to an ACK packet
549 */ 549 */
550static void rxrpc_extract_ackinfo(struct rxrpc_call *call, struct sk_buff *skb, 550static void rxrpc_extract_ackinfo(struct rxrpc_call *call, struct sk_buff *skb,
551 unsigned latest, int nAcks) 551 unsigned int latest, int nAcks)
552{ 552{
553 struct rxrpc_ackinfo ackinfo; 553 struct rxrpc_ackinfo ackinfo;
554 struct rxrpc_peer *peer; 554 struct rxrpc_peer *peer;
555 unsigned mtu; 555 unsigned int mtu;
556 556
557 if (skb_copy_bits(skb, nAcks + 3, &ackinfo, sizeof(ackinfo)) < 0) { 557 if (skb_copy_bits(skb, nAcks + 3, &ackinfo, sizeof(ackinfo)) < 0) {
558 _leave(" [no ackinfo]"); 558 _leave(" [no ackinfo]");
diff --git a/net/rxrpc/ar-call.c b/net/rxrpc/ar-call.c
index bf656c230ba..a3bbb360a3f 100644
--- a/net/rxrpc/ar-call.c
+++ b/net/rxrpc/ar-call.c
@@ -38,8 +38,8 @@ const char *const rxrpc_call_states[] = {
38struct kmem_cache *rxrpc_call_jar; 38struct kmem_cache *rxrpc_call_jar;
39LIST_HEAD(rxrpc_calls); 39LIST_HEAD(rxrpc_calls);
40DEFINE_RWLOCK(rxrpc_call_lock); 40DEFINE_RWLOCK(rxrpc_call_lock);
41static unsigned rxrpc_call_max_lifetime = 60; 41static unsigned int rxrpc_call_max_lifetime = 60;
42static unsigned rxrpc_dead_call_timeout = 2; 42static unsigned int rxrpc_dead_call_timeout = 2;
43 43
44static void rxrpc_destroy_call(struct work_struct *work); 44static void rxrpc_destroy_call(struct work_struct *work);
45static void rxrpc_call_life_expired(unsigned long _call); 45static void rxrpc_call_life_expired(unsigned long _call);
diff --git a/net/rxrpc/ar-input.c b/net/rxrpc/ar-input.c
index 1a2b0633fec..529572f18d1 100644
--- a/net/rxrpc/ar-input.c
+++ b/net/rxrpc/ar-input.c
@@ -76,7 +76,7 @@ int rxrpc_queue_rcv_skb(struct rxrpc_call *call, struct sk_buff *skb,
76 * --ANK */ 76 * --ANK */
77// ret = -ENOBUFS; 77// ret = -ENOBUFS;
78// if (atomic_read(&sk->sk_rmem_alloc) + skb->truesize >= 78// if (atomic_read(&sk->sk_rmem_alloc) + skb->truesize >=
79// (unsigned) sk->sk_rcvbuf) 79// (unsigned int) sk->sk_rcvbuf)
80// goto out; 80// goto out;
81 81
82 ret = sk_filter(sk, skb); 82 ret = sk_filter(sk, skb);
diff --git a/net/rxrpc/ar-internal.h b/net/rxrpc/ar-internal.h
index 8e22bd345e7..a693aca2ae2 100644
--- a/net/rxrpc/ar-internal.h
+++ b/net/rxrpc/ar-internal.h
@@ -83,7 +83,7 @@ struct rxrpc_skb_priv {
83 struct rxrpc_call *call; /* call with which associated */ 83 struct rxrpc_call *call; /* call with which associated */
84 unsigned long resend_at; /* time in jiffies at which to resend */ 84 unsigned long resend_at; /* time in jiffies at which to resend */
85 union { 85 union {
86 unsigned offset; /* offset into buffer of next read */ 86 unsigned int offset; /* offset into buffer of next read */
87 int remain; /* amount of space remaining for next write */ 87 int remain; /* amount of space remaining for next write */
88 u32 error; /* network error code */ 88 u32 error; /* network error code */
89 bool need_resend; /* T if needs resending */ 89 bool need_resend; /* T if needs resending */
@@ -176,9 +176,9 @@ struct rxrpc_peer {
176 struct list_head error_targets; /* targets for net error distribution */ 176 struct list_head error_targets; /* targets for net error distribution */
177 spinlock_t lock; /* access lock */ 177 spinlock_t lock; /* access lock */
178 atomic_t usage; 178 atomic_t usage;
179 unsigned if_mtu; /* interface MTU for this peer */ 179 unsigned int if_mtu; /* interface MTU for this peer */
180 unsigned mtu; /* network MTU for this peer */ 180 unsigned int mtu; /* network MTU for this peer */
181 unsigned maxdata; /* data size (MTU - hdrsize) */ 181 unsigned int maxdata; /* data size (MTU - hdrsize) */
182 unsigned short hdrsize; /* header size (IP + UDP + RxRPC) */ 182 unsigned short hdrsize; /* header size (IP + UDP + RxRPC) */
183 int debug_id; /* debug ID for printks */ 183 int debug_id; /* debug ID for printks */
184 int net_error; /* network error distributed */ 184 int net_error; /* network error distributed */
@@ -187,8 +187,8 @@ struct rxrpc_peer {
187 /* calculated RTT cache */ 187 /* calculated RTT cache */
188#define RXRPC_RTT_CACHE_SIZE 32 188#define RXRPC_RTT_CACHE_SIZE 32
189 suseconds_t rtt; /* current RTT estimate (in uS) */ 189 suseconds_t rtt; /* current RTT estimate (in uS) */
190 unsigned rtt_point; /* next entry at which to insert */ 190 unsigned int rtt_point; /* next entry at which to insert */
191 unsigned rtt_usage; /* amount of cache actually used */ 191 unsigned int rtt_usage; /* amount of cache actually used */
192 suseconds_t rtt_cache[RXRPC_RTT_CACHE_SIZE]; /* calculated RTT cache */ 192 suseconds_t rtt_cache[RXRPC_RTT_CACHE_SIZE]; /* calculated RTT cache */
193}; 193};
194 194
@@ -271,7 +271,7 @@ struct rxrpc_connection {
271 } state; 271 } state;
272 int error; /* error code for local abort */ 272 int error; /* error code for local abort */
273 int debug_id; /* debug ID for printks */ 273 int debug_id; /* debug ID for printks */
274 unsigned call_counter; /* call ID counter */ 274 unsigned int call_counter; /* call ID counter */
275 atomic_t serial; /* packet serial number counter */ 275 atomic_t serial; /* packet serial number counter */
276 atomic_t hi_serial; /* highest serial number received */ 276 atomic_t hi_serial; /* highest serial number received */
277 u8 avail_calls; /* number of calls available */ 277 u8 avail_calls; /* number of calls available */
@@ -592,7 +592,7 @@ extern struct rxrpc_transport *rxrpc_find_transport(struct rxrpc_local *,
592/* 592/*
593 * debug tracing 593 * debug tracing
594 */ 594 */
595extern unsigned rxrpc_debug; 595extern unsigned int rxrpc_debug;
596 596
597#define dbgprintk(FMT,...) \ 597#define dbgprintk(FMT,...) \
598 printk("[%-6.6s] "FMT"\n", current->comm ,##__VA_ARGS__) 598 printk("[%-6.6s] "FMT"\n", current->comm ,##__VA_ARGS__)
diff --git a/net/rxrpc/ar-key.c b/net/rxrpc/ar-key.c
index ae3a035f539..8b1f9f49960 100644
--- a/net/rxrpc/ar-key.c
+++ b/net/rxrpc/ar-key.c
@@ -82,7 +82,7 @@ static int rxrpc_vet_description_s(const char *desc)
82 * - the caller guarantees we have at least 4 words 82 * - the caller guarantees we have at least 4 words
83 */ 83 */
84static int rxrpc_instantiate_xdr_rxkad(struct key *key, const __be32 *xdr, 84static int rxrpc_instantiate_xdr_rxkad(struct key *key, const __be32 *xdr,
85 unsigned toklen) 85 unsigned int toklen)
86{ 86{
87 struct rxrpc_key_token *token, **pptoken; 87 struct rxrpc_key_token *token, **pptoken;
88 size_t plen; 88 size_t plen;
@@ -210,10 +210,10 @@ static void rxrpc_rxk5_free(struct rxk5_key *rxk5)
210 */ 210 */
211static int rxrpc_krb5_decode_principal(struct krb5_principal *princ, 211static int rxrpc_krb5_decode_principal(struct krb5_principal *princ,
212 const __be32 **_xdr, 212 const __be32 **_xdr,
213 unsigned *_toklen) 213 unsigned int *_toklen)
214{ 214{
215 const __be32 *xdr = *_xdr; 215 const __be32 *xdr = *_xdr;
216 unsigned toklen = *_toklen, n_parts, loop, tmp; 216 unsigned int toklen = *_toklen, n_parts, loop, tmp;
217 217
218 /* there must be at least one name, and at least #names+1 length 218 /* there must be at least one name, and at least #names+1 length
219 * words */ 219 * words */
@@ -286,10 +286,10 @@ static int rxrpc_krb5_decode_principal(struct krb5_principal *princ,
286static int rxrpc_krb5_decode_tagged_data(struct krb5_tagged_data *td, 286static int rxrpc_krb5_decode_tagged_data(struct krb5_tagged_data *td,
287 size_t max_data_size, 287 size_t max_data_size,
288 const __be32 **_xdr, 288 const __be32 **_xdr,
289 unsigned *_toklen) 289 unsigned int *_toklen)
290{ 290{
291 const __be32 *xdr = *_xdr; 291 const __be32 *xdr = *_xdr;
292 unsigned toklen = *_toklen, len; 292 unsigned int toklen = *_toklen, len;
293 293
294 /* there must be at least one tag and one length word */ 294 /* there must be at least one tag and one length word */
295 if (toklen <= 8) 295 if (toklen <= 8)
@@ -330,11 +330,11 @@ static int rxrpc_krb5_decode_tagged_array(struct krb5_tagged_data **_td,
330 u8 max_n_elem, 330 u8 max_n_elem,
331 size_t max_elem_size, 331 size_t max_elem_size,
332 const __be32 **_xdr, 332 const __be32 **_xdr,
333 unsigned *_toklen) 333 unsigned int *_toklen)
334{ 334{
335 struct krb5_tagged_data *td; 335 struct krb5_tagged_data *td;
336 const __be32 *xdr = *_xdr; 336 const __be32 *xdr = *_xdr;
337 unsigned toklen = *_toklen, n_elem, loop; 337 unsigned int toklen = *_toklen, n_elem, loop;
338 int ret; 338 int ret;
339 339
340 /* there must be at least one count */ 340 /* there must be at least one count */
@@ -380,10 +380,10 @@ static int rxrpc_krb5_decode_tagged_array(struct krb5_tagged_data **_td,
380 * extract a krb5 ticket 380 * extract a krb5 ticket
381 */ 381 */
382static int rxrpc_krb5_decode_ticket(u8 **_ticket, u16 *_tktlen, 382static int rxrpc_krb5_decode_ticket(u8 **_ticket, u16 *_tktlen,
383 const __be32 **_xdr, unsigned *_toklen) 383 const __be32 **_xdr, unsigned int *_toklen)
384{ 384{
385 const __be32 *xdr = *_xdr; 385 const __be32 *xdr = *_xdr;
386 unsigned toklen = *_toklen, len; 386 unsigned int toklen = *_toklen, len;
387 387
388 /* there must be at least one length word */ 388 /* there must be at least one length word */
389 if (toklen <= 4) 389 if (toklen <= 4)
@@ -419,7 +419,7 @@ static int rxrpc_krb5_decode_ticket(u8 **_ticket, u16 *_tktlen,
419 * - the caller guarantees we have at least 4 words 419 * - the caller guarantees we have at least 4 words
420 */ 420 */
421static int rxrpc_instantiate_xdr_rxk5(struct key *key, const __be32 *xdr, 421static int rxrpc_instantiate_xdr_rxk5(struct key *key, const __be32 *xdr,
422 unsigned toklen) 422 unsigned int toklen)
423{ 423{
424 struct rxrpc_key_token *token, **pptoken; 424 struct rxrpc_key_token *token, **pptoken;
425 struct rxk5_key *rxk5; 425 struct rxk5_key *rxk5;
@@ -549,7 +549,7 @@ static int rxrpc_instantiate_xdr(struct key *key, const void *data, size_t datal
549{ 549{
550 const __be32 *xdr = data, *token; 550 const __be32 *xdr = data, *token;
551 const char *cp; 551 const char *cp;
552 unsigned len, tmp, loop, ntoken, toklen, sec_ix; 552 unsigned int len, tmp, loop, ntoken, toklen, sec_ix;
553 int ret; 553 int ret;
554 554
555 _enter(",{%x,%x,%x,%x},%zu", 555 _enter(",{%x,%x,%x,%x},%zu",
diff --git a/net/rxrpc/rxkad.c b/net/rxrpc/rxkad.c
index 7635107726c..f226709ebd8 100644
--- a/net/rxrpc/rxkad.c
+++ b/net/rxrpc/rxkad.c
@@ -31,7 +31,7 @@
31#define REALM_SZ 40 /* size of principal's auth domain */ 31#define REALM_SZ 40 /* size of principal's auth domain */
32#define SNAME_SZ 40 /* size of service name */ 32#define SNAME_SZ 40 /* size of service name */
33 33
34unsigned rxrpc_debug; 34unsigned int rxrpc_debug;
35module_param_named(debug, rxrpc_debug, uint, S_IWUSR | S_IRUGO); 35module_param_named(debug, rxrpc_debug, uint, S_IWUSR | S_IRUGO);
36MODULE_PARM_DESC(debug, "rxkad debugging mask"); 36MODULE_PARM_DESC(debug, "rxkad debugging mask");
37 37
@@ -207,7 +207,7 @@ static int rxkad_secure_packet_encrypt(const struct rxrpc_call *call,
207 struct rxrpc_crypt iv; 207 struct rxrpc_crypt iv;
208 struct scatterlist sg[16]; 208 struct scatterlist sg[16];
209 struct sk_buff *trailer; 209 struct sk_buff *trailer;
210 unsigned len; 210 unsigned int len;
211 u16 check; 211 u16 check;
212 int nsg; 212 int nsg;
213 213
@@ -826,7 +826,7 @@ static int rxkad_decrypt_ticket(struct rxrpc_connection *conn,
826 struct rxrpc_crypt iv, key; 826 struct rxrpc_crypt iv, key;
827 struct scatterlist sg[1]; 827 struct scatterlist sg[1];
828 struct in_addr addr; 828 struct in_addr addr;
829 unsigned life; 829 unsigned int life;
830 time_t issue, now; 830 time_t issue, now;
831 bool little_endian; 831 bool little_endian;
832 int ret; 832 int ret;
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index acd2edbc073..5bc9ab161b3 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -1408,7 +1408,7 @@ static inline int sctp_peer_needs_update(struct sctp_association *asoc)
1408} 1408}
1409 1409
1410/* Increase asoc's rwnd by len and send any window update SACK if needed. */ 1410/* Increase asoc's rwnd by len and send any window update SACK if needed. */
1411void sctp_assoc_rwnd_increase(struct sctp_association *asoc, unsigned len) 1411void sctp_assoc_rwnd_increase(struct sctp_association *asoc, unsigned int len)
1412{ 1412{
1413 struct sctp_chunk *sack; 1413 struct sctp_chunk *sack;
1414 struct timer_list *timer; 1414 struct timer_list *timer;
@@ -1465,7 +1465,7 @@ void sctp_assoc_rwnd_increase(struct sctp_association *asoc, unsigned len)
1465} 1465}
1466 1466
1467/* Decrease asoc's rwnd by len. */ 1467/* Decrease asoc's rwnd by len. */
1468void sctp_assoc_rwnd_decrease(struct sctp_association *asoc, unsigned len) 1468void sctp_assoc_rwnd_decrease(struct sctp_association *asoc, unsigned int len)
1469{ 1469{
1470 int rx_count; 1470 int rx_count;
1471 int over = 0; 1471 int over = 0;
diff --git a/net/sctp/output.c b/net/sctp/output.c
index 817174eb5f4..69534c5f8af 100644
--- a/net/sctp/output.c
+++ b/net/sctp/output.c
@@ -663,8 +663,8 @@ static sctp_xmit_t sctp_packet_can_append_data(struct sctp_packet *packet,
663 */ 663 */
664 if (!sctp_sk(asoc->base.sk)->nodelay && sctp_packet_empty(packet) && 664 if (!sctp_sk(asoc->base.sk)->nodelay && sctp_packet_empty(packet) &&
665 inflight && sctp_state(asoc, ESTABLISHED)) { 665 inflight && sctp_state(asoc, ESTABLISHED)) {
666 unsigned max = transport->pathmtu - packet->overhead; 666 unsigned int max = transport->pathmtu - packet->overhead;
667 unsigned len = chunk->skb->len + q->out_qlen; 667 unsigned int len = chunk->skb->len + q->out_qlen;
668 668
669 /* Check whether this chunk and all the rest of pending 669 /* Check whether this chunk and all the rest of pending
670 * data will fit or delay in hopes of bundling a full 670 * data will fit or delay in hopes of bundling a full
diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c
index cfeb1d4a1ee..a0fa19f5650 100644
--- a/net/sctp/outqueue.c
+++ b/net/sctp/outqueue.c
@@ -1147,7 +1147,7 @@ int sctp_outq_sack(struct sctp_outq *q, struct sctp_sackhdr *sack)
1147 __u32 sack_ctsn, ctsn, tsn; 1147 __u32 sack_ctsn, ctsn, tsn;
1148 __u32 highest_tsn, highest_new_tsn; 1148 __u32 highest_tsn, highest_new_tsn;
1149 __u32 sack_a_rwnd; 1149 __u32 sack_a_rwnd;
1150 unsigned outstanding; 1150 unsigned int outstanding;
1151 struct sctp_transport *primary = asoc->peer.primary_path; 1151 struct sctp_transport *primary = asoc->peer.primary_path;
1152 int count_of_newacks = 0; 1152 int count_of_newacks = 0;
1153 int gap_ack_blocks; 1153 int gap_ack_blocks;
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c
index 1ff51c9d18d..fbb374c6594 100644
--- a/net/sctp/sm_sideeffect.c
+++ b/net/sctp/sm_sideeffect.c
@@ -524,7 +524,7 @@ static void sctp_do_8_2_transport_strike(struct sctp_association *asoc,
524/* Worker routine to handle INIT command failure. */ 524/* Worker routine to handle INIT command failure. */
525static void sctp_cmd_init_failed(sctp_cmd_seq_t *commands, 525static void sctp_cmd_init_failed(sctp_cmd_seq_t *commands,
526 struct sctp_association *asoc, 526 struct sctp_association *asoc,
527 unsigned error) 527 unsigned int error)
528{ 528{
529 struct sctp_ulpevent *event; 529 struct sctp_ulpevent *event;
530 530
@@ -550,7 +550,7 @@ static void sctp_cmd_assoc_failed(sctp_cmd_seq_t *commands,
550 sctp_event_t event_type, 550 sctp_event_t event_type,
551 sctp_subtype_t subtype, 551 sctp_subtype_t subtype,
552 struct sctp_chunk *chunk, 552 struct sctp_chunk *chunk,
553 unsigned error) 553 unsigned int error)
554{ 554{
555 struct sctp_ulpevent *event; 555 struct sctp_ulpevent *event;
556 556
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c
index 891f5db8cc3..a147b4d307d 100644
--- a/net/sctp/sm_statefuns.c
+++ b/net/sctp/sm_statefuns.c
@@ -2410,7 +2410,7 @@ static sctp_disposition_t __sctp_sf_do_9_1_abort(const struct sctp_endpoint *ep,
2410 sctp_cmd_seq_t *commands) 2410 sctp_cmd_seq_t *commands)
2411{ 2411{
2412 struct sctp_chunk *chunk = arg; 2412 struct sctp_chunk *chunk = arg;
2413 unsigned len; 2413 unsigned int len;
2414 __be16 error = SCTP_ERROR_NO_ERROR; 2414 __be16 error = SCTP_ERROR_NO_ERROR;
2415 2415
2416 /* See if we have an error cause code in the chunk. */ 2416 /* See if we have an error cause code in the chunk. */
@@ -2446,7 +2446,7 @@ sctp_disposition_t sctp_sf_cookie_wait_abort(const struct sctp_endpoint *ep,
2446 sctp_cmd_seq_t *commands) 2446 sctp_cmd_seq_t *commands)
2447{ 2447{
2448 struct sctp_chunk *chunk = arg; 2448 struct sctp_chunk *chunk = arg;
2449 unsigned len; 2449 unsigned int len;
2450 __be16 error = SCTP_ERROR_NO_ERROR; 2450 __be16 error = SCTP_ERROR_NO_ERROR;
2451 2451
2452 if (!sctp_vtag_verify_either(chunk, asoc)) 2452 if (!sctp_vtag_verify_either(chunk, asoc))
diff --git a/net/socket.c b/net/socket.c
index 851edcd6b09..d6c1af9ae7b 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -1479,7 +1479,7 @@ SYSCALL_DEFINE2(listen, int, fd, int, backlog)
1479 sock = sockfd_lookup_light(fd, &err, &fput_needed); 1479 sock = sockfd_lookup_light(fd, &err, &fput_needed);
1480 if (sock) { 1480 if (sock) {
1481 somaxconn = sock_net(sock->sk)->core.sysctl_somaxconn; 1481 somaxconn = sock_net(sock->sk)->core.sysctl_somaxconn;
1482 if ((unsigned)backlog > somaxconn) 1482 if ((unsigned int)backlog > somaxconn)
1483 backlog = somaxconn; 1483 backlog = somaxconn;
1484 1484
1485 err = security_socket_listen(sock, backlog); 1485 err = security_socket_listen(sock, backlog);
@@ -1691,7 +1691,7 @@ SYSCALL_DEFINE3(getpeername, int, fd, struct sockaddr __user *, usockaddr,
1691 */ 1691 */
1692 1692
1693SYSCALL_DEFINE6(sendto, int, fd, void __user *, buff, size_t, len, 1693SYSCALL_DEFINE6(sendto, int, fd, void __user *, buff, size_t, len,
1694 unsigned, flags, struct sockaddr __user *, addr, 1694 unsigned int, flags, struct sockaddr __user *, addr,
1695 int, addr_len) 1695 int, addr_len)
1696{ 1696{
1697 struct socket *sock; 1697 struct socket *sock;
@@ -1738,7 +1738,7 @@ out:
1738 */ 1738 */
1739 1739
1740SYSCALL_DEFINE4(send, int, fd, void __user *, buff, size_t, len, 1740SYSCALL_DEFINE4(send, int, fd, void __user *, buff, size_t, len,
1741 unsigned, flags) 1741 unsigned int, flags)
1742{ 1742{
1743 return sys_sendto(fd, buff, len, flags, NULL, 0); 1743 return sys_sendto(fd, buff, len, flags, NULL, 0);
1744} 1744}
@@ -1750,7 +1750,7 @@ SYSCALL_DEFINE4(send, int, fd, void __user *, buff, size_t, len,
1750 */ 1750 */
1751 1751
1752SYSCALL_DEFINE6(recvfrom, int, fd, void __user *, ubuf, size_t, size, 1752SYSCALL_DEFINE6(recvfrom, int, fd, void __user *, ubuf, size_t, size,
1753 unsigned, flags, struct sockaddr __user *, addr, 1753 unsigned int, flags, struct sockaddr __user *, addr,
1754 int __user *, addr_len) 1754 int __user *, addr_len)
1755{ 1755{
1756 struct socket *sock; 1756 struct socket *sock;
@@ -1795,7 +1795,7 @@ out:
1795 */ 1795 */
1796 1796
1797asmlinkage long sys_recv(int fd, void __user *ubuf, size_t size, 1797asmlinkage long sys_recv(int fd, void __user *ubuf, size_t size,
1798 unsigned flags) 1798 unsigned int flags)
1799{ 1799{
1800 return sys_recvfrom(fd, ubuf, size, flags, NULL, NULL); 1800 return sys_recvfrom(fd, ubuf, size, flags, NULL, NULL);
1801} 1801}
@@ -1897,7 +1897,7 @@ struct used_address {
1897}; 1897};
1898 1898
1899static int __sys_sendmsg(struct socket *sock, struct msghdr __user *msg, 1899static int __sys_sendmsg(struct socket *sock, struct msghdr __user *msg,
1900 struct msghdr *msg_sys, unsigned flags, 1900 struct msghdr *msg_sys, unsigned int flags,
1901 struct used_address *used_address) 1901 struct used_address *used_address)
1902{ 1902{
1903 struct compat_msghdr __user *msg_compat = 1903 struct compat_msghdr __user *msg_compat =
@@ -2014,7 +2014,7 @@ out:
2014 * BSD sendmsg interface 2014 * BSD sendmsg interface
2015 */ 2015 */
2016 2016
2017SYSCALL_DEFINE3(sendmsg, int, fd, struct msghdr __user *, msg, unsigned, flags) 2017SYSCALL_DEFINE3(sendmsg, int, fd, struct msghdr __user *, msg, unsigned int, flags)
2018{ 2018{
2019 int fput_needed, err; 2019 int fput_needed, err;
2020 struct msghdr msg_sys; 2020 struct msghdr msg_sys;
@@ -2096,7 +2096,7 @@ SYSCALL_DEFINE4(sendmmsg, int, fd, struct mmsghdr __user *, mmsg,
2096} 2096}
2097 2097
2098static int __sys_recvmsg(struct socket *sock, struct msghdr __user *msg, 2098static int __sys_recvmsg(struct socket *sock, struct msghdr __user *msg,
2099 struct msghdr *msg_sys, unsigned flags, int nosec) 2099 struct msghdr *msg_sys, unsigned int flags, int nosec)
2100{ 2100{
2101 struct compat_msghdr __user *msg_compat = 2101 struct compat_msghdr __user *msg_compat =
2102 (struct compat_msghdr __user *)msg; 2102 (struct compat_msghdr __user *)msg;
@@ -3223,7 +3223,7 @@ static int compat_sock_ioctl_trans(struct file *file, struct socket *sock,
3223 return -ENOIOCTLCMD; 3223 return -ENOIOCTLCMD;
3224} 3224}
3225 3225
3226static long compat_sock_ioctl(struct file *file, unsigned cmd, 3226static long compat_sock_ioctl(struct file *file, unsigned int cmd,
3227 unsigned long arg) 3227 unsigned long arg)
3228{ 3228{
3229 struct socket *sock = file->private_data; 3229 struct socket *sock = file->private_data;
diff --git a/net/sunrpc/auth_gss/gss_krb5_mech.c b/net/sunrpc/auth_gss/gss_krb5_mech.c
index 8eff8c32d1b..d3611f11a8d 100644
--- a/net/sunrpc/auth_gss/gss_krb5_mech.c
+++ b/net/sunrpc/auth_gss/gss_krb5_mech.c
@@ -624,7 +624,7 @@ gss_import_v2_context(const void *p, const void *end, struct krb5_ctx *ctx,
624 ctx->seq_send = ctx->seq_send64; 624 ctx->seq_send = ctx->seq_send64;
625 if (ctx->seq_send64 != ctx->seq_send) { 625 if (ctx->seq_send64 != ctx->seq_send) {
626 dprintk("%s: seq_send64 %lx, seq_send %x overflow?\n", __func__, 626 dprintk("%s: seq_send64 %lx, seq_send %x overflow?\n", __func__,
627 (long unsigned)ctx->seq_send64, ctx->seq_send); 627 (unsigned long)ctx->seq_send64, ctx->seq_send);
628 p = ERR_PTR(-EINVAL); 628 p = ERR_PTR(-EINVAL);
629 goto out_err; 629 goto out_err;
630 } 630 }
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c
index de0b0f39d9d..47ad2666fdf 100644
--- a/net/sunrpc/cache.c
+++ b/net/sunrpc/cache.c
@@ -1273,7 +1273,7 @@ static void *c_start(struct seq_file *m, loff_t *pos)
1273 __acquires(cd->hash_lock) 1273 __acquires(cd->hash_lock)
1274{ 1274{
1275 loff_t n = *pos; 1275 loff_t n = *pos;
1276 unsigned hash, entry; 1276 unsigned int hash, entry;
1277 struct cache_head *ch; 1277 struct cache_head *ch;
1278 struct cache_detail *cd = ((struct handle*)m->private)->cd; 1278 struct cache_detail *cd = ((struct handle*)m->private)->cd;
1279 1279
diff --git a/net/sunrpc/timer.c b/net/sunrpc/timer.c
index dd824341c34..08881d0c967 100644
--- a/net/sunrpc/timer.c
+++ b/net/sunrpc/timer.c
@@ -34,7 +34,7 @@
34void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo) 34void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo)
35{ 35{
36 unsigned long init = 0; 36 unsigned long init = 0;
37 unsigned i; 37 unsigned int i;
38 38
39 rt->timeo = timeo; 39 rt->timeo = timeo;
40 40
@@ -57,7 +57,7 @@ EXPORT_SYMBOL_GPL(rpc_init_rtt);
57 * NB: When computing the smoothed RTT and standard deviation, 57 * NB: When computing the smoothed RTT and standard deviation,
58 * be careful not to produce negative intermediate results. 58 * be careful not to produce negative intermediate results.
59 */ 59 */
60void rpc_update_rtt(struct rpc_rtt *rt, unsigned timer, long m) 60void rpc_update_rtt(struct rpc_rtt *rt, unsigned int timer, long m)
61{ 61{
62 long *srtt, *sdrtt; 62 long *srtt, *sdrtt;
63 63
@@ -106,7 +106,7 @@ EXPORT_SYMBOL_GPL(rpc_update_rtt);
106 * read, write, commit - A+4D 106 * read, write, commit - A+4D
107 * other - timeo 107 * other - timeo
108 */ 108 */
109unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned timer) 109unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned int timer)
110{ 110{
111 unsigned long res; 111 unsigned long res;
112 112
diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c
index b97a3dd9a60..fddcccfcdf7 100644
--- a/net/sunrpc/xdr.c
+++ b/net/sunrpc/xdr.c
@@ -1204,7 +1204,7 @@ xdr_process_buf(struct xdr_buf *buf, unsigned int offset, unsigned int len,
1204 int (*actor)(struct scatterlist *, void *), void *data) 1204 int (*actor)(struct scatterlist *, void *), void *data)
1205{ 1205{
1206 int i, ret = 0; 1206 int i, ret = 0;
1207 unsigned page_len, thislen, page_offset; 1207 unsigned int page_len, thislen, page_offset;
1208 struct scatterlist sg[1]; 1208 struct scatterlist sg[1];
1209 1209
1210 sg_init_table(sg, 1); 1210 sg_init_table(sg, 1);
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c
index 0cbcd1ab49a..6fe2dcead15 100644
--- a/net/sunrpc/xprt.c
+++ b/net/sunrpc/xprt.c
@@ -783,7 +783,7 @@ static void xprt_update_rtt(struct rpc_task *task)
783{ 783{
784 struct rpc_rqst *req = task->tk_rqstp; 784 struct rpc_rqst *req = task->tk_rqstp;
785 struct rpc_rtt *rtt = task->tk_client->cl_rtt; 785 struct rpc_rtt *rtt = task->tk_client->cl_rtt;
786 unsigned timer = task->tk_msg.rpc_proc->p_timer; 786 unsigned int timer = task->tk_msg.rpc_proc->p_timer;
787 long m = usecs_to_jiffies(ktime_to_us(req->rq_rtt)); 787 long m = usecs_to_jiffies(ktime_to_us(req->rq_rtt));
788 788
789 if (timer) { 789 if (timer) {
diff --git a/net/tipc/link.c b/net/tipc/link.c
index b4b9b30167a..33cecd6fc37 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -612,7 +612,7 @@ static void link_activate(struct tipc_link *l_ptr)
612 * @event: state machine event to process 612 * @event: state machine event to process
613 */ 613 */
614 614
615static void link_state_event(struct tipc_link *l_ptr, unsigned event) 615static void link_state_event(struct tipc_link *l_ptr, unsigned int event)
616{ 616{
617 struct tipc_link *other; 617 struct tipc_link *other;
618 u32 cont_intv = l_ptr->continuity_interval; 618 u32 cont_intv = l_ptr->continuity_interval;
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index 29e957f6445..bcb3314ef16 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -535,7 +535,7 @@ static int send_msg(struct kiocb *iocb, struct socket *sock,
535 (dest->family != AF_TIPC))) 535 (dest->family != AF_TIPC)))
536 return -EINVAL; 536 return -EINVAL;
537 if ((total_len > TIPC_MAX_USER_MSG_SIZE) || 537 if ((total_len > TIPC_MAX_USER_MSG_SIZE) ||
538 (m->msg_iovlen > (unsigned)INT_MAX)) 538 (m->msg_iovlen > (unsigned int)INT_MAX))
539 return -EMSGSIZE; 539 return -EMSGSIZE;
540 540
541 if (iocb) 541 if (iocb)
@@ -647,7 +647,7 @@ static int send_packet(struct kiocb *iocb, struct socket *sock,
647 return send_msg(iocb, sock, m, total_len); 647 return send_msg(iocb, sock, m, total_len);
648 648
649 if ((total_len > TIPC_MAX_USER_MSG_SIZE) || 649 if ((total_len > TIPC_MAX_USER_MSG_SIZE) ||
650 (m->msg_iovlen > (unsigned)INT_MAX)) 650 (m->msg_iovlen > (unsigned int)INT_MAX))
651 return -EMSGSIZE; 651 return -EMSGSIZE;
652 652
653 if (iocb) 653 if (iocb)
@@ -734,8 +734,8 @@ static int send_stream(struct kiocb *iocb, struct socket *sock,
734 goto exit; 734 goto exit;
735 } 735 }
736 736
737 if ((total_len > (unsigned)INT_MAX) || 737 if ((total_len > (unsigned int)INT_MAX) ||
738 (m->msg_iovlen > (unsigned)INT_MAX)) { 738 (m->msg_iovlen > (unsigned int)INT_MAX)) {
739 res = -EMSGSIZE; 739 res = -EMSGSIZE;
740 goto exit; 740 goto exit;
741 } 741 }
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index eadb9020cd6..641f2e47f16 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -149,9 +149,10 @@ static inline void unix_set_secdata(struct scm_cookie *scm, struct sk_buff *skb)
149 * each socket state is protected by separate spin lock. 149 * each socket state is protected by separate spin lock.
150 */ 150 */
151 151
152static inline unsigned unix_hash_fold(__wsum n) 152static inline unsigned int unix_hash_fold(__wsum n)
153{ 153{
154 unsigned hash = (__force unsigned)n; 154 unsigned int hash = (__force unsigned int)n;
155
155 hash ^= hash>>16; 156 hash ^= hash>>16;
156 hash ^= hash>>8; 157 hash ^= hash>>8;
157 return hash&(UNIX_HASH_SIZE-1); 158 return hash&(UNIX_HASH_SIZE-1);
@@ -200,7 +201,7 @@ static inline void unix_release_addr(struct unix_address *addr)
200 * - if started by zero, it is abstract name. 201 * - if started by zero, it is abstract name.
201 */ 202 */
202 203
203static int unix_mkname(struct sockaddr_un *sunaddr, int len, unsigned *hashp) 204static int unix_mkname(struct sockaddr_un *sunaddr, int len, unsigned int *hashp)
204{ 205{
205 if (len <= sizeof(short) || len > sizeof(*sunaddr)) 206 if (len <= sizeof(short) || len > sizeof(*sunaddr))
206 return -EINVAL; 207 return -EINVAL;
@@ -250,7 +251,7 @@ static inline void unix_insert_socket(struct hlist_head *list, struct sock *sk)
250 251
251static struct sock *__unix_find_socket_byname(struct net *net, 252static struct sock *__unix_find_socket_byname(struct net *net,
252 struct sockaddr_un *sunname, 253 struct sockaddr_un *sunname,
253 int len, int type, unsigned hash) 254 int len, int type, unsigned int hash)
254{ 255{
255 struct sock *s; 256 struct sock *s;
256 struct hlist_node *node; 257 struct hlist_node *node;
@@ -273,7 +274,7 @@ found:
273static inline struct sock *unix_find_socket_byname(struct net *net, 274static inline struct sock *unix_find_socket_byname(struct net *net,
274 struct sockaddr_un *sunname, 275 struct sockaddr_un *sunname,
275 int len, int type, 276 int len, int type,
276 unsigned hash) 277 unsigned int hash)
277{ 278{
278 struct sock *s; 279 struct sock *s;
279 280
@@ -760,7 +761,7 @@ out: mutex_unlock(&u->readlock);
760 761
761static struct sock *unix_find_other(struct net *net, 762static struct sock *unix_find_other(struct net *net,
762 struct sockaddr_un *sunname, int len, 763 struct sockaddr_un *sunname, int len,
763 int type, unsigned hash, int *error) 764 int type, unsigned int hash, int *error)
764{ 765{
765 struct sock *u; 766 struct sock *u;
766 struct path path; 767 struct path path;
@@ -824,7 +825,7 @@ static int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
824 struct dentry *dentry = NULL; 825 struct dentry *dentry = NULL;
825 struct path path; 826 struct path path;
826 int err; 827 int err;
827 unsigned hash; 828 unsigned int hash;
828 struct unix_address *addr; 829 struct unix_address *addr;
829 struct hlist_head *list; 830 struct hlist_head *list;
830 831
@@ -964,7 +965,7 @@ static int unix_dgram_connect(struct socket *sock, struct sockaddr *addr,
964 struct net *net = sock_net(sk); 965 struct net *net = sock_net(sk);
965 struct sockaddr_un *sunaddr = (struct sockaddr_un *)addr; 966 struct sockaddr_un *sunaddr = (struct sockaddr_un *)addr;
966 struct sock *other; 967 struct sock *other;
967 unsigned hash; 968 unsigned int hash;
968 int err; 969 int err;
969 970
970 if (addr->sa_family != AF_UNSPEC) { 971 if (addr->sa_family != AF_UNSPEC) {
@@ -1062,7 +1063,7 @@ static int unix_stream_connect(struct socket *sock, struct sockaddr *uaddr,
1062 struct sock *newsk = NULL; 1063 struct sock *newsk = NULL;
1063 struct sock *other = NULL; 1064 struct sock *other = NULL;
1064 struct sk_buff *skb = NULL; 1065 struct sk_buff *skb = NULL;
1065 unsigned hash; 1066 unsigned int hash;
1066 int st; 1067 int st;
1067 int err; 1068 int err;
1068 long timeo; 1069 long timeo;
@@ -1437,7 +1438,7 @@ static int unix_dgram_sendmsg(struct kiocb *kiocb, struct socket *sock,
1437 struct sock *other = NULL; 1438 struct sock *other = NULL;
1438 int namelen = 0; /* fake GCC */ 1439 int namelen = 0; /* fake GCC */
1439 int err; 1440 int err;
1440 unsigned hash; 1441 unsigned int hash;
1441 struct sk_buff *skb; 1442 struct sk_buff *skb;
1442 long timeo; 1443 long timeo;
1443 struct scm_cookie tmp_scm; 1444 struct scm_cookie tmp_scm;
diff --git a/net/wimax/stack.c b/net/wimax/stack.c
index 3c65eae701c..a6470ac3949 100644
--- a/net/wimax/stack.c
+++ b/net/wimax/stack.c
@@ -187,7 +187,7 @@ out:
187 187
188static 188static
189void __check_new_state(enum wimax_st old_state, enum wimax_st new_state, 189void __check_new_state(enum wimax_st old_state, enum wimax_st new_state,
190 unsigned allowed_states_bm) 190 unsigned int allowed_states_bm)
191{ 191{
192 if (WARN_ON(((1 << new_state) & allowed_states_bm) == 0)) { 192 if (WARN_ON(((1 << new_state) & allowed_states_bm) == 0)) {
193 printk(KERN_ERR "SW BUG! Forbidden state change %u -> %u\n", 193 printk(KERN_ERR "SW BUG! Forbidden state change %u -> %u\n",
@@ -425,7 +425,8 @@ static
425size_t wimax_addr_scnprint(char *addr_str, size_t addr_str_size, 425size_t wimax_addr_scnprint(char *addr_str, size_t addr_str_size,
426 unsigned char *addr, size_t addr_len) 426 unsigned char *addr, size_t addr_len)
427{ 427{
428 unsigned cnt, total; 428 unsigned int cnt, total;
429
429 for (total = cnt = 0; cnt < addr_len; cnt++) 430 for (total = cnt = 0; cnt < addr_len; cnt++)
430 total += scnprintf(addr_str + total, addr_str_size - total, 431 total += scnprintf(addr_str + total, addr_str_size - total,
431 "%02x%c", addr[cnt], 432 "%02x%c", addr[cnt],
diff --git a/net/wireless/wext-core.c b/net/wireless/wext-core.c
index 22adfebaad2..b0eb7aa49b6 100644
--- a/net/wireless/wext-core.c
+++ b/net/wireless/wext-core.c
@@ -256,7 +256,7 @@ static const struct iw_ioctl_description standard_ioctl[] = {
256 .max_tokens = sizeof(struct iw_pmksa), 256 .max_tokens = sizeof(struct iw_pmksa),
257 }, 257 },
258}; 258};
259static const unsigned standard_ioctl_num = ARRAY_SIZE(standard_ioctl); 259static const unsigned int standard_ioctl_num = ARRAY_SIZE(standard_ioctl);
260 260
261/* 261/*
262 * Meta-data about all the additional standard Wireless Extension events 262 * Meta-data about all the additional standard Wireless Extension events
@@ -306,7 +306,7 @@ static const struct iw_ioctl_description standard_event[] = {
306 .max_tokens = sizeof(struct iw_pmkid_cand), 306 .max_tokens = sizeof(struct iw_pmkid_cand),
307 }, 307 },
308}; 308};
309static const unsigned standard_event_num = ARRAY_SIZE(standard_event); 309static const unsigned int standard_event_num = ARRAY_SIZE(standard_event);
310 310
311/* Size (in bytes) of various events */ 311/* Size (in bytes) of various events */
312static const int event_type_size[] = { 312static const int event_type_size[] = {
@@ -429,7 +429,7 @@ void wireless_send_event(struct net_device * dev,
429 int hdr_len; /* Size of the event header */ 429 int hdr_len; /* Size of the event header */
430 int wrqu_off = 0; /* Offset in wrqu */ 430 int wrqu_off = 0; /* Offset in wrqu */
431 /* Don't "optimise" the following variable, it will crash */ 431 /* Don't "optimise" the following variable, it will crash */
432 unsigned cmd_index; /* *MUST* be unsigned */ 432 unsigned int cmd_index; /* *MUST* be unsigned */
433 struct sk_buff *skb; 433 struct sk_buff *skb;
434 struct nlmsghdr *nlh; 434 struct nlmsghdr *nlh;
435 struct nlattr *nla; 435 struct nlattr *nla;
diff --git a/net/x25/x25_facilities.c b/net/x25/x25_facilities.c
index 36384a1fa9f..66c638730c7 100644
--- a/net/x25/x25_facilities.c
+++ b/net/x25/x25_facilities.c
@@ -231,7 +231,7 @@ int x25_create_facilities(unsigned char *buffer,
231 } 231 }
232 232
233 if (dte_facs->calling_len && (facil_mask & X25_MASK_CALLING_AE)) { 233 if (dte_facs->calling_len && (facil_mask & X25_MASK_CALLING_AE)) {
234 unsigned bytecount = (dte_facs->calling_len + 1) >> 1; 234 unsigned int bytecount = (dte_facs->calling_len + 1) >> 1;
235 *p++ = X25_FAC_CALLING_AE; 235 *p++ = X25_FAC_CALLING_AE;
236 *p++ = 1 + bytecount; 236 *p++ = 1 + bytecount;
237 *p++ = dte_facs->calling_len; 237 *p++ = dte_facs->calling_len;
@@ -240,7 +240,7 @@ int x25_create_facilities(unsigned char *buffer,
240 } 240 }
241 241
242 if (dte_facs->called_len && (facil_mask & X25_MASK_CALLED_AE)) { 242 if (dte_facs->called_len && (facil_mask & X25_MASK_CALLED_AE)) {
243 unsigned bytecount = (dte_facs->called_len % 2) ? 243 unsigned int bytecount = (dte_facs->called_len % 2) ?
244 dte_facs->called_len / 2 + 1 : 244 dte_facs->called_len / 2 + 1 :
245 dte_facs->called_len / 2; 245 dte_facs->called_len / 2;
246 *p++ = X25_FAC_CALLED_AE; 246 *p++ = X25_FAC_CALLED_AE;
diff --git a/net/xfrm/xfrm_hash.h b/net/xfrm/xfrm_hash.h
index 7199d78b2aa..716502ada53 100644
--- a/net/xfrm/xfrm_hash.h
+++ b/net/xfrm/xfrm_hash.h
@@ -45,10 +45,10 @@ static inline unsigned int __xfrm_dst_hash(const xfrm_address_t *daddr,
45 return (h ^ (h >> 16)) & hmask; 45 return (h ^ (h >> 16)) & hmask;
46} 46}
47 47
48static inline unsigned __xfrm_src_hash(const xfrm_address_t *daddr, 48static inline unsigned int __xfrm_src_hash(const xfrm_address_t *daddr,
49 const xfrm_address_t *saddr, 49 const xfrm_address_t *saddr,
50 unsigned short family, 50 unsigned short family,
51 unsigned int hmask) 51 unsigned int hmask)
52{ 52{
53 unsigned int h = family; 53 unsigned int h = family;
54 switch (family) { 54 switch (family) {