Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp796370pxf; Thu, 18 Mar 2021 11:44:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwAmuHe3gvJUGL5JH/f9b5EpnHYSN6ZbtQHgKNYqCcaZN93Q3LiNPI+c43zMWY7aGgHt/l X-Received: by 2002:a17:906:74c4:: with SMTP id z4mr22117198ejl.512.1616093073436; Thu, 18 Mar 2021 11:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616093073; cv=none; d=google.com; s=arc-20160816; b=AuQcffmaSk4aPaz03mBFuH5I8Er3KtDg0wRnmNGMqc/kU/u07dX1OW9iMAFv4CnvaN KSKHaFyp1gNRD1P6Syq1FW51PRZmDJSGSwMxopyzAPi50dSwsgUMbzhtWS6lo5s5gAym hJ4rDGdFm8eaFlwdySl241Q6t6u3kMQF6x86eUlCrSE42mqVRqpSXUQGQoUDf/rQaObo OlNz5iRTcZJPBJv/o074KFC6hnY2RnaYuWzniBCXVhY69fd8gTjg04qUIrBl4yeRSSsj pQKQsIqOyUs4XO+kO+iXL/0BBa4uLWM9uF783QxAEGEcXy4awz1dOCfx6C4chkiWPpGw fp4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=uga/a2V2PAZhoIbIvMFpYDGIy1+3tARpQIkiT76KT3w=; b=BA8zzDncicnZe7DsYM7PGDJSzqCu28rVIUkTFpCHjYGhaQdZHwbcc3Yr30NzdBZQVT zbyG+UM8cd79uXxk4r7EZP+MLTv7QG/q8Yb05374N56y4qGHRtv0nat0m3oF/4IZjg/8 aIVRHN+uHHxKIbwM4p/XxzYAjXtX5AT9OuSRK5LpS2NaEfgYk6HC8aF2hVUvOHopenhn fSPVF3qPH6+LtPegYem2c+PbUwEUv2UhRJKnjeY3Gui2zXIbR+y+0OzThjfYWIU4WjUx EdHqnUYt3sThMInhvJlAzNrrMqWslKMRmjA+/L4eDbPlhM+qeYBBjtjBrm0uDAg9s039 Zb9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=g+3uQ5rb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g4si2180643ejp.171.2021.03.18.11.44.11; Thu, 18 Mar 2021 11:44:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=g+3uQ5rb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232740AbhCRSmp (ORCPT + 99 others); Thu, 18 Mar 2021 14:42:45 -0400 Received: from mail-40133.protonmail.ch ([185.70.40.133]:22084 "EHLO mail-40133.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232675AbhCRSmg (ORCPT ); Thu, 18 Mar 2021 14:42:36 -0400 Date: Thu, 18 Mar 2021 18:42:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1616092954; bh=uga/a2V2PAZhoIbIvMFpYDGIy1+3tARpQIkiT76KT3w=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=g+3uQ5rbOLP8AEv2fyaFf/ESl7FCCuqGZ4kYFQ5fg7g6BHeobyHW4uYMyLMPrFwT8 93lfmMvjWSm4Iij/A+3wYYovZDDdEkurVnsdWd6yCqK3gSX5iNfRAmQxXt4E4v2LtT 5901nfIkdM6UmnxfI8pDeGtOfnGl84JMVQLh6ka2uqvo+SzvCQYa6gwpQB9v2Lr3ah zLa3mb5+NrEkW3IqGvJQbqSP05UnuSnJyGbZbTkAjGJA5xiyjaFY5vs9pxGwggyUJR r6FSgbcTPY7HZ/GDWnLoChC6TRgtofpGmt8t1eMrrprRTXVF0vOgshekcKGhpjPxz6 vBDiHSI7DWZmg== To: "David S. Miller" , Jakub Kicinski From: Alexander Lobakin Cc: Alexander Lobakin , Mauro Carvalho Chehab , Kirill Tkhai , Bartosz Golaszewski , Leon Romanovsky , Eric Dumazet , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH net-next 1/4] gro: make net/gro.h self-contained Message-ID: <20210318184157.700604-2-alobakin@pm.me> In-Reply-To: <20210318184157.700604-1-alobakin@pm.me> References: <20210318184157.700604-1-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If some source file includes , but doesn't include : In file included from net/8021q/vlan_core.c:7: ./include/net/gro.h:6:1: warning: data definition has no type or storage cl= ass 6 | INDIRECT_CALLABLE_DECLARE(struct sk_buff *ipv6_gro_receive(struct l= ist_head *, | ^~~~~~~~~~~~~~~~~~~~~~~~~ ./include/net/gro.h:6:1: error: type defaults to =E2=80=98int=E2=80=99 in d= eclaration of =E2=80=98INDIRECT_CALLABLE_DECLARE=E2=80=99 [-Werror=3Dimplic= it-int] [...] Include directly. It's small and won't pull lots of dependencies. Also add some incomplete struct declarations to be fully stacked. Fixes: 04f00ab2275f ("net/core: move gro function declarations to separate = header ") Signed-off-by: Alexander Lobakin --- include/net/gro.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/net/gro.h b/include/net/gro.h index 8a6eb5303cc4..27c38b36df16 100644 --- a/include/net/gro.h +++ b/include/net/gro.h @@ -3,6 +3,11 @@ #ifndef _NET_IPV6_GRO_H #define _NET_IPV6_GRO_H +#include + +struct list_head; +struct sk_buff; + INDIRECT_CALLABLE_DECLARE(struct sk_buff *ipv6_gro_receive(struct list_hea= d *, =09=09=09=09=09=09=09 struct sk_buff *)); INDIRECT_CALLABLE_DECLARE(int ipv6_gro_complete(struct sk_buff *, int)); -- 2.31.0