2002-10-31 06:07:47

by Randy.Dunlap

[permalink] [raw]
Subject: 2.5.45 net: warning + patch

gcc -Wp,-MD,net/sunrpc/.clnt.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686 -Iarch/i386/mach-generic -nostdinc -iwithprefix include
-DKBUILD_BASENAME=clnt -c -o net/sunrpc/clnt.o net/sunrpc/clnt.c
net/ipv4/route.c: In function `ip_rt_init':
net/ipv4/route.c:2544: warning: implicit declaration of function
`xfrm_init'

and one patch is:

--- ./include/net/xfrm.h%syntax Wed Oct 30 16:42:22 2002
+++ ./include/net/xfrm.h Wed Oct 30 20:58:29 2002
@@ -384,3 +384,4 @@
extern int km_query(struct xfrm_state *x);

extern int ah4_init(void);
+extern void xfrm_init(void);
--- ./net/ipv4/route.c%syntax Wed Oct 30 16:43:45 2002
+++ ./net/ipv4/route.c Wed Oct 30 21:08:52 2002
@@ -94,6 +94,7 @@
#include <net/arp.h>
#include <net/tcp.h>
#include <net/icmp.h>
+#include <net/xfrm.h>
#ifdef CONFIG_SYSCTL
#include <linux/sysctl.h>
#endif


~Randy