Skip to content

Commit

Permalink
batman-adv: Remove batadv_ types forward declarations
Browse files Browse the repository at this point in the history
main.h is included in every file and is the only way to access types.h.
This makes forward declarations for all types defined in types.h
unnecessary.

Signed-off-by: Sven Eckelmann <[email protected]>
Signed-off-by: Marek Lindner <[email protected]>
Signed-off-by: Antonio Quartulli <[email protected]>
  • Loading branch information
ecsv authored and ordex committed Aug 24, 2015
1 parent 383b863 commit 2bdd188
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 27 deletions.
3 changes: 0 additions & 3 deletions net/batman-adv/bridge_loop_avoidance.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

#include <linux/types.h>

struct batadv_hard_iface;
struct batadv_orig_node;
struct batadv_priv;
struct seq_file;
struct sk_buff;

Expand Down
1 change: 0 additions & 1 deletion net/batman-adv/debugfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include <linux/kconfig.h>

struct batadv_hard_iface;
struct net_device;

#define BATADV_DEBUGFS_SUBDIR "batman_adv"
Expand Down
1 change: 0 additions & 1 deletion net/batman-adv/gateway_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include <linux/types.h>

struct batadv_priv;
struct net_device;

enum batadv_gw_modes {
Expand Down
1 change: 0 additions & 1 deletion net/batman-adv/icmp_socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <linux/types.h>

struct batadv_icmp_header;
struct batadv_priv;

#define BATADV_ICMP_SOCKET "socket"

Expand Down
2 changes: 0 additions & 2 deletions net/batman-adv/multicast.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#include "main.h"

struct batadv_orig_node;
struct batadv_priv;
struct sk_buff;

/**
Expand Down
4 changes: 0 additions & 4 deletions net/batman-adv/network-coding.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@

#include <linux/types.h>

struct batadv_nc_node;
struct batadv_neigh_node;
struct batadv_ogm_packet;
struct batadv_orig_node;
struct batadv_priv;
struct net_device;
struct seq_file;
struct sk_buff;
Expand Down
4 changes: 0 additions & 4 deletions net/batman-adv/routing.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@

#include <linux/types.h>

struct batadv_hard_iface;
struct batadv_neigh_node;
struct batadv_orig_node;
struct batadv_priv;
struct sk_buff;

bool batadv_check_management_packet(struct sk_buff *skb,
Expand Down
3 changes: 0 additions & 3 deletions net/batman-adv/send.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@

#include "packet.h"

struct batadv_hard_iface;
struct batadv_orig_node;
struct batadv_priv;
struct sk_buff;
struct work_struct;

Expand Down
4 changes: 0 additions & 4 deletions net/batman-adv/soft-interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@

#include <net/rtnetlink.h>

struct batadv_hard_iface;
struct batadv_orig_node;
struct batadv_priv;
struct batadv_softif_vlan;
struct net_device;
struct sk_buff;

Expand Down
2 changes: 0 additions & 2 deletions net/batman-adv/sysfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#include <linux/sysfs.h>
#include <linux/types.h>

struct batadv_priv;
struct batadv_softif_vlan;
struct kobject;
struct net_device;

Expand Down
2 changes: 0 additions & 2 deletions net/batman-adv/translation-table.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

#include <linux/types.h>

struct batadv_orig_node;
struct batadv_priv;
struct net_device;
struct seq_file;

Expand Down

0 comments on commit 2bdd188

Please sign in to comment.