diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2011-11-26 20:55:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-27 23:17:03 +0100 |
commit | 0d9fdaa9f53cf65a2470e8a7506b59fd88d409e2 (patch) | |
tree | 807da7916561b1c9fb44a4c48f17bf0848b7b85d /drivers/net/ethernet/mellanox | |
parent | net/mlx4: fix UDP RSS related settings (diff) | |
download | linux-0d9fdaa9f53cf65a2470e8a7506b59fd88d409e2.tar.xz linux-0d9fdaa9f53cf65a2470e8a7506b59fd88d409e2.zip |
net/mlx4_en: fix sparse warning on a cast which truncates bits from constant value
the MLX4_EN_WOL_DO_MODIFY flag which is defined through enum targets
bit 63, this triggers a "cast truncate bits from constant value
(8000000000000000 becomes 0)" warning from sparse, fix that by using
define instead of enum.
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h b/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h index ef7dfcff588d..d2dd97fa091f 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4_en.h @@ -485,9 +485,9 @@ struct mlx4_en_priv { enum mlx4_en_wol { MLX4_EN_WOL_MAGIC = (1ULL << 61), MLX4_EN_WOL_ENABLED = (1ULL << 62), - MLX4_EN_WOL_DO_MODIFY = (1ULL << 63), }; +#define MLX4_EN_WOL_DO_MODIFY (1ULL << 63) void mlx4_en_destroy_netdev(struct net_device *dev); int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port, |