]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Fix cast warning in fw.c
authorTariq Toukan <tariqt@mellanox.com>
Mon, 9 Oct 2017 13:59:49 +0000 (16:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Oct 2017 17:33:05 +0000 (10:33 -0700)
commite3685757c4052c818a9415f5284cf21cca7ee3ae
treef1b65832578ab2f5df23b7482b6bb3486445dcb9
parentfc439a0a15096e8c6db9e6d399b5e7bda5631709
net/mlx4_core: Fix cast warning in fw.c

Fix the following SPARSE warning, in MLX4_GET() macro:
drivers/net/ethernet/mellanox/mlx4/fw.c:233:9: warning: cast to restricted __be64

Fixes: 63686b7a02db ("net/mlx4_core: Fix unaligned accesses")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/fw.c