From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] net/mlx4_en: add a missing include Date: Tue, 30 Oct 2018 11:19:24 -0700 (PDT) Message-ID: <20181030.111924.2171118850630801686.davem@davemloft.net> References: <20181030071812.152491-1-edumazet@google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, tariqt@mellanox.com, abdhalee@linux.vnet.ibm.com, eric.dumazet@gmail.com To: edumazet@google.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:58008 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726376AbeJaDN7 (ORCPT ); Tue, 30 Oct 2018 23:13:59 -0400 In-Reply-To: <20181030071812.152491-1-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet 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 inclusion when not needed") > Signed-off-by: Eric Dumazet > Reported-by: Abdul Haleem Applied, thanks Eric.