]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - include/linux/if_macvlan.h
Merge branch 'linus' into sched/core
[mv-sheeva.git] / include / linux / if_macvlan.h
index f9cb9ba1475d8ed48a90e8322e9b17d2777a50f8..b78a712247da071d03b207515936b9b28408fcf8 100644 (file)
@@ -7,6 +7,19 @@
 #include <linux/netlink.h>
 #include <net/netlink.h>
 
+#if defined(CONFIG_MACVTAP) || defined(CONFIG_MACVTAP_MODULE)
+struct socket *macvtap_get_socket(struct file *);
+#else
+#include <linux/err.h>
+#include <linux/errno.h>
+struct file;
+struct socket;
+static inline struct socket *macvtap_get_socket(struct file *f)
+{
+       return ERR_PTR(-EINVAL);
+}
+#endif /* CONFIG_MACVTAP */
+
 struct macvlan_port;
 struct macvtap_queue;