diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-07-22 17:29:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-23 16:20:25 +0300 |
commit | b0e99d03778b2418aec20db99d97d19d25d198b6 (patch) | |
tree | 219bb942c3d5d9a0a74dca786cd37a09098b3be4 /include/linux/inetdevice.h | |
parent | 709566d79209af9255c7c201d9ffdd9039fa35ab (diff) | |
download | linux-b0e99d03778b2418aec20db99d97d19d25d198b6.tar.xz |
net: socket: remove register_gifconf
Since dynamic registration of the gifconf() helper is only used for
IPv4, and this can not be in a loadable module, this can be simplified
noticeably by turning it into a direct function call as a preparation
for cleaning up the compat handling.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/inetdevice.h')
-rw-r--r-- | include/linux/inetdevice.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h index 53aa0343bf69..67e042932681 100644 --- a/include/linux/inetdevice.h +++ b/include/linux/inetdevice.h @@ -178,6 +178,15 @@ static inline struct net_device *ip_dev_find(struct net *net, __be32 addr) int inet_addr_onlink(struct in_device *in_dev, __be32 a, __be32 b); int devinet_ioctl(struct net *net, unsigned int cmd, struct ifreq *); +#ifdef CONFIG_INET +int inet_gifconf(struct net_device *dev, char __user *buf, int len, int size); +#else +static inline int inet_gifconf(struct net_device *dev, char __user *buf, + int len, int size) +{ + return 0; +} +#endif void devinet_init(void); struct in_device *inetdev_by_index(struct net *, int); __be32 inet_select_addr(const struct net_device *dev, __be32 dst, int scope); |