From: Stephen Hemminger <shemminger@linux-foundation.org>
To: David Miller <davem@davemloft.net>
Cc: auke-jan.h.kok@intel.com, netdev@vger.kernel.org
Subject: [PATCH net-2.6.24] ip_gre: build fix
Date: Thu, 4 Oct 2007 17:47:38 -0700 [thread overview]
Message-ID: <20071004174738.00c64226@freepuppy.rosehill> (raw)
In-Reply-To: <20071004.151108.82373575.davem@davemloft.net>
IPGRE only uses header_ops in the case of CONFIG_NET_IPGRE_BROADCAST.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
--- a/net/ipv4/ip_gre.c 2007-10-04 17:40:34.000000000 -0700
+++ b/net/ipv4/ip_gre.c 2007-10-04 17:41:20.000000000 -0700
@@ -1092,6 +1092,10 @@ static int ipgre_header(struct sk_buff *
return -t->hlen;
}
+static const struct header_ops ipgre_header_ops = {
+ .create = ipgre_header,
+};
+
static int ipgre_open(struct net_device *dev)
{
struct ip_tunnel *t = netdev_priv(dev);
@@ -1131,10 +1135,6 @@ static int ipgre_close(struct net_device
#endif
-static const struct header_ops ipgre_header_ops = {
- .create = ipgre_header,
-};
-
static void ipgre_tunnel_setup(struct net_device *dev)
{
dev->uninit = ipgre_tunnel_uninit;
next prev parent reply other threads:[~2007-10-05 0:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-04 21:49 net-2.6.24 compile breakage: error: 'ipgre_header' undeclared Kok, Auke
2007-10-04 22:11 ` David Miller
2007-10-05 0:47 ` Stephen Hemminger [this message]
2007-10-05 0:54 ` [PATCH net-2.6.24] ip_gre: build fix David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071004174738.00c64226@freepuppy.rosehill \
--to=shemminger@linux-foundation.org \
--cc=auke-jan.h.kok@intel.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox