diff options
Diffstat (limited to 'drivers/net/mlx4')
-rw-r--r-- | drivers/net/mlx4/en_netdev.c | 2 | ||||
-rw-r--r-- | drivers/net/mlx4/en_rx.c | 2 | ||||
-rw-r--r-- | drivers/net/mlx4/main.c | 8 | ||||
-rw-r--r-- | drivers/net/mlx4/sense.c | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/mlx4/en_netdev.c b/drivers/net/mlx4/en_netdev.c index 9f6644a44030..303c23de6cac 100644 --- a/drivers/net/mlx4/en_netdev.c +++ b/drivers/net/mlx4/en_netdev.c | |||
@@ -505,7 +505,7 @@ out: | |||
505 | 505 | ||
506 | static void mlx4_en_do_get_stats(struct work_struct *work) | 506 | static void mlx4_en_do_get_stats(struct work_struct *work) |
507 | { | 507 | { |
508 | struct delayed_work *delay = container_of(work, struct delayed_work, work); | 508 | struct delayed_work *delay = to_delayed_work(work); |
509 | struct mlx4_en_priv *priv = container_of(delay, struct mlx4_en_priv, | 509 | struct mlx4_en_priv *priv = container_of(delay, struct mlx4_en_priv, |
510 | stats_task); | 510 | stats_task); |
511 | struct mlx4_en_dev *mdev = priv->mdev; | 511 | struct mlx4_en_dev *mdev = priv->mdev; |
diff --git a/drivers/net/mlx4/en_rx.c b/drivers/net/mlx4/en_rx.c index a4130e764991..7e40741fb7d8 100644 --- a/drivers/net/mlx4/en_rx.c +++ b/drivers/net/mlx4/en_rx.c | |||
@@ -298,7 +298,7 @@ static void mlx4_en_free_rx_buf(struct mlx4_en_priv *priv, | |||
298 | 298 | ||
299 | void mlx4_en_rx_refill(struct work_struct *work) | 299 | void mlx4_en_rx_refill(struct work_struct *work) |
300 | { | 300 | { |
301 | struct delayed_work *delay = container_of(work, struct delayed_work, work); | 301 | struct delayed_work *delay = to_delayed_work(work); |
302 | struct mlx4_en_priv *priv = container_of(delay, struct mlx4_en_priv, | 302 | struct mlx4_en_priv *priv = container_of(delay, struct mlx4_en_priv, |
303 | refill_task); | 303 | refill_task); |
304 | struct mlx4_en_dev *mdev = priv->mdev; | 304 | struct mlx4_en_dev *mdev = priv->mdev; |
diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c index a66f5b2fd288..102bac90a302 100644 --- a/drivers/net/mlx4/main.c +++ b/drivers/net/mlx4/main.c | |||
@@ -1076,20 +1076,20 @@ static int __mlx4_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
1076 | 1076 | ||
1077 | pci_set_master(pdev); | 1077 | pci_set_master(pdev); |
1078 | 1078 | ||
1079 | err = pci_set_dma_mask(pdev, DMA_64BIT_MASK); | 1079 | err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64)); |
1080 | if (err) { | 1080 | if (err) { |
1081 | dev_warn(&pdev->dev, "Warning: couldn't set 64-bit PCI DMA mask.\n"); | 1081 | dev_warn(&pdev->dev, "Warning: couldn't set 64-bit PCI DMA mask.\n"); |
1082 | err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); | 1082 | err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); |
1083 | if (err) { | 1083 | if (err) { |
1084 | dev_err(&pdev->dev, "Can't set PCI DMA mask, aborting.\n"); | 1084 | dev_err(&pdev->dev, "Can't set PCI DMA mask, aborting.\n"); |
1085 | goto err_release_bar2; | 1085 | goto err_release_bar2; |
1086 | } | 1086 | } |
1087 | } | 1087 | } |
1088 | err = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK); | 1088 | err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64)); |
1089 | if (err) { | 1089 | if (err) { |
1090 | dev_warn(&pdev->dev, "Warning: couldn't set 64-bit " | 1090 | dev_warn(&pdev->dev, "Warning: couldn't set 64-bit " |
1091 | "consistent PCI DMA mask.\n"); | 1091 | "consistent PCI DMA mask.\n"); |
1092 | err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK); | 1092 | err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); |
1093 | if (err) { | 1093 | if (err) { |
1094 | dev_err(&pdev->dev, "Can't set consistent PCI DMA mask, " | 1094 | dev_err(&pdev->dev, "Can't set consistent PCI DMA mask, " |
1095 | "aborting.\n"); | 1095 | "aborting.\n"); |
diff --git a/drivers/net/mlx4/sense.c b/drivers/net/mlx4/sense.c index 6d5089ecb5af..f36ae691cab3 100644 --- a/drivers/net/mlx4/sense.c +++ b/drivers/net/mlx4/sense.c | |||
@@ -103,7 +103,7 @@ void mlx4_do_sense_ports(struct mlx4_dev *dev, | |||
103 | 103 | ||
104 | static void mlx4_sense_port(struct work_struct *work) | 104 | static void mlx4_sense_port(struct work_struct *work) |
105 | { | 105 | { |
106 | struct delayed_work *delay = container_of(work, struct delayed_work, work); | 106 | struct delayed_work *delay = to_delayed_work(work); |
107 | struct mlx4_sense *sense = container_of(delay, struct mlx4_sense, | 107 | struct mlx4_sense *sense = container_of(delay, struct mlx4_sense, |
108 | sense_poll); | 108 | sense_poll); |
109 | struct mlx4_dev *dev = sense->dev; | 109 | struct mlx4_dev *dev = sense->dev; |