diff options
Diffstat (limited to 'drivers/net/sfc')
| -rw-r--r-- | drivers/net/sfc/efx.c | 7 | ||||
| -rw-r--r-- | drivers/net/sfc/falcon.c | 1 | ||||
| -rw-r--r-- | drivers/net/sfc/mcdi_phy.c | 1 | ||||
| -rw-r--r-- | drivers/net/sfc/mtd.c | 1 | ||||
| -rw-r--r-- | drivers/net/sfc/qt202x_phy.c | 1 | ||||
| -rw-r--r-- | drivers/net/sfc/rx.c | 1 | ||||
| -rw-r--r-- | drivers/net/sfc/selftest.c | 1 | ||||
| -rw-r--r-- | drivers/net/sfc/siena.c | 1 | ||||
| -rw-r--r-- | drivers/net/sfc/tenxpress.c | 1 | ||||
| -rw-r--r-- | drivers/net/sfc/tx.c | 1 |
10 files changed, 13 insertions, 3 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index 88f2fb193abe..1ad61b7bba40 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c | |||
| @@ -20,6 +20,7 @@ | |||
| 20 | #include <linux/crc32.h> | 20 | #include <linux/crc32.h> |
| 21 | #include <linux/ethtool.h> | 21 | #include <linux/ethtool.h> |
| 22 | #include <linux/topology.h> | 22 | #include <linux/topology.h> |
| 23 | #include <linux/gfp.h> | ||
| 23 | #include "net_driver.h" | 24 | #include "net_driver.h" |
| 24 | #include "efx.h" | 25 | #include "efx.h" |
| 25 | #include "mdio_10g.h" | 26 | #include "mdio_10g.h" |
| @@ -1602,7 +1603,7 @@ static int efx_set_mac_address(struct net_device *net_dev, void *data) | |||
| 1602 | static void efx_set_multicast_list(struct net_device *net_dev) | 1603 | static void efx_set_multicast_list(struct net_device *net_dev) |
| 1603 | { | 1604 | { |
| 1604 | struct efx_nic *efx = netdev_priv(net_dev); | 1605 | struct efx_nic *efx = netdev_priv(net_dev); |
| 1605 | struct dev_mc_list *mc_list; | 1606 | struct netdev_hw_addr *ha; |
| 1606 | union efx_multicast_hash *mc_hash = &efx->multicast_hash; | 1607 | union efx_multicast_hash *mc_hash = &efx->multicast_hash; |
| 1607 | u32 crc; | 1608 | u32 crc; |
| 1608 | int bit; | 1609 | int bit; |
| @@ -1614,8 +1615,8 @@ static void efx_set_multicast_list(struct net_device *net_dev) | |||
| 1614 | memset(mc_hash, 0xff, sizeof(*mc_hash)); | 1615 | memset(mc_hash, 0xff, sizeof(*mc_hash)); |
| 1615 | } else { | 1616 | } else { |
| 1616 | memset(mc_hash, 0x00, sizeof(*mc_hash)); | 1617 | memset(mc_hash, 0x00, sizeof(*mc_hash)); |
| 1617 | netdev_for_each_mc_addr(mc_list, net_dev) { | 1618 | netdev_for_each_mc_addr(ha, net_dev) { |
| 1618 | crc = ether_crc_le(ETH_ALEN, mc_list->dmi_addr); | 1619 | crc = ether_crc_le(ETH_ALEN, ha->addr); |
| 1619 | bit = crc & (EFX_MCAST_HASH_ENTRIES - 1); | 1620 | bit = crc & (EFX_MCAST_HASH_ENTRIES - 1); |
| 1620 | set_bit_le(bit, mc_hash->byte); | 1621 | set_bit_le(bit, mc_hash->byte); |
| 1621 | } | 1622 | } |
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c index 1b8d83657aaa..d294d66fd600 100644 --- a/drivers/net/sfc/falcon.c +++ b/drivers/net/sfc/falcon.c | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | #include <linux/seq_file.h> | 15 | #include <linux/seq_file.h> |
| 16 | #include <linux/i2c.h> | 16 | #include <linux/i2c.h> |
| 17 | #include <linux/mii.h> | 17 | #include <linux/mii.h> |
| 18 | #include <linux/slab.h> | ||
| 18 | #include "net_driver.h" | 19 | #include "net_driver.h" |
| 19 | #include "bitfield.h" | 20 | #include "bitfield.h" |
| 20 | #include "efx.h" | 21 | #include "efx.h" |
diff --git a/drivers/net/sfc/mcdi_phy.c b/drivers/net/sfc/mcdi_phy.c index 34c22fa986e2..2f2354696663 100644 --- a/drivers/net/sfc/mcdi_phy.c +++ b/drivers/net/sfc/mcdi_phy.c | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | * Driver for PHY related operations via MCDI. | 11 | * Driver for PHY related operations via MCDI. |
| 12 | */ | 12 | */ |
| 13 | 13 | ||
| 14 | #include <linux/slab.h> | ||
| 14 | #include "efx.h" | 15 | #include "efx.h" |
| 15 | #include "phy.h" | 16 | #include "phy.h" |
| 16 | #include "mcdi.h" | 17 | #include "mcdi.h" |
diff --git a/drivers/net/sfc/mtd.c b/drivers/net/sfc/mtd.c index 407bbaddfea6..f3ac7f30b5e7 100644 --- a/drivers/net/sfc/mtd.c +++ b/drivers/net/sfc/mtd.c | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
| 13 | #include <linux/mtd/mtd.h> | 13 | #include <linux/mtd/mtd.h> |
| 14 | #include <linux/delay.h> | 14 | #include <linux/delay.h> |
| 15 | #include <linux/slab.h> | ||
| 15 | #include <linux/rtnetlink.h> | 16 | #include <linux/rtnetlink.h> |
| 16 | 17 | ||
| 17 | #define EFX_DRIVER_NAME "sfc_mtd" | 18 | #define EFX_DRIVER_NAME "sfc_mtd" |
diff --git a/drivers/net/sfc/qt202x_phy.c b/drivers/net/sfc/qt202x_phy.c index 1bee62c83001..e077bef08a50 100644 --- a/drivers/net/sfc/qt202x_phy.c +++ b/drivers/net/sfc/qt202x_phy.c | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | * Driver for AMCC QT202x SFP+ and XFP adapters; see www.amcc.com for details | 10 | * Driver for AMCC QT202x SFP+ and XFP adapters; see www.amcc.com for details |
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | #include <linux/slab.h> | ||
| 13 | #include <linux/timer.h> | 14 | #include <linux/timer.h> |
| 14 | #include <linux/delay.h> | 15 | #include <linux/delay.h> |
| 15 | #include "efx.h" | 16 | #include "efx.h" |
diff --git a/drivers/net/sfc/rx.c b/drivers/net/sfc/rx.c index a97c923b560c..e308818b9f55 100644 --- a/drivers/net/sfc/rx.c +++ b/drivers/net/sfc/rx.c | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | 10 | ||
| 11 | #include <linux/socket.h> | 11 | #include <linux/socket.h> |
| 12 | #include <linux/in.h> | 12 | #include <linux/in.h> |
| 13 | #include <linux/slab.h> | ||
| 13 | #include <linux/ip.h> | 14 | #include <linux/ip.h> |
| 14 | #include <linux/tcp.h> | 15 | #include <linux/tcp.h> |
| 15 | #include <linux/udp.h> | 16 | #include <linux/udp.h> |
diff --git a/drivers/net/sfc/selftest.c b/drivers/net/sfc/selftest.c index cf0139a7d9a4..0106b1d9aae2 100644 --- a/drivers/net/sfc/selftest.c +++ b/drivers/net/sfc/selftest.c | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | #include <linux/in.h> | 18 | #include <linux/in.h> |
| 19 | #include <linux/udp.h> | 19 | #include <linux/udp.h> |
| 20 | #include <linux/rtnetlink.h> | 20 | #include <linux/rtnetlink.h> |
| 21 | #include <linux/slab.h> | ||
| 21 | #include <asm/io.h> | 22 | #include <asm/io.h> |
| 22 | #include "net_driver.h" | 23 | #include "net_driver.h" |
| 23 | #include "efx.h" | 24 | #include "efx.h" |
diff --git a/drivers/net/sfc/siena.c b/drivers/net/sfc/siena.c index 1619fb5a64f5..38dcc42c4f79 100644 --- a/drivers/net/sfc/siena.c +++ b/drivers/net/sfc/siena.c | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #include <linux/delay.h> | 12 | #include <linux/delay.h> |
| 13 | #include <linux/pci.h> | 13 | #include <linux/pci.h> |
| 14 | #include <linux/module.h> | 14 | #include <linux/module.h> |
| 15 | #include <linux/slab.h> | ||
| 15 | #include "net_driver.h" | 16 | #include "net_driver.h" |
| 16 | #include "bitfield.h" | 17 | #include "bitfield.h" |
| 17 | #include "efx.h" | 18 | #include "efx.h" |
diff --git a/drivers/net/sfc/tenxpress.c b/drivers/net/sfc/tenxpress.c index 10db071bd837..f21efe7bd316 100644 --- a/drivers/net/sfc/tenxpress.c +++ b/drivers/net/sfc/tenxpress.c | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #include <linux/delay.h> | 10 | #include <linux/delay.h> |
| 11 | #include <linux/rtnetlink.h> | 11 | #include <linux/rtnetlink.h> |
| 12 | #include <linux/seq_file.h> | 12 | #include <linux/seq_file.h> |
| 13 | #include <linux/slab.h> | ||
| 13 | #include "efx.h" | 14 | #include "efx.h" |
| 14 | #include "mdio_10g.h" | 15 | #include "mdio_10g.h" |
| 15 | #include "nic.h" | 16 | #include "nic.h" |
diff --git a/drivers/net/sfc/tx.c b/drivers/net/sfc/tx.c index a8b70ef6d817..be0e110a1f73 100644 --- a/drivers/net/sfc/tx.c +++ b/drivers/net/sfc/tx.c | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | #include <linux/ip.h> | 13 | #include <linux/ip.h> |
| 14 | #include <linux/in.h> | 14 | #include <linux/in.h> |
| 15 | #include <linux/ipv6.h> | 15 | #include <linux/ipv6.h> |
| 16 | #include <linux/slab.h> | ||
| 16 | #include <net/ipv6.h> | 17 | #include <net/ipv6.h> |
| 17 | #include <linux/if_ether.h> | 18 | #include <linux/if_ether.h> |
| 18 | #include <linux/highmem.h> | 19 | #include <linux/highmem.h> |
