[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181030.111924.2171118850630801686.davem@davemloft.net>
Date: Tue, 30 Oct 2018 11:19:24 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: edumazet@...gle.com
Cc: netdev@...r.kernel.org, tariqt@...lanox.com,
abdhalee@...ux.vnet.ibm.com, eric.dumazet@...il.com
Subject: Re: [PATCH net] net/mlx4_en: add a missing <net/ip.h> include
From: Eric Dumazet <edumazet@...gle.com>
Date: Tue, 30 Oct 2018 00:18:12 -0700
> 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;
> ^
>
> Fixes: 55469bc6b577 ("drivers: net: remove <net/busy_poll.h> inclusion when not needed")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> Reported-by: Abdul Haleem <abdhalee@...ux.vnet.ibm.com>
Applied, thanks Eric.
Powered by blists - more mailing lists