Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 10 Jul 2002 11:46:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 10 Jul 2002 11:46:02 -0400 Received: from d12lmsgate.de.ibm.com ([195.212.91.199]:30625 "EHLO d12lmsgate.de.ibm.com") by vger.kernel.org with ESMTP id ; Wed, 10 Jul 2002 11:46:01 -0400 Message-Id: <200207101548.g6AFmUg96842@d12relay01.de.ibm.com> From: Arnd Bergmann Subject: Re: [PATCH] 2.5.25 : tr_source_route fix To: Frank Davis , linux-kernel@vger.kernel.org, trivial@rustcorp.com.au Mail-Copies-To: arndb@de.ibm.com Date: Wed, 10 Jul 2002 19:48:39 +0200 References: Organization: IBM Deutschland Entwicklung GmbH User-Agent: KNode/0.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3045 Lines: 80 Frank Davis wrote: > Hello all, > The following patch fixes the below 'make bzImage' error. Please review > for inclusion. > --- net/802/tr.c.old Thu Jun 20 20:52:05 2002 > +++ net/802/tr.c Thu Jun 20 20:51:59 2002 make the patch one level higher, so it applies with '-p1', not '-p0'. > -static void tr_source_route(struct sk_buff *skb, struct trh_hdr *trh, struct net_device *dev); > +void tr_source_route(struct sk_buff *skb, struct trh_hdr *trh, struct net_device *dev); This declaration is not needed any more, since it now is in the header file. The other declaration in net/netsyms.c and net/llc/llc_mac.c should be removed as well. replacement patch follows. Arnd <>< diff -u -r1.1.1.1 trdevice.h --- a/include/linux/trdevice.h 2002/03/13 19:33:11 1.1.1.1 +++ b/include/linux/trdevice.h 2002/07/10 15:34:28 @@ -33,6 +33,9 @@ void *saddr, unsigned len); extern int tr_rebuild_header(struct sk_buff *skb); extern unsigned short tr_type_trans(struct sk_buff *skb, struct net_device *dev); +extern void tr_source_route(struct sk_buff *skb, + struct trh_hdr *trh, + struct net_device *dev); extern struct net_device *init_trdev(struct net_device *dev, int sizeof_priv); extern struct net_device *alloc_trdev(int sizeof_priv); extern int register_trdev(struct net_device *dev); diff -u -r1.6 netsyms.c --- a/net/netsyms.c 2002/06/25 09:36:58 1.6 +++ b/net/netsyms.c 2002/07/10 15:34:28 @@ -444,8 +444,6 @@ #endif /* CONFIG_INET */ #if defined(CONFIG_TR) && defined(CONFIG_LLC) -extern void tr_source_route(struct sk_buff *skb, struct trh_hdr *trh, - struct net_device *dev); EXPORT_SYMBOL(tr_source_route); EXPORT_SYMBOL(tr_type_trans); #endif diff -u -r1.3 tr.c --- a/net/802/tr.c 2002/05/27 12:33:18 1.3 +++ b/net/802/tr.c 2002/07/10 15:34:28 @@ -36,7 +36,6 @@ #include #include -static void tr_source_route(struct sk_buff *skb, struct trh_hdr *trh, struct net_device *dev); static void tr_add_rif_info(struct trh_hdr *trh, struct net_device *dev); static void rif_check_expire(unsigned long dummy); @@ -230,7 +229,7 @@ * We try to do source routing... */ -static void tr_source_route(struct sk_buff *skb,struct trh_hdr *trh,struct net_device *dev) +void tr_source_route(struct sk_buff *skb,struct trh_hdr *trh,struct net_device *dev) { int i, slack; unsigned int hash; diff -u -r1.1 llc_mac.c --- a/net/llc/llc_mac.c 2002/06/25 09:37:00 1.1 +++ b/net/llc/llc_mac.c 2002/07/10 15:34:29 @@ -25,10 +25,7 @@ #include #include #include -#ifdef CONFIG_TR -extern void tr_source_route(struct sk_buff *skb, struct trh_hdr *trh, - struct net_device *dev); -#endif + /* function prototypes */ static void fix_up_incoming_skb(struct sk_buff *skb); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/