diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-04-15 01:58:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-15 12:44:40 -0400 |
commit | 95c961747284a6b83a5e2d81240e214b0fa3464d (patch) | |
tree | c7be86a00db3605a48a03109fafcbe31039ca2e0 /include | |
parent | 5e73ea1a31c3612aa6dfe44f864ca5b7b6a4cff9 (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>
Diffstat (limited to 'include')
30 files changed, 71 insertions, 71 deletions
diff --git a/include/linux/ip_vs.h b/include/linux/ip_vs.h index 4deb3834d62c..be0ef3df4acb 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 { | |||
202 | struct ip_vs_dest_entry { | 202 | struct 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 5cbaa20f1659..d3122321d8b1 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -288,7 +288,7 @@ struct hh_cache { | |||
288 | struct header_ops { | 288 | struct 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) | |||
1689 | static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev, | 1689 | static 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 | ||
1927 | static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue, | 1927 | static 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 | ||
1951 | static inline void netdev_completed_queue(struct net_device *dev, | 1951 | static 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); | |||
2144 | extern bool dev_valid_name(const char *name); | 2144 | extern bool dev_valid_name(const char *name); |
2145 | extern int dev_ioctl(struct net *net, unsigned int cmd, void __user *); | 2145 | extern int dev_ioctl(struct net *net, unsigned int cmd, void __user *); |
2146 | extern int dev_ethtool(struct net *net, struct ifreq *); | 2146 | extern int dev_ethtool(struct net *net, struct ifreq *); |
2147 | extern unsigned dev_get_flags(const struct net_device *); | 2147 | extern unsigned int dev_get_flags(const struct net_device *); |
2148 | extern int __dev_change_flags(struct net_device *, unsigned int flags); | 2148 | extern int __dev_change_flags(struct net_device *, unsigned int flags); |
2149 | extern int dev_change_flags(struct net_device *, unsigned); | 2149 | extern int dev_change_flags(struct net_device *, unsigned int); |
2150 | extern void __dev_notify_flags(struct net_device *, unsigned int old_flags); | 2150 | extern void __dev_notify_flags(struct net_device *, unsigned int old_flags); |
2151 | extern int dev_change_name(struct net_device *, const char *); | 2151 | extern int dev_change_name(struct net_device *, const char *); |
2152 | extern int dev_set_alias(struct net_device *, const char *, size_t); | 2152 | extern 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 d6d549cf1f23..2edc64cab739 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 */ |
480 | struct ip_set_req_get_set { | 480 | struct 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 */ |
490 | struct ip_set_req_version { | 490 | struct 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 f35b6b4801e7..b0821f45fbe4 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 | ||
8 | typedef struct TransportAddress_ipAddress { /* SEQUENCE */ | 8 | typedef 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 | ||
13 | typedef struct TransportAddress_ip6Address { /* SEQUENCE */ | 13 | typedef 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 | ||
18 | typedef struct TransportAddress { /* CHOICE */ | 18 | typedef struct TransportAddress { /* CHOICE */ |
@@ -96,12 +96,12 @@ typedef struct DataType { /* CHOICE */ | |||
96 | 96 | ||
97 | typedef struct UnicastAddress_iPAddress { /* SEQUENCE */ | 97 | typedef 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 | ||
102 | typedef struct UnicastAddress_iP6Address { /* SEQUENCE */ | 102 | typedef 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 | ||
107 | typedef struct UnicastAddress { /* CHOICE */ | 107 | typedef 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 | ||
704 | typedef struct RegistrationConfirm_callSignalAddress { /* SEQUENCE OF */ | 704 | typedef 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 | ||
736 | typedef struct UnregistrationRequest_callSignalAddress { /* SEQUENCE OF */ | 736 | typedef struct UnregistrationRequest_callSignalAddress { /* SEQUENCE OF */ |
diff --git a/include/linux/netfilter/nfnetlink.h b/include/linux/netfilter/nfnetlink.h index 6fd1f0d07e64..a1048c1587d1 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); | |||
80 | extern int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n); | 80 | extern int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n); |
81 | 81 | ||
82 | extern int nfnetlink_has_listeners(struct net *net, unsigned int group); | 82 | extern int nfnetlink_has_listeners(struct net *net, unsigned int group); |
83 | extern int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, unsigned group, | 83 | extern 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); |
85 | extern int nfnetlink_set_err(struct net *net, u32 pid, u32 group, int error); | 85 | extern int nfnetlink_set_err(struct net *net, u32 pid, u32 group, int error); |
86 | extern int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u_int32_t pid, int flags); | 86 | extern 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 b84bbd48b874..25d6322fb635 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 */ |
75 | struct mmsghdr { | 75 | struct 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 757a17638b1b..27f450ba9514 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 | ||
94 | static inline unsigned long addrconf_timeout_fixup(u32 timeout, | 94 | static 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 ca68e2cef230..2ee33da36a7a 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]; | |||
22 | struct unix_address { | 22 | struct 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 a974ae92d182..6e9565324989 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 | ||
43 | extern int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *); | 43 | extern int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *); |
44 | extern int verify_compat_iovec(struct msghdr *, struct iovec *, struct sockaddr_storage *, int); | 44 | extern int verify_compat_iovec(struct msghdr *, struct iovec *, struct sockaddr_storage *, int); |
45 | extern asmlinkage long compat_sys_sendmsg(int,struct compat_msghdr __user *,unsigned); | 45 | extern asmlinkage long compat_sys_sendmsg(int,struct compat_msghdr __user *,unsigned int); |
46 | extern asmlinkage long compat_sys_sendmmsg(int, struct compat_mmsghdr __user *, | 46 | extern asmlinkage long compat_sys_sendmmsg(int, struct compat_mmsghdr __user *, |
47 | unsigned, unsigned); | 47 | unsigned int, unsigned int); |
48 | extern asmlinkage long compat_sys_recvmsg(int,struct compat_msghdr __user *,unsigned); | 48 | extern asmlinkage long compat_sys_recvmsg(int,struct compat_msghdr __user *,unsigned int); |
49 | extern asmlinkage long compat_sys_recvmmsg(int, struct compat_mmsghdr __user *, | 49 | extern 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 *); |
52 | extern asmlinkage long compat_sys_getsockopt(int, int, int, char __user *, int __user *); | 52 | extern asmlinkage long compat_sys_getsockopt(int, int, int, char __user *, int __user *); |
53 | extern int put_cmsg_compat(struct msghdr*, int, int, int, void *); | 53 | extern int put_cmsg_compat(struct msghdr*, int, int, int, void *); |
diff --git a/include/net/dn.h b/include/net/dn.h index 814af0b9387d..c88bf4ebd330 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 | ||
202 | extern unsigned dn_mss_from_pmtu(struct net_device *dev, int mtu); | 202 | extern 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 782ef7cb4930..1ee9d4bda30d 100644 --- a/include/net/dn_fib.h +++ b/include/net/dn_fib.h | |||
@@ -31,7 +31,7 @@ struct dn_fib_res { | |||
31 | 31 | ||
32 | struct dn_fib_nh { | 32 | struct 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 | */ |
141 | extern void dn_fib_rules_init(void); | 141 | extern void dn_fib_rules_init(void); |
142 | extern void dn_fib_rules_cleanup(void); | 142 | extern void dn_fib_rules_cleanup(void); |
143 | extern unsigned dnet_addr_type(__le16 addr); | 143 | extern unsigned int dnet_addr_type(__le16 addr); |
144 | extern int dn_fib_lookup(struct flowidn *fld, struct dn_fib_res *res); | 144 | extern int dn_fib_lookup(struct flowidn *fld, struct dn_fib_res *res); |
145 | 145 | ||
146 | extern int dn_fib_dump(struct sk_buff *skb, struct netlink_callback *cb); | 146 | extern 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 81712cfa1ddf..c507e05d172f 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 | ||
83 | static inline bool dn_is_input_route(struct dn_route *rt) | 83 | static 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 e1c2ee0eef47..3682a0a076c1 100644 --- a/include/net/dst_ops.h +++ b/include/net/dst_ops.h | |||
@@ -12,7 +12,7 @@ struct sk_buff; | |||
12 | struct dst_ops { | 12 | struct 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 ce70a581d95c..9ac2524d1402 100644 --- a/include/net/icmp.h +++ b/include/net/icmp.h | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | struct icmp_err { | 26 | struct icmp_err { |
27 | int errno; | 27 | int errno; |
28 | unsigned fatal:1; | 28 | unsigned int fatal:1; |
29 | }; | 29 | }; |
30 | 30 | ||
31 | extern const struct icmp_err icmp_err_convert[]; | 31 | extern const struct icmp_err icmp_err_convert[]; |
diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h index 51a7031b4aa3..50f325fd0691 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 2ad92ca4e6f3..c062b6773cc7 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h | |||
@@ -146,7 +146,7 @@ struct rt6_rtnl_dump_arg { | |||
146 | 146 | ||
147 | extern int rt6_dump_route(struct rt6_info *rt, void *p_arg); | 147 | extern int rt6_dump_route(struct rt6_info *rt, void *p_arg); |
148 | extern void rt6_ifdown(struct net *net, struct net_device *dev); | 148 | extern void rt6_ifdown(struct net *net, struct net_device *dev); |
149 | extern void rt6_mtu_change(struct net_device *dev, unsigned mtu); | 149 | extern void rt6_mtu_change(struct net_device *dev, unsigned int mtu); |
150 | extern void rt6_remove_prefsrc(struct inet6_ifaddr *ifp); | 150 | extern 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 10422ef14e28..78df0866cc38 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 2bdee51ba30d..a903a828bcef 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 | */ |
956 | extern const char *ip_vs_proto_name(unsigned proto); | 956 | extern const char *ip_vs_proto_name(unsigned int proto); |
957 | extern void ip_vs_init_hash_table(struct list_head *table, int rows); | 957 | extern 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 | ||
1015 | struct ip_vs_conn *ip_vs_conn_new(const struct ip_vs_conn_param *p, | 1015 | struct 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); |
1019 | extern void ip_vs_conn_expire_now(struct ip_vs_conn *cp); | 1019 | extern 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 e4170a22fc6f..2d3fca37c6a6 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, | |||
345 | static inline int __ipv6_prefix_equal(const __be32 *a1, const __be32 *a2, | 345 | static 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 23a409381fa9..6ca3113df39e 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, | |||
264 | static __inline__ int llc_conn_space(struct sock *sk, struct sk_buff *skb) | 264 | static __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 63ebd70ba693..6cdfeedb650b 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 |
323 | static inline int neigh_hh_bridge(struct hh_cache *hh, struct sk_buff *skb) | 323 | static 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 | ||
336 | static inline int neigh_hh_output(struct hh_cache *hh, struct sk_buff *skb) | 336 | static 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 548d78f2cc47..c06ac58ca107 100644 --- a/include/net/netns/hash.h +++ b/include/net/netns/hash.h | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | struct net; | 6 | struct net; |
7 | 7 | ||
8 | static inline unsigned net_hash_mix(struct net *net) | 8 | static 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 bac070bf3514..79955a238ccc 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 | ||
88 | struct nfc_dev { | 88 | struct 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 fffdc603f4c8..66f5ac370f92 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 | */ |
110 | static inline unsigned psched_mtu(const struct net_device *dev) | 110 | static 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 b1c0d5b564c2..ed2b78e2375d 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); |
186 | extern void ip_rt_send_redirect(struct sk_buff *skb); | 186 | extern void ip_rt_send_redirect(struct sk_buff *skb); |
187 | 187 | ||
188 | extern unsigned inet_addr_type(struct net *net, __be32 addr); | 188 | extern unsigned int inet_addr_type(struct net *net, __be32 addr); |
189 | extern unsigned inet_dev_addr_type(struct net *net, const struct net_device *dev, __be32 addr); | 189 | extern unsigned int inet_dev_addr_type(struct net *net, const struct net_device *dev, __be32 addr); |
190 | extern void ip_rt_multicast_event(struct in_device *); | 190 | extern void ip_rt_multicast_event(struct in_device *); |
191 | extern int ip_rt_ioctl(struct net *, unsigned int cmd, void __user *arg); | 191 | extern int ip_rt_ioctl(struct net *, unsigned int cmd, void __user *arg); |
192 | extern void ip_rt_get_source(u8 *src, struct sk_buff *skb, struct rtable *rt); | 192 | extern 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 88949a994538..e4652fe58958 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 | ||
2002 | void sctp_assoc_sync_pmtu(struct sctp_association *); | 2002 | void sctp_assoc_sync_pmtu(struct sctp_association *); |
2003 | void sctp_assoc_rwnd_increase(struct sctp_association *, unsigned); | 2003 | void sctp_assoc_rwnd_increase(struct sctp_association *, unsigned int); |
2004 | void sctp_assoc_rwnd_decrease(struct sctp_association *, unsigned); | 2004 | void sctp_assoc_rwnd_decrease(struct sctp_association *, unsigned int); |
2005 | void sctp_assoc_set_primary(struct sctp_association *, | 2005 | void sctp_assoc_set_primary(struct sctp_association *, |
2006 | struct sctp_transport *); | 2006 | struct sctp_transport *); |
2007 | void sctp_assoc_del_nonprimary_peers(struct sctp_association *, | 2007 | void sctp_assoc_del_nonprimary_peers(struct sctp_association *, |
diff --git a/include/net/tcp.h b/include/net/tcp.h index 057f0168462e..025c31aa65df 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1226,7 +1226,7 @@ extern void tcp_put_md5sig_pool(void); | |||
1226 | 1226 | ||
1227 | extern int tcp_md5_hash_header(struct tcp_md5sig_pool *, const struct tcphdr *); | 1227 | extern int tcp_md5_hash_header(struct tcp_md5sig_pool *, const struct tcphdr *); |
1228 | extern int tcp_md5_hash_skb_data(struct tcp_md5sig_pool *, const struct sk_buff *, | 1228 | extern int tcp_md5_hash_skb_data(struct tcp_md5sig_pool *, const struct sk_buff *, |
1229 | unsigned header_len); | 1229 | unsigned int header_len); |
1230 | extern int tcp_md5_hash_key(struct tcp_md5sig_pool *hp, | 1230 | extern 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 9671f5f1df9c..e66fc297b105 100644 --- a/include/net/udp.h +++ b/include/net/udp.h | |||
@@ -81,7 +81,7 @@ struct udp_table { | |||
81 | extern struct udp_table udp_table; | 81 | extern struct udp_table udp_table; |
82 | extern void udp_table_init(struct udp_table *, const char *); | 82 | extern void udp_table_init(struct udp_table *, const char *); |
83 | static inline struct udp_hslot *udp_hashslot(struct udp_table *table, | 83 | static 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 322ff4fbdb4a..bbb74f990cab 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 a06119a05129..b4a8a8923128 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 | ||
307 | struct x25_skb_cb { | 307 | struct 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 | ||