aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/genetlink.h3
-rw-r--r--include/linux/net.h3
-rw-r--r--include/linux/netdevice.h8
-rw-r--r--include/linux/skbuff.h2
-rw-r--r--include/net/dst.h1
5 files changed, 11 insertions, 6 deletions
diff --git a/include/linux/genetlink.h b/include/linux/genetlink.h
index 73c28dea10ae..7a114016ac7d 100644
--- a/include/linux/genetlink.h
+++ b/include/linux/genetlink.h
@@ -110,6 +110,9 @@ extern int lockdep_genl_is_held(void);
110#define genl_dereference(p) \ 110#define genl_dereference(p) \
111 rcu_dereference_protected(p, lockdep_genl_is_held()) 111 rcu_dereference_protected(p, lockdep_genl_is_held())
112 112
113#define MODULE_ALIAS_GENL_FAMILY(family)\
114 MODULE_ALIAS_NET_PF_PROTO_NAME(PF_NETLINK, NETLINK_GENERIC, "-family-" family)
115
113#endif /* __KERNEL__ */ 116#endif /* __KERNEL__ */
114 117
115#endif /* __LINUX_GENERIC_NETLINK_H */ 118#endif /* __LINUX_GENERIC_NETLINK_H */
diff --git a/include/linux/net.h b/include/linux/net.h
index 2d7510f38934..e9ac2df079ba 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -313,5 +313,8 @@ extern int kernel_sock_shutdown(struct socket *sock,
313 MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto) \ 313 MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto) \
314 "-type-" __stringify(type)) 314 "-type-" __stringify(type))
315 315
316#define MODULE_ALIAS_NET_PF_PROTO_NAME(pf, proto, name) \
317 MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto) \
318 name)
316#endif /* __KERNEL__ */ 319#endif /* __KERNEL__ */
317#endif /* _LINUX_NET_H */ 320#endif /* _LINUX_NET_H */
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index e7fd468f7126..d94cb1431519 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2795,15 +2795,15 @@ do { \
2795#define netif_info(priv, type, dev, fmt, args...) \ 2795#define netif_info(priv, type, dev, fmt, args...) \
2796 netif_level(info, priv, type, dev, fmt, ##args) 2796 netif_level(info, priv, type, dev, fmt, ##args)
2797 2797
2798#if defined(DEBUG) 2798#if defined(CONFIG_DYNAMIC_DEBUG)
2799#define netif_dbg(priv, type, dev, format, args...) \
2800 netif_printk(priv, type, KERN_DEBUG, dev, format, ##args)
2801#elif defined(CONFIG_DYNAMIC_DEBUG)
2802#define netif_dbg(priv, type, netdev, format, args...) \ 2799#define netif_dbg(priv, type, netdev, format, args...) \
2803do { \ 2800do { \
2804 if (netif_msg_##type(priv)) \ 2801 if (netif_msg_##type(priv)) \
2805 dynamic_netdev_dbg(netdev, format, ##args); \ 2802 dynamic_netdev_dbg(netdev, format, ##args); \
2806} while (0) 2803} while (0)
2804#elif defined(DEBUG)
2805#define netif_dbg(priv, type, dev, format, args...) \
2806 netif_printk(priv, type, KERN_DEBUG, dev, format, ##args)
2807#else 2807#else
2808#define netif_dbg(priv, type, dev, format, args...) \ 2808#define netif_dbg(priv, type, dev, format, args...) \
2809({ \ 2809({ \
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 0e501714d47f..b534a1be540a 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1896,8 +1896,6 @@ static inline int __skb_cow(struct sk_buff *skb, unsigned int headroom,
1896{ 1896{
1897 int delta = 0; 1897 int delta = 0;
1898 1898
1899 if (headroom < NET_SKB_PAD)
1900 headroom = NET_SKB_PAD;
1901 if (headroom > skb_headroom(skb)) 1899 if (headroom > skb_headroom(skb))
1902 delta = headroom - skb_headroom(skb); 1900 delta = headroom - skb_headroom(skb);
1903 1901
diff --git a/include/net/dst.h b/include/net/dst.h
index bed833d9796a..8197eadca819 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -60,6 +60,7 @@ struct dst_entry {
60#define DST_NOCOUNT 0x0020 60#define DST_NOCOUNT 0x0020
61#define DST_NOPEER 0x0040 61#define DST_NOPEER 0x0040
62#define DST_FAKE_RTABLE 0x0080 62#define DST_FAKE_RTABLE 0x0080
63#define DST_XFRM_TUNNEL 0x0100
63 64
64 short error; 65 short error;
65 short obsolete; 66 short obsolete;