[2.6 patch] make net/core/skbuff.c:skb_release_data() static

From: Adrian Bunk
Date: Fri Jun 23 2006 - 06:57:24 EST


skb_release_data() no longer has any users in other files.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---

include/linux/skbuff.h | 2 --
net/core/skbuff.c | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)

--- linux-2.6.17-mm1-full/include/linux/skbuff.h.old 2006-06-23 00:45:40.000000000 +0200
+++ linux-2.6.17-mm1-full/include/linux/skbuff.h 2006-06-23 00:46:37.000000000 +0200
@@ -1289,8 +1289,6 @@
extern void skb_split(struct sk_buff *skb,
struct sk_buff *skb1, const u32 len);

-extern void skb_release_data(struct sk_buff *skb);
-
static inline void *skb_header_pointer(const struct sk_buff *skb, int offset,
int len, void *buffer)
{
--- linux-2.6.17-mm1-full/net/core/skbuff.c.old 2006-06-23 00:46:44.000000000 +0200
+++ linux-2.6.17-mm1-full/net/core/skbuff.c 2006-06-23 00:46:50.000000000 +0200
@@ -292,7 +292,7 @@
skb_get(list);
}

-void skb_release_data(struct sk_buff *skb)
+static void skb_release_data(struct sk_buff *skb)
{
if (!skb->cloned ||
!atomic_sub_return(skb->nohdr ? (1 << SKB_DATAREF_SHIFT) + 1 : 1,

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/