Merge tag 'edac_for_4.2_2' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp
[firefly-linux-kernel-4.4.55.git] / net / batman-adv / main.h
index af0a3361d4b2dd6139d1b3b3daed637cbde1a8b0..41d27c7872b9544f9f37928cdc493bfbdcec23a3 100644 (file)
@@ -163,28 +163,26 @@ enum batadv_uev_type {
 
 /* Kernel headers */
 
-#include <linux/mutex.h>       /* mutex */
-#include <linux/module.h>      /* needed by all modules */
-#include <linux/netdevice.h>   /* netdevice */
-#include <linux/etherdevice.h>  /* ethernet address classification */
-#include <linux/if_ether.h>    /* ethernet header */
-#include <linux/poll.h>                /* poll_table */
-#include <linux/kthread.h>     /* kernel threads */
-#include <linux/pkt_sched.h>   /* schedule types */
-#include <linux/workqueue.h>   /* workqueue */
+#include <linux/atomic.h>
+#include <linux/bitops.h> /* for packet.h */
+#include <linux/compiler.h>
+#include <linux/cpumask.h>
+#include <linux/etherdevice.h>
+#include <linux/if_ether.h> /* for packet.h */
+#include <linux/netdevice.h>
+#include <linux/printk.h>
+#include <linux/types.h>
 #include <linux/percpu.h>
-#include <linux/slab.h>
-#include <net/sock.h>          /* struct sock */
-#include <net/addrconf.h>      /* ipv6 address stuff */
-#include <linux/ip.h>
-#include <net/rtnetlink.h>
 #include <linux/jiffies.h>
-#include <linux/seq_file.h>
 #include <linux/if_vlan.h>
 
 #include "types.h"
 
-#define BATADV_PRINT_VID(vid) (vid & BATADV_VLAN_HAS_TAG ? \
+struct batadv_ogm_packet;
+struct seq_file;
+struct sk_buff;
+
+#define BATADV_PRINT_VID(vid) ((vid & BATADV_VLAN_HAS_TAG) ? \
                               (int)(vid & VLAN_VID_MASK) : -1)
 
 extern char batadv_routing_algo[];