From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Bunk Subject: [-mm patch] make net/core/skbuff.c:skb_over_panic() static Date: Fri, 17 Nov 2006 18:02:05 +0100 Message-ID: <20061117170205.GE31879@stusta.de> References: <20061114014125.dd315fff.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Return-path: Received: from emailhub.stusta.mhn.de ([141.84.69.5]:7954 "HELO mailout.stusta.mhn.de") by vger.kernel.org with SMTP id S933741AbWKQRCH (ORCPT ); Fri, 17 Nov 2006 12:02:07 -0500 To: Andrew Morton Content-Disposition: inline In-Reply-To: <20061114014125.dd315fff.akpm@osdl.org> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org skb_over_panic() can now become static. Signed-off-by: Adrian Bunk --- Note: This patch depends on net-uninline-skb_put.patch. include/linux/skbuff.h | 2 -- net/core/skbuff.c | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) --- linux-2.6.19-rc5-mm2/include/linux/skbuff.h.old 2006-11-17 15:24:22.000000000 +0100 +++ linux-2.6.19-rc5-mm2/include/linux/skbuff.h 2006-11-17 15:24:31.000000000 +0100 @@ -364,8 +364,6 @@ extern struct sk_buff *skb_copy_expand(c gfp_t priority); extern int skb_pad(struct sk_buff *skb, int pad); #define dev_kfree_skb(a) kfree_skb(a) -extern void skb_over_panic(struct sk_buff *skb, int len, - void *here); extern void skb_under_panic(struct sk_buff *skb, int len, void *here); extern void skb_truesize_bug(struct sk_buff *skb); --- linux-2.6.19-rc5-mm2/net/core/skbuff.c.old 2006-11-17 15:24:38.000000000 +0100 +++ linux-2.6.19-rc5-mm2/net/core/skbuff.c 2006-11-17 15:25:09.000000000 +0100 @@ -84,7 +84,7 @@ static kmem_cache_t *skbuff_fclone_cache * * Out of line support code for skb_put(). Not user callable. */ -void skb_over_panic(struct sk_buff *skb, int sz, void *here) +static void skb_over_panic(struct sk_buff *skb, int sz, void *here) { printk(KERN_EMERG "skb_over_panic: text:%p len:%d put:%d head:%p " "data:%p tail:%p end:%p dev:%s\n", @@ -2094,7 +2094,6 @@ EXPORT_SYMBOL(skb_copy_and_csum_bits); EXPORT_SYMBOL(skb_copy_and_csum_dev); EXPORT_SYMBOL(skb_copy_bits); EXPORT_SYMBOL(skb_copy_expand); -EXPORT_SYMBOL(skb_over_panic); EXPORT_SYMBOL(skb_pad); EXPORT_SYMBOL(skb_realloc_headroom); EXPORT_SYMBOL(skb_under_panic);