public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Networking: ip_gre init corrected
@ 2002-06-08 19:46 Sam Ravnborg
  2002-06-09  0:03 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Sam Ravnborg @ 2002-06-08 19:46 UTC (permalink / raw)
  To: davem, ak, kuznet; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

Hi Networking Maintainers.

While playing around with kbuild I stumbled over this warning:
/net/ipv4/ip_gre.c:123: warning: initialization makes integer from pointer without a cast

Looking into the source it seemed that an init function was not properly
initialised, probarly due to added members in net_device.

Attached patch fixes this, but I did not know how to test it.

	Sam

[-- Attachment #2: ip_gre_init.patch --]
[-- Type: text/plain, Size: 1171 bytes --]

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.471   -> 1.472  
#	   net/ipv4/ip_gre.c	1.7     -> 1.8    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/06/08	sam@mars.ravnborg.org	1.472
# net/ipv4/ip_gre.c: Get rid of warning.
# _init function properly initialised.
# --------------------------------------------
#
diff -Nru a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c
--- a/net/ipv4/ip_gre.c	Sat Jun  8 21:37:51 2002
+++ b/net/ipv4/ip_gre.c	Sat Jun  8 21:37:51 2002
@@ -120,11 +120,13 @@
 static int ipgre_fb_tunnel_init(struct net_device *dev);
 
 static struct net_device ipgre_fb_tunnel_dev = {
-	"gre0", 0x0, 0x0, 0x0, 0x0, 0, 0, 0, 0, 0, NULL, ipgre_fb_tunnel_init,
+	name:	"gre0",
+	init: 	ipgre_fb_tunnel_init
 };
 
 static struct ip_tunnel ipgre_fb_tunnel = {
-	NULL, &ipgre_fb_tunnel_dev, {0, }, 0, 0, 0, 0, 0, 0, 0, {"gre0", }
+	dev:	&ipgre_fb_tunnel_dev,
+	parms: { name:"gre0"}
 };
 
 /* Tunnel hash table */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Networking: ip_gre init corrected
  2002-06-08 19:46 [PATCH] Networking: ip_gre init corrected Sam Ravnborg
@ 2002-06-09  0:03 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2002-06-09  0:03 UTC (permalink / raw)
  To: sam; +Cc: ak, kuznet, linux-kernel


Patch applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-09  0:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-08 19:46 [PATCH] Networking: ip_gre init corrected Sam Ravnborg
2002-06-09  0:03 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox