···203203 .gc_thresh3 = 1024,204204};205205206206-int arp_mc_map(u32 addr, u8 *haddr, struct net_device *dev, int dir)206206+int arp_mc_map(__be32 addr, u8 *haddr, struct net_device *dev, int dir)207207{208208 switch (dev->type) {209209 case ARPHRD_ETHER:
+4-4
net/ipv4/cipso_ipv4.c
···966966967967 buf[0] = IPOPT_CIPSO;968968 buf[1] = CIPSO_V4_HDR_LEN + len;969969- *(u32 *)&buf[2] = htonl(doi_def->doi);969969+ *(__be32 *)&buf[2] = htonl(doi_def->doi);970970971971 return 0;972972}···11401140 }1141114111421142 rcu_read_lock();11431143- doi_def = cipso_v4_doi_getdef(ntohl(*((u32 *)&opt[2])));11431143+ doi_def = cipso_v4_doi_getdef(ntohl(*((__be32 *)&opt[2])));11441144 if (doi_def == NULL) {11451145 err_offset = 2;11461146 goto validate_return_locked;···13701370 if (ret_val == 0)13711371 return ret_val;1372137213731373- doi = ntohl(*(u32 *)&cipso_ptr[2]);13731373+ doi = ntohl(*(__be32 *)&cipso_ptr[2]);13741374 rcu_read_lock();13751375 doi_def = cipso_v4_doi_getdef(doi);13761376 if (doi_def == NULL) {···14361436 if (cipso_v4_cache_check(cipso_ptr, cipso_ptr[1], secattr) == 0)14371437 return 0;1438143814391439- doi = ntohl(*(u32 *)&cipso_ptr[2]);14391439+ doi = ntohl(*(__be32 *)&cipso_ptr[2]);14401440 rcu_read_lock();14411441 doi_def = cipso_v4_doi_getdef(doi);14421442 if (doi_def == NULL)
+5-5
net/ipv4/devinet.c
···577577 * Determine a default network mask, based on the IP address.578578 */579579580580-static __inline__ int inet_abc_len(u32 addr)580580+static __inline__ int inet_abc_len(__be32 addr)581581{582582 int rc = -1; /* Something else, probably a multicast. */583583584584 if (ZERONET(addr))585585 rc = 0;586586 else {587587- addr = ntohl(addr);587587+ __u32 haddr = ntohl(addr);588588589589- if (IN_CLASSA(addr))589589+ if (IN_CLASSA(haddr))590590 rc = 8;591591- else if (IN_CLASSB(addr))591591+ else if (IN_CLASSB(haddr))592592 rc = 16;593593- else if (IN_CLASSC(addr))593593+ else if (IN_CLASSC(haddr))594594 rc = 24;595595 }596596