diff options
author | David S. Miller <davem@davemloft.net> | 2021-12-13 13:34:10 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-13 13:34:10 +0100 |
commit | d147dd70902ea5cbfd4dfbd65e60733b3805f4c2 (patch) | |
tree | b5b0567ac33d3ded36195ed66297e3e46d418f94 /include | |
parent | tipc: discard MSG_CRYPTO msgs when key_exchange_enabled is not set (diff) | |
parent | bareudp: Move definition of struct bareudp_conf to bareudp.c (diff) | |
download | linux-d147dd70902ea5cbfd4dfbd65e60733b3805f4c2.tar.xz linux-d147dd70902ea5cbfd4dfbd65e60733b3805f4c2.zip |
Merge branch 'bareudp-remove-unused'
Guillaume Nault says:
====================
bareudp: Remove unused code from header file
Stop exporting unused functions and structures in bareudp.h. The only
piece of bareudp.h that is actually used is netif_is_bareudp(). The
rest can be moved to bareudp.c or even dropped entirely.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bareudp.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/include/net/bareudp.h b/include/net/bareudp.h index dc65a0d71d9b..17610c8d6361 100644 --- a/include/net/bareudp.h +++ b/include/net/bareudp.h @@ -3,21 +3,10 @@ #ifndef __NET_BAREUDP_H #define __NET_BAREUDP_H +#include <linux/netdevice.h> #include <linux/types.h> -#include <linux/skbuff.h> #include <net/rtnetlink.h> -struct bareudp_conf { - __be16 ethertype; - __be16 port; - u16 sport_min; - bool multi_proto_mode; -}; - -struct net_device *bareudp_dev_create(struct net *net, const char *name, - u8 name_assign_type, - struct bareudp_conf *info); - static inline bool netif_is_bareudp(const struct net_device *dev) { return dev->rtnl_link_ops && |