mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
net: cleanup unsigned to unsigned int
Use of "unsigned int" is preferred to bare "unsigned" in net tree. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
5e73ea1a31
commit
95c9617472
167 changed files with 461 additions and 455 deletions
|
|
@ -34,7 +34,7 @@ static inline int should_deliver(const struct net_bridge_port *p,
|
|||
p->state == BR_STATE_FORWARDING);
|
||||
}
|
||||
|
||||
static inline unsigned packet_length(const struct sk_buff *skb)
|
||||
static inline unsigned int packet_length(const struct sk_buff *skb)
|
||||
{
|
||||
return skb->len - (skb->protocol == htons(ETH_P_8021Q) ? VLAN_HLEN : 0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -512,8 +512,8 @@ static struct net_bridge_mdb_entry *br_multicast_get_group(
|
|||
struct net_bridge_mdb_htable *mdb;
|
||||
struct net_bridge_mdb_entry *mp;
|
||||
struct hlist_node *p;
|
||||
unsigned count = 0;
|
||||
unsigned max;
|
||||
unsigned int count = 0;
|
||||
unsigned int max;
|
||||
int elasticity;
|
||||
int err;
|
||||
|
||||
|
|
@ -1281,8 +1281,8 @@ static int br_multicast_ipv4_rcv(struct net_bridge *br,
|
|||
struct sk_buff *skb2 = skb;
|
||||
const struct iphdr *iph;
|
||||
struct igmphdr *ih;
|
||||
unsigned len;
|
||||
unsigned offset;
|
||||
unsigned int len;
|
||||
unsigned int offset;
|
||||
int err;
|
||||
|
||||
/* We treat OOM as packet loss for now. */
|
||||
|
|
@ -1382,7 +1382,7 @@ static int br_multicast_ipv6_rcv(struct net_bridge *br,
|
|||
u8 icmp6_type;
|
||||
u8 nexthdr;
|
||||
__be16 frag_off;
|
||||
unsigned len;
|
||||
unsigned int len;
|
||||
int offset;
|
||||
int err;
|
||||
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ void br_ifinfo_notify(int event, struct net_bridge_port *port)
|
|||
int err = -ENOBUFS;
|
||||
|
||||
br_debug(port->br, "port %u(%s) event %d\n",
|
||||
(unsigned)port->port_no, port->dev->name, event);
|
||||
(unsigned int)port->port_no, port->dev->name, event);
|
||||
|
||||
skb = nlmsg_new(br_nlmsg_size(), GFP_ATOMIC);
|
||||
if (skb == NULL)
|
||||
|
|
|
|||
|
|
@ -29,10 +29,9 @@
|
|||
#define BR_MIN_PATH_COST 1
|
||||
#define BR_MAX_PATH_COST 65535
|
||||
|
||||
struct br_config_bpdu
|
||||
{
|
||||
unsigned topology_change:1;
|
||||
unsigned topology_change_ack:1;
|
||||
struct br_config_bpdu {
|
||||
unsigned int topology_change:1;
|
||||
unsigned int topology_change_ack:1;
|
||||
bridge_id root;
|
||||
int root_path_cost;
|
||||
bridge_id bridge_id;
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ static const char *const br_port_state_names[] = {
|
|||
void br_log_state(const struct net_bridge_port *p)
|
||||
{
|
||||
br_info(p->br, "port %u(%s) entered %s state\n",
|
||||
(unsigned) p->port_no, p->dev->name,
|
||||
(unsigned int) p->port_no, p->dev->name,
|
||||
br_port_state_names[p->state]);
|
||||
}
|
||||
|
||||
|
|
@ -478,7 +478,7 @@ void br_received_tcn_bpdu(struct net_bridge_port *p)
|
|||
{
|
||||
if (br_is_designated_port(p)) {
|
||||
br_info(p->br, "port %u(%s) received tcn bpdu\n",
|
||||
(unsigned) p->port_no, p->dev->name);
|
||||
(unsigned int) p->port_no, p->dev->name);
|
||||
|
||||
br_topology_change_detection(p->br);
|
||||
br_topology_change_acknowledge(p);
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ static void br_message_age_timer_expired(unsigned long arg)
|
|||
return;
|
||||
|
||||
br_info(br, "port %u(%s) neighbor %.2x%.2x.%pM lost\n",
|
||||
(unsigned) p->port_no, p->dev->name,
|
||||
(unsigned int) p->port_no, p->dev->name,
|
||||
id->prio[0], id->prio[1], &id->addr);
|
||||
|
||||
/*
|
||||
|
|
@ -84,7 +84,7 @@ static void br_forward_delay_timer_expired(unsigned long arg)
|
|||
struct net_bridge *br = p->br;
|
||||
|
||||
br_debug(br, "port %u(%s) forward delay timer\n",
|
||||
(unsigned) p->port_no, p->dev->name);
|
||||
(unsigned int) p->port_no, p->dev->name);
|
||||
spin_lock(&br->lock);
|
||||
if (p->state == BR_STATE_LISTENING) {
|
||||
p->state = BR_STATE_LEARNING;
|
||||
|
|
@ -131,7 +131,7 @@ static void br_hold_timer_expired(unsigned long arg)
|
|||
struct net_bridge_port *p = (struct net_bridge_port *) arg;
|
||||
|
||||
br_debug(p->br, "port %u(%s) hold timer expired\n",
|
||||
(unsigned) p->port_no, p->dev->name);
|
||||
(unsigned int) p->port_no, p->dev->name);
|
||||
|
||||
spin_lock(&p->br->lock);
|
||||
if (p->config_pending)
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ static ssize_t store_group_addr(struct device *d,
|
|||
const char *buf, size_t len)
|
||||
{
|
||||
struct net_bridge *br = to_bridge(d);
|
||||
unsigned new_addr[6];
|
||||
unsigned int new_addr[6];
|
||||
int i;
|
||||
|
||||
if (!capable(CAP_NET_ADMIN))
|
||||
|
|
|
|||
Loading…
Reference in a new issue