mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[IPV4]: annotate inetdev.h helpers
inet_confirm_addr(), inet_ifa_byprefix(), ip_dev_find(), inet_make_mask() and inet_ifa_match() annotated, along with inferred net-endian variables Signed-off-by: Al Viro <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
a7a628c442
commit
60cad5da57
4 changed files with 14 additions and 14 deletions
|
|
@ -86,7 +86,7 @@ EXPORT_SYMBOL(rdma_copy_addr);
|
|||
int rdma_translate_ip(struct sockaddr *addr, struct rdma_dev_addr *dev_addr)
|
||||
{
|
||||
struct net_device *dev;
|
||||
u32 ip = ((struct sockaddr_in *) addr)->sin_addr.s_addr;
|
||||
__be32 ip = ((struct sockaddr_in *) addr)->sin_addr.s_addr;
|
||||
int ret;
|
||||
|
||||
dev = ip_dev_find(ip);
|
||||
|
|
@ -239,7 +239,7 @@ static int addr_resolve_local(struct sockaddr_in *src_in,
|
|||
{
|
||||
struct net_device *dev;
|
||||
u32 src_ip = src_in->sin_addr.s_addr;
|
||||
u32 dst_ip = dst_in->sin_addr.s_addr;
|
||||
__be32 dst_ip = dst_in->sin_addr.s_addr;
|
||||
int ret;
|
||||
|
||||
dev = ip_dev_find(dst_ip);
|
||||
|
|
|
|||
Loading…
Reference in a new issue