mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[IPV4]: annotate struct in_ifaddr
ifa_local, ifa_address, ifa_mask, ifa_broadcast and ifa_anycast are net-endian. Annotated them and variables that are inferred to be net-endian. Signed-off-by: Al Viro <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
6d85c10abe
commit
a144ea4b7a
14 changed files with 27 additions and 27 deletions
|
|
@ -2252,7 +2252,7 @@ static u32 bond_glean_dev_ip(struct net_device *dev)
|
|||
{
|
||||
struct in_device *idev;
|
||||
struct in_ifaddr *ifa;
|
||||
u32 addr = 0;
|
||||
__be32 addr = 0;
|
||||
|
||||
if (!dev)
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ static int cisco_rx(struct sk_buff *skb)
|
|||
struct hdlc_header *data = (struct hdlc_header*)skb->data;
|
||||
struct cisco_packet *cisco_data;
|
||||
struct in_device *in_dev;
|
||||
u32 addr, mask;
|
||||
__be32 addr, mask;
|
||||
|
||||
if (skb->len < sizeof(struct hdlc_header))
|
||||
goto rx_error;
|
||||
|
|
|
|||
|
|
@ -763,7 +763,7 @@ static void sppp_cisco_input (struct sppp *sp, struct sk_buff *skb)
|
|||
{
|
||||
struct in_device *in_dev;
|
||||
struct in_ifaddr *ifa;
|
||||
u32 addr = 0, mask = ~0; /* FIXME: is the mask correct? */
|
||||
__be32 addr = 0, mask = ~0; /* FIXME: is the mask correct? */
|
||||
#ifdef CONFIG_INET
|
||||
rcu_read_lock();
|
||||
if ((in_dev = __in_dev_get_rcu(dev)) != NULL)
|
||||
|
|
|
|||
|
|
@ -1342,7 +1342,7 @@ static unsigned char *strip_make_packet(unsigned char *buffer,
|
|||
* 'broadcast hub' radio (First byte of address being 0xFF means broadcast)
|
||||
*/
|
||||
if (haddr.c[0] == 0xFF) {
|
||||
u32 brd = 0;
|
||||
__be32 brd = 0;
|
||||
struct in_device *in_dev;
|
||||
|
||||
rcu_read_lock();
|
||||
|
|
@ -1406,7 +1406,7 @@ static void strip_send(struct strip *strip_info, struct sk_buff *skb)
|
|||
int doreset = (long) jiffies - strip_info->watchdog_doreset >= 0;
|
||||
int doprobe = (long) jiffies - strip_info->watchdog_doprobe >= 0
|
||||
&& !doreset;
|
||||
u32 addr, brd;
|
||||
__be32 addr, brd;
|
||||
|
||||
/*
|
||||
* 1. If we have a packet, encapsulate it and put it in the buffer
|
||||
|
|
|
|||
Loading…
Reference in a new issue