Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+30 -31
+2 -2
drivers/net/bonding/bond_3ad.c
··· 29 29 #include <linux/if_bonding.h> 30 30 #include <linux/pkt_sched.h> 31 31 #include <net/net_namespace.h> 32 - #include "bonding.h" 33 - #include "bond_3ad.h" 32 + #include <net/bonding.h> 33 + #include <net/bond_3ad.h> 34 34 35 35 /* General definitions */ 36 36 #define AD_SHORT_TIMEOUT 1
+3 -3
drivers/net/bonding/bond_3ad.h include/net/bond_3ad.h
··· 20 20 * 21 21 */ 22 22 23 - #ifndef __BOND_3AD_H__ 24 - #define __BOND_3AD_H__ 23 + #ifndef _NET_BOND_3AD_H 24 + #define _NET_BOND_3AD_H 25 25 26 26 #include <asm/byteorder.h> 27 27 #include <linux/skbuff.h> ··· 279 279 struct slave *slave); 280 280 int bond_3ad_set_carrier(struct bonding *bond); 281 281 void bond_3ad_update_lacp_rate(struct bonding *bond); 282 - #endif /* __BOND_3AD_H__ */ 282 + #endif /* _NET_BOND_3AD_H */ 283 283
+2 -2
drivers/net/bonding/bond_alb.c
··· 37 37 #include <net/arp.h> 38 38 #include <net/ipv6.h> 39 39 #include <asm/byteorder.h> 40 - #include "bonding.h" 41 - #include "bond_alb.h" 40 + #include <net/bonding.h> 41 + #include <net/bond_alb.h> 42 42 43 43 44 44
+3 -3
drivers/net/bonding/bond_alb.h include/net/bond_alb.h
··· 19 19 * 20 20 */ 21 21 22 - #ifndef __BOND_ALB_H__ 23 - #define __BOND_ALB_H__ 22 + #ifndef _NET_BOND_ALB_H 23 + #define _NET_BOND_ALB_H 24 24 25 25 #include <linux/if_ether.h> 26 26 ··· 177 177 void bond_alb_monitor(struct work_struct *); 178 178 int bond_alb_set_mac_address(struct net_device *bond_dev, void *addr); 179 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
+2 -2
drivers/net/bonding/bond_debugfs.c
··· 3 3 #include <linux/device.h> 4 4 #include <linux/netdevice.h> 5 5 6 - #include "bonding.h" 7 - #include "bond_alb.h" 6 + #include <net/bonding.h> 7 + #include <net/bond_alb.h> 8 8 9 9 #if defined(CONFIG_DEBUG_FS) && !defined(CONFIG_NET_NS) 10 10
+3 -3
drivers/net/bonding/bond_main.c
··· 77 77 #include <net/pkt_sched.h> 78 78 #include <linux/rculist.h> 79 79 #include <net/flow_keys.h> 80 - #include "bonding.h" 81 - #include "bond_3ad.h" 82 - #include "bond_alb.h" 80 + #include <net/bonding.h> 81 + #include <net/bond_3ad.h> 82 + #include <net/bond_alb.h> 83 83 84 84 /*---------------------------- Module parameters ----------------------------*/ 85 85
+1 -1
drivers/net/bonding/bond_netlink.c
··· 17 17 #include <linux/if_ether.h> 18 18 #include <net/netlink.h> 19 19 #include <net/rtnetlink.h> 20 - #include "bonding.h" 20 + #include <net/bonding.h> 21 21 22 22 static size_t bond_get_slave_size(const struct net_device *bond_dev, 23 23 const struct net_device *slave_dev)
+1 -1
drivers/net/bonding/bond_options.c
··· 16 16 #include <linux/rcupdate.h> 17 17 #include <linux/ctype.h> 18 18 #include <linux/inet.h> 19 - #include "bonding.h" 19 + #include <net/bonding.h> 20 20 21 21 static int bond_option_active_slave_set(struct bonding *bond, 22 22 const struct bond_opt_value *newval);
+3 -3
drivers/net/bonding/bond_options.h include/net/bond_options.h
··· 8 8 * (at your option) any later version. 9 9 */ 10 10 11 - #ifndef _BOND_OPTIONS_H 12 - #define _BOND_OPTIONS_H 11 + #ifndef _NET_BOND_OPTIONS_H 12 + #define _NET_BOND_OPTIONS_H 13 13 14 14 #define BOND_OPT_MAX_NAMELEN 32 15 15 #define BOND_OPT_VALID(opt) ((opt) < BOND_OPT_LAST) ··· 127 127 128 128 void bond_option_arp_ip_targets_clear(struct bonding *bond); 129 129 130 - #endif /* _BOND_OPTIONS_H */ 130 + #endif /* _NET_BOND_OPTIONS_H */
+1 -1
drivers/net/bonding/bond_procfs.c
··· 2 2 #include <linux/export.h> 3 3 #include <net/net_namespace.h> 4 4 #include <net/netns/generic.h> 5 - #include "bonding.h" 5 + #include <net/bonding.h> 6 6 7 7 8 8 static void *bond_info_seq_start(struct seq_file *seq, loff_t *pos)
+1 -1
drivers/net/bonding/bond_sysfs.c
··· 40 40 #include <net/netns/generic.h> 41 41 #include <linux/nsproxy.h> 42 42 43 - #include "bonding.h" 43 + #include <net/bonding.h> 44 44 45 45 #define to_dev(obj) container_of(obj, struct device, kobj) 46 46 #define to_bond(cd) ((struct bonding *)(netdev_priv(to_net_dev(cd))))
+1 -1
drivers/net/bonding/bond_sysfs_slave.c
··· 12 12 #include <linux/kernel.h> 13 13 #include <linux/netdevice.h> 14 14 15 - #include "bonding.h" 15 + #include <net/bonding.h> 16 16 17 17 struct slave_attribute { 18 18 struct attribute attr;
+6 -6
drivers/net/bonding/bonding.h include/net/bonding.h
··· 12 12 * 13 13 */ 14 14 15 - #ifndef _LINUX_BONDING_H 16 - #define _LINUX_BONDING_H 15 + #ifndef _NET_BONDING_H 16 + #define _NET_BONDING_H 17 17 18 18 #include <linux/timer.h> 19 19 #include <linux/proc_fs.h> ··· 26 26 #include <linux/reciprocal_div.h> 27 27 #include <linux/if_link.h> 28 28 29 - #include "bond_3ad.h" 30 - #include "bond_alb.h" 31 - #include "bond_options.h" 29 + #include <net/bond_3ad.h> 30 + #include <net/bond_alb.h> 31 + #include <net/bond_options.h> 32 32 33 33 #define DRV_VERSION "3.7.1" 34 34 #define DRV_RELDATE "April 27, 2011" ··· 651 651 dev_kfree_skb_any(skb); 652 652 } 653 653 654 - #endif /* _LINUX_BONDING_H */ 654 + #endif /* _NET_BONDING_H */
+1 -2
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
··· 61 61 #include <net/neighbour.h> 62 62 #include <net/netevent.h> 63 63 #include <net/addrconf.h> 64 + #include <net/bonding.h> 64 65 #include <asm/uaccess.h> 65 66 66 67 #include "cxgb4.h" ··· 71 70 #include "cxgb4_dcb.h" 72 71 #include "cxgb4_debugfs.h" 73 72 #include "l2t.h" 74 - 75 - #include <../drivers/net/bonding/bonding.h> 76 73 77 74 #ifdef DRV_VERSION 78 75 #undef DRV_VERSION