net/mlx4_en: add a missing <net/ip.h> include
Subsystems (4)
PATCH 1/1 net/mlx4_en: add a missing <net/ip.h> include
Abdul Haleem reported a build error on ppc :
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;
^--- drivers/net/ethernet/mellanox/mlx4/en_rx.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/mellanox/mlx4/en_rx.c +1 -0
@@ -43,6 +43,7 @@#include <linux/vmalloc.h> #include <linux/irq.h> +#include <net/ip.h> #if IS_ENABLED (CONFIG_IPV6 )#include <net/ip6_checksum.h> #endif
Signature · 1 line
2.19.1.568.g152ad8e336-goog
From: Eric Dumazet <[email protected]>
Date: Tue, 30 Oct 2018 00:18:12 -0700
Quoted 13 lines
Abdul Haleem reported a build error on ppc :
drivers/net/ethernet/mellanox/mlx4/en_rx.c:582:18: warning:struct iphdrdeclared 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 functionget_fixed_ipv4_csum:drivers/net/ethernet/mellanox/mlx4/en_rx.c:586:20: error: dereferencing pointer to incomplete type
Quoted 6 lines
__u8 ipproto = iph->protocol; ^Fixes 55469bc6b577 ("drivers: net: remove <net/busy_poll.h> inclusion when not needed")Signed-off-by Eric Dumazet <[email protected]>Reported-by Abdul Haleem <[email protected]>
Applied, thanks Eric.
Quoted 19 lines · David Miller
From: Eric Dumazet <[email protected]>
Date: Tue, 30 Oct 2018 00:18:12 -0700Quoted 16 lines
Abdul Haleem reported a build error on ppc :
drivers/net/ethernet/mellanox/mlx4/en_rx.c:582:18: warning:struct iphdrdeclared 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 functionget_fixed_ipv4_csum:drivers/net/ethernet/mellanox/mlx4/en_rx.c:586:20: error: dereferencing pointer to incomplete type__u8 ipproto = iph->protocol; ^
Quoted 6 lines
Quoted 3 lines
Fixes 55469bc6b577 ("drivers: net: remove <net/busy_poll.h> inclusion when not needed")Signed-off-by Eric Dumazet <[email protected]>Reported-by Abdul Haleem <[email protected]>Applied, thanks Eric.
Thanks for the report, Abdul Haleem.
Thanks for your patch, Eric.
Regards,
Tariq
Quoted 28 lines · Eric Dumazet
Abdul Haleem reported a build error on ppc :
drivers/net/ethernet/mellanox/mlx4/en_rx.c:582:18: warning:struct iphdrdeclared 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 functionget_fixed_ipv4_csum:drivers/net/ethernet/mellanox/mlx4/en_rx.c:586:20: error: dereferencing pointer to incomplete type__u8 ipproto = iph->protocol; ^Fixes 55469bc6b577 ("drivers: net: remove <net/busy_poll.h> inclusion when not needed")Signed-off-by Eric Dumazet <[email protected]>Reported-by Abdul Haleem <[email protected]>--- drivers/net/ethernet/mellanox/mlx4/en_rx.c | 1 + 1 file changed, 1 insertion(+)drivers/net/ethernet/mellanox/mlx4/en_rx.c +0
-0
drivers/net/ethernet/mellanox/mlx4/en_rx.c line 49
Quoted 7 lines
drivers/net/ethernet/mellanox/mlx4/en_rx.c +1
-0@@ -43,6 +43,7 @@#include <linux/vmalloc.h> #include <linux/irq.h> +#include <net/ip.h> #if IS_ENABLED (CONFIG_IPV6 )#include <net/ip6_checksum.h> #endif
Signature · 4 lines
Regard's Abdul Haleem IBM Linux Technology Centre