net/mlx4_en: fix sparse warning on a cast which truncates bits from constant value
authorOr Gerlitz <ogerlitz@mellanox.com>
Sat, 26 Nov 2011 19:55:06 +0000 (19:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Nov 2011 22:17:03 +0000 (17:17 -0500)
commit0d9fdaa9f53cf65a2470e8a7506b59fd88d409e2
tree807da7916561b1c9fb44a4c48f17bf0848b7b85d
parent1202d460b1df3a77fda66f4ba5f90ae3527dd42f
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>
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h