net/mlx4_en: Fix build break when CONFIG_INET is off
authorSaeed Mahameed <saeedm@mellanox.com>
Sun, 2 Dec 2018 12:34:37 +0000 (14:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Dec 2018 00:16:22 +0000 (16:16 -0800)
commit1b603f9e4313348608f256b564ed6e3d9e67f377
tree8219ab9b6c8679c4c5d5398ba8481367322ec83a
parent24be19e47779d604d1492c114459dca9a92acf78
net/mlx4_en: Fix build break when CONFIG_INET is off

MLX4_EN depends on NETDEVICES, ETHERNET and INET Kconfigs.
Make sure they are listed in MLX4_EN Kconfig dependencies.

This fixes the following build break:

drivers/net/ethernet/mellanox/mlx4/en_rx.c:582:18: warning: ‘struct iphdr’ declared inside parameter list [enabled by default]
struct iphdr *iph)
^
drivers/net/ethernet/mellanox/mlx4/en_rx.c:582:18: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
drivers/net/ethernet/mellanox/mlx4/en_rx.c: In function ‘get_fixed_ipv4_csum’:
drivers/net/ethernet/mellanox/mlx4/en_rx.c:586:20: error: dereferencing pointer to incomplete type
_u8 ipproto = iph->protocol;

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/Kconfig