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/linux/netdevice.h | |
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/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 14 |
1 files changed, 7 insertions, 7 deletions
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); |