diff options
author | David S. Miller <davem@davemloft.net> | 2014-11-10 13:27:49 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-10 13:27:49 -0500 |
commit | 1ef8019be8799c39f316a772ffdd705c46029752 (patch) | |
tree | 1f235f10cd035d076f240c9a84f3c93f22c489e6 | |
parent | 4483589f7123a73955095d8bb1e31390a48c7568 (diff) |
net: Move bonding headers under include/net
This ways drivers like cxgb4 don't need to do ugly relative includes.
Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/bonding/bond_3ad.c | 4 | ||||
-rw-r--r-- | drivers/net/bonding/bond_alb.c | 4 | ||||
-rw-r--r-- | drivers/net/bonding/bond_debugfs.c | 4 | ||||
-rw-r--r-- | drivers/net/bonding/bond_main.c | 6 | ||||
-rw-r--r-- | drivers/net/bonding/bond_netlink.c | 2 | ||||
-rw-r--r-- | drivers/net/bonding/bond_options.c | 2 | ||||
-rw-r--r-- | drivers/net/bonding/bond_procfs.c | 2 | ||||
-rw-r--r-- | drivers/net/bonding/bond_sysfs.c | 2 | ||||
-rw-r--r-- | drivers/net/bonding/bond_sysfs_slave.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 3 | ||||
-rw-r--r-- | include/net/bond_3ad.h (renamed from drivers/net/bonding/bond_3ad.h) | 6 | ||||
-rw-r--r-- | include/net/bond_alb.h (renamed from drivers/net/bonding/bond_alb.h) | 6 | ||||
-rw-r--r-- | include/net/bond_options.h (renamed from drivers/net/bonding/bond_options.h) | 6 | ||||
-rw-r--r-- | include/net/bonding.h (renamed from drivers/net/bonding/bonding.h) | 12 |
14 files changed, 30 insertions, 31 deletions
diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c index 2110215f3528..0a32143af12b 100644 --- a/drivers/net/bonding/bond_3ad.c +++ b/drivers/net/bonding/bond_3ad.c | |||
@@ -29,8 +29,8 @@ | |||
29 | #include <linux/if_bonding.h> | 29 | #include <linux/if_bonding.h> |
30 | #include <linux/pkt_sched.h> | 30 | #include <linux/pkt_sched.h> |
31 | #include <net/net_namespace.h> | 31 | #include <net/net_namespace.h> |
32 | #include "bonding.h" | 32 | #include <net/bonding.h> |
33 | #include "bond_3ad.h" | 33 | #include <net/bond_3ad.h> |
34 | 34 | ||
35 | /* General definitions */ | 35 | /* General definitions */ |
36 | #define AD_SHORT_TIMEOUT 1 | 36 | #define AD_SHORT_TIMEOUT 1 |
diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c index baa58e79256a..e1f1a006af85 100644 --- a/drivers/net/bonding/bond_alb.c +++ b/drivers/net/bonding/bond_alb.c | |||
@@ -37,8 +37,8 @@ | |||
37 | #include <net/arp.h> | 37 | #include <net/arp.h> |
38 | #include <net/ipv6.h> | 38 | #include <net/ipv6.h> |
39 | #include <asm/byteorder.h> | 39 | #include <asm/byteorder.h> |
40 | #include "bonding.h" | 40 | #include <net/bonding.h> |
41 | #include "bond_alb.h" | 41 | #include <net/bond_alb.h> |
42 | 42 | ||
43 | 43 | ||
44 | 44 | ||
diff --git a/drivers/net/bonding/bond_debugfs.c b/drivers/net/bonding/bond_debugfs.c index 8f99082f90eb..e52e25a977fa 100644 --- a/drivers/net/bonding/bond_debugfs.c +++ b/drivers/net/bonding/bond_debugfs.c | |||
@@ -3,8 +3,8 @@ | |||
3 | #include <linux/device.h> | 3 | #include <linux/device.h> |
4 | #include <linux/netdevice.h> | 4 | #include <linux/netdevice.h> |
5 | 5 | ||
6 | #include "bonding.h" | 6 | #include <net/bonding.h> |
7 | #include "bond_alb.h" | 7 | #include <net/bond_alb.h> |
8 | 8 | ||
9 | #if defined(CONFIG_DEBUG_FS) && !defined(CONFIG_NET_NS) | 9 | #if defined(CONFIG_DEBUG_FS) && !defined(CONFIG_NET_NS) |
10 | 10 | ||
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index c7520082fb0d..b9b34566b9b8 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -77,9 +77,9 @@ | |||
77 | #include <net/pkt_sched.h> | 77 | #include <net/pkt_sched.h> |
78 | #include <linux/rculist.h> | 78 | #include <linux/rculist.h> |
79 | #include <net/flow_keys.h> | 79 | #include <net/flow_keys.h> |
80 | #include "bonding.h" | 80 | #include <net/bonding.h> |
81 | #include "bond_3ad.h" | 81 | #include <net/bond_3ad.h> |
82 | #include "bond_alb.h" | 82 | #include <net/bond_alb.h> |
83 | 83 | ||
84 | /*---------------------------- Module parameters ----------------------------*/ | 84 | /*---------------------------- Module parameters ----------------------------*/ |
85 | 85 | ||
diff --git a/drivers/net/bonding/bond_netlink.c b/drivers/net/bonding/bond_netlink.c index c13d83e15ace..3e6eebd5be50 100644 --- a/drivers/net/bonding/bond_netlink.c +++ b/drivers/net/bonding/bond_netlink.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <linux/if_ether.h> | 17 | #include <linux/if_ether.h> |
18 | #include <net/netlink.h> | 18 | #include <net/netlink.h> |
19 | #include <net/rtnetlink.h> | 19 | #include <net/rtnetlink.h> |
20 | #include "bonding.h" | 20 | #include <net/bonding.h> |
21 | 21 | ||
22 | static size_t bond_get_slave_size(const struct net_device *bond_dev, | 22 | static size_t bond_get_slave_size(const struct net_device *bond_dev, |
23 | const struct net_device *slave_dev) | 23 | const struct net_device *slave_dev) |
diff --git a/drivers/net/bonding/bond_options.c b/drivers/net/bonding/bond_options.c index b62697f4a3de..1a61cc9b3402 100644 --- a/drivers/net/bonding/bond_options.c +++ b/drivers/net/bonding/bond_options.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <linux/rcupdate.h> | 16 | #include <linux/rcupdate.h> |
17 | #include <linux/ctype.h> | 17 | #include <linux/ctype.h> |
18 | #include <linux/inet.h> | 18 | #include <linux/inet.h> |
19 | #include "bonding.h" | 19 | #include <net/bonding.h> |
20 | 20 | ||
21 | static int bond_option_active_slave_set(struct bonding *bond, | 21 | static int bond_option_active_slave_set(struct bonding *bond, |
22 | const struct bond_opt_value *newval); | 22 | const struct bond_opt_value *newval); |
diff --git a/drivers/net/bonding/bond_procfs.c b/drivers/net/bonding/bond_procfs.c index a3948f8d1e53..976f5ad2a0f2 100644 --- a/drivers/net/bonding/bond_procfs.c +++ b/drivers/net/bonding/bond_procfs.c | |||
@@ -2,7 +2,7 @@ | |||
2 | #include <linux/export.h> | 2 | #include <linux/export.h> |
3 | #include <net/net_namespace.h> | 3 | #include <net/net_namespace.h> |
4 | #include <net/netns/generic.h> | 4 | #include <net/netns/generic.h> |
5 | #include "bonding.h" | 5 | #include <net/bonding.h> |
6 | 6 | ||
7 | 7 | ||
8 | static void *bond_info_seq_start(struct seq_file *seq, loff_t *pos) | 8 | static void *bond_info_seq_start(struct seq_file *seq, loff_t *pos) |
diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c index 8ffbafd500fd..7e9e151d4d61 100644 --- a/drivers/net/bonding/bond_sysfs.c +++ b/drivers/net/bonding/bond_sysfs.c | |||
@@ -40,7 +40,7 @@ | |||
40 | #include <net/netns/generic.h> | 40 | #include <net/netns/generic.h> |
41 | #include <linux/nsproxy.h> | 41 | #include <linux/nsproxy.h> |
42 | 42 | ||
43 | #include "bonding.h" | 43 | #include <net/bonding.h> |
44 | 44 | ||
45 | #define to_dev(obj) container_of(obj, struct device, kobj) | 45 | #define to_dev(obj) container_of(obj, struct device, kobj) |
46 | #define to_bond(cd) ((struct bonding *)(netdev_priv(to_net_dev(cd)))) | 46 | #define to_bond(cd) ((struct bonding *)(netdev_priv(to_net_dev(cd)))) |
diff --git a/drivers/net/bonding/bond_sysfs_slave.c b/drivers/net/bonding/bond_sysfs_slave.c index b01b0ce4d1be..23618a831612 100644 --- a/drivers/net/bonding/bond_sysfs_slave.c +++ b/drivers/net/bonding/bond_sysfs_slave.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/netdevice.h> | 13 | #include <linux/netdevice.h> |
14 | 14 | ||
15 | #include "bonding.h" | 15 | #include <net/bonding.h> |
16 | 16 | ||
17 | struct slave_attribute { | 17 | struct slave_attribute { |
18 | struct attribute attr; | 18 | struct attribute attr; |
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index a9c117fdf77c..d13d36abe55c 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | |||
@@ -61,6 +61,7 @@ | |||
61 | #include <net/neighbour.h> | 61 | #include <net/neighbour.h> |
62 | #include <net/netevent.h> | 62 | #include <net/netevent.h> |
63 | #include <net/addrconf.h> | 63 | #include <net/addrconf.h> |
64 | #include <net/bonding.h> | ||
64 | #include <asm/uaccess.h> | 65 | #include <asm/uaccess.h> |
65 | 66 | ||
66 | #include "cxgb4.h" | 67 | #include "cxgb4.h" |
@@ -71,8 +72,6 @@ | |||
71 | #include "cxgb4_debugfs.h" | 72 | #include "cxgb4_debugfs.h" |
72 | #include "l2t.h" | 73 | #include "l2t.h" |
73 | 74 | ||
74 | #include <../drivers/net/bonding/bonding.h> | ||
75 | |||
76 | #ifdef DRV_VERSION | 75 | #ifdef DRV_VERSION |
77 | #undef DRV_VERSION | 76 | #undef DRV_VERSION |
78 | #endif | 77 | #endif |
diff --git a/drivers/net/bonding/bond_3ad.h b/include/net/bond_3ad.h index c5f14ac63f3e..e01d903633ef 100644 --- a/drivers/net/bonding/bond_3ad.h +++ b/include/net/bond_3ad.h | |||
@@ -20,8 +20,8 @@ | |||
20 | * | 20 | * |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #ifndef __BOND_3AD_H__ | 23 | #ifndef _NET_BOND_3AD_H |
24 | #define __BOND_3AD_H__ | 24 | #define _NET_BOND_3AD_H |
25 | 25 | ||
26 | #include <asm/byteorder.h> | 26 | #include <asm/byteorder.h> |
27 | #include <linux/skbuff.h> | 27 | #include <linux/skbuff.h> |
@@ -279,5 +279,5 @@ int bond_3ad_lacpdu_recv(const struct sk_buff *skb, struct bonding *bond, | |||
279 | struct slave *slave); | 279 | struct slave *slave); |
280 | int bond_3ad_set_carrier(struct bonding *bond); | 280 | int bond_3ad_set_carrier(struct bonding *bond); |
281 | void bond_3ad_update_lacp_rate(struct bonding *bond); | 281 | void bond_3ad_update_lacp_rate(struct bonding *bond); |
282 | #endif /* __BOND_3AD_H__ */ | 282 | #endif /* _NET_BOND_3AD_H */ |
283 | 283 | ||
diff --git a/drivers/net/bonding/bond_alb.h b/include/net/bond_alb.h index 1ad473b4ade5..313a8d3b3069 100644 --- a/drivers/net/bonding/bond_alb.h +++ b/include/net/bond_alb.h | |||
@@ -19,8 +19,8 @@ | |||
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #ifndef __BOND_ALB_H__ | 22 | #ifndef _NET_BOND_ALB_H |
23 | #define __BOND_ALB_H__ | 23 | #define _NET_BOND_ALB_H |
24 | 24 | ||
25 | #include <linux/if_ether.h> | 25 | #include <linux/if_ether.h> |
26 | 26 | ||
@@ -177,5 +177,5 @@ int bond_tlb_xmit(struct sk_buff *skb, struct net_device *bond_dev); | |||
177 | void bond_alb_monitor(struct work_struct *); | 177 | void bond_alb_monitor(struct work_struct *); |
178 | int bond_alb_set_mac_address(struct net_device *bond_dev, void *addr); | 178 | int bond_alb_set_mac_address(struct net_device *bond_dev, void *addr); |
179 | void bond_alb_clear_vlan(struct bonding *bond, unsigned short vlan_id); | 179 | void bond_alb_clear_vlan(struct bonding *bond, unsigned short vlan_id); |
180 | #endif /* __BOND_ALB_H__ */ | 180 | #endif /* _NET_BOND_ALB_H */ |
181 | 181 | ||
diff --git a/drivers/net/bonding/bond_options.h b/include/net/bond_options.h index 17ded5b29176..ea6546d2c946 100644 --- a/drivers/net/bonding/bond_options.h +++ b/include/net/bond_options.h | |||
@@ -8,8 +8,8 @@ | |||
8 | * (at your option) any later version. | 8 | * (at your option) any later version. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #ifndef _BOND_OPTIONS_H | 11 | #ifndef _NET_BOND_OPTIONS_H |
12 | #define _BOND_OPTIONS_H | 12 | #define _NET_BOND_OPTIONS_H |
13 | 13 | ||
14 | #define BOND_OPT_MAX_NAMELEN 32 | 14 | #define BOND_OPT_MAX_NAMELEN 32 |
15 | #define BOND_OPT_VALID(opt) ((opt) < BOND_OPT_LAST) | 15 | #define BOND_OPT_VALID(opt) ((opt) < BOND_OPT_LAST) |
@@ -127,4 +127,4 @@ static inline void __bond_opt_init(struct bond_opt_value *optval, | |||
127 | 127 | ||
128 | void bond_option_arp_ip_targets_clear(struct bonding *bond); | 128 | void bond_option_arp_ip_targets_clear(struct bonding *bond); |
129 | 129 | ||
130 | #endif /* _BOND_OPTIONS_H */ | 130 | #endif /* _NET_BOND_OPTIONS_H */ |
diff --git a/drivers/net/bonding/bonding.h b/include/net/bonding.h index bfb0b51c081a..983a94b86b95 100644 --- a/drivers/net/bonding/bonding.h +++ b/include/net/bonding.h | |||
@@ -12,8 +12,8 @@ | |||
12 | * | 12 | * |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #ifndef _LINUX_BONDING_H | 15 | #ifndef _NET_BONDING_H |
16 | #define _LINUX_BONDING_H | 16 | #define _NET_BONDING_H |
17 | 17 | ||
18 | #include <linux/timer.h> | 18 | #include <linux/timer.h> |
19 | #include <linux/proc_fs.h> | 19 | #include <linux/proc_fs.h> |
@@ -26,9 +26,9 @@ | |||
26 | #include <linux/reciprocal_div.h> | 26 | #include <linux/reciprocal_div.h> |
27 | #include <linux/if_link.h> | 27 | #include <linux/if_link.h> |
28 | 28 | ||
29 | #include "bond_3ad.h" | 29 | #include <net/bond_3ad.h> |
30 | #include "bond_alb.h" | 30 | #include <net/bond_alb.h> |
31 | #include "bond_options.h" | 31 | #include <net/bond_options.h> |
32 | 32 | ||
33 | #define DRV_VERSION "3.7.1" | 33 | #define DRV_VERSION "3.7.1" |
34 | #define DRV_RELDATE "April 27, 2011" | 34 | #define DRV_RELDATE "April 27, 2011" |
@@ -651,4 +651,4 @@ static inline void bond_tx_drop(struct net_device *dev, struct sk_buff *skb) | |||
651 | dev_kfree_skb_any(skb); | 651 | dev_kfree_skb_any(skb); |
652 | } | 652 | } |
653 | 653 | ||
654 | #endif /* _LINUX_BONDING_H */ | 654 | #endif /* _NET_BONDING_H */ |