Loading net/ipv4/fib_frontend.c +0 −11 Original line number Original line Diff line number Diff line Loading @@ -250,8 +250,6 @@ int fib_validate_source(__be32 src, __be32 dst, u8 tos, int oif, return -EINVAL; return -EINVAL; } } #ifndef CONFIG_IP_NOSIOCRT static inline __be32 sk_extract_addr(struct sockaddr *addr) static inline __be32 sk_extract_addr(struct sockaddr *addr) { { return ((struct sockaddr_in *) addr)->sin_addr.s_addr; return ((struct sockaddr_in *) addr)->sin_addr.s_addr; Loading Loading @@ -443,15 +441,6 @@ int ip_rt_ioctl(unsigned int cmd, void __user *arg) return -EINVAL; return -EINVAL; } } #else int ip_rt_ioctl(unsigned int cmd, void *arg) { return -EINVAL; } #endif struct nla_policy rtm_ipv4_policy[RTA_MAX+1] __read_mostly = { struct nla_policy rtm_ipv4_policy[RTA_MAX+1] __read_mostly = { [RTA_DST] = { .type = NLA_U32 }, [RTA_DST] = { .type = NLA_U32 }, [RTA_SRC] = { .type = NLA_U32 }, [RTA_SRC] = { .type = NLA_U32 }, Loading Loading
net/ipv4/fib_frontend.c +0 −11 Original line number Original line Diff line number Diff line Loading @@ -250,8 +250,6 @@ int fib_validate_source(__be32 src, __be32 dst, u8 tos, int oif, return -EINVAL; return -EINVAL; } } #ifndef CONFIG_IP_NOSIOCRT static inline __be32 sk_extract_addr(struct sockaddr *addr) static inline __be32 sk_extract_addr(struct sockaddr *addr) { { return ((struct sockaddr_in *) addr)->sin_addr.s_addr; return ((struct sockaddr_in *) addr)->sin_addr.s_addr; Loading Loading @@ -443,15 +441,6 @@ int ip_rt_ioctl(unsigned int cmd, void __user *arg) return -EINVAL; return -EINVAL; } } #else int ip_rt_ioctl(unsigned int cmd, void *arg) { return -EINVAL; } #endif struct nla_policy rtm_ipv4_policy[RTA_MAX+1] __read_mostly = { struct nla_policy rtm_ipv4_policy[RTA_MAX+1] __read_mostly = { [RTA_DST] = { .type = NLA_U32 }, [RTA_DST] = { .type = NLA_U32 }, [RTA_SRC] = { .type = NLA_U32 }, [RTA_SRC] = { .type = NLA_U32 }, Loading