diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-06-29 16:02:35 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-29 19:58:30 -0400 |
commit | 5bba17127e7c78e819560519449db237e1b0f99b (patch) | |
tree | e2a0700004fd8a0ae56cfbe54ed952c73bfef3bf | |
parent | c22751b73a3770b3046102bb97b139218ff1875b (diff) |
[NET]: make skb_release_data() static
skb_release_data() no longer has any users in other files.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/x86_64/kernel/functionlist | 1 | ||||
-rw-r--r-- | include/linux/skbuff.h | 1 | ||||
-rw-r--r-- | net/core/skbuff.c | 2 |
3 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86_64/kernel/functionlist b/arch/x86_64/kernel/functionlist index 2bcebdc3eedb..01fa23580c85 100644 --- a/arch/x86_64/kernel/functionlist +++ b/arch/x86_64/kernel/functionlist | |||
@@ -384,7 +384,6 @@ | |||
384 | *(.text.__end_that_request_first) | 384 | *(.text.__end_that_request_first) |
385 | *(.text.wake_up_bit) | 385 | *(.text.wake_up_bit) |
386 | *(.text.unuse_mm) | 386 | *(.text.unuse_mm) |
387 | *(.text.skb_release_data) | ||
388 | *(.text.shrink_icache_memory) | 387 | *(.text.shrink_icache_memory) |
389 | *(.text.sched_balance_self) | 388 | *(.text.sched_balance_self) |
390 | *(.text.__pmd_alloc) | 389 | *(.text.__pmd_alloc) |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index e74c294929a0..59918be91d0a 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -1304,7 +1304,6 @@ extern void skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to); | |||
1304 | extern void skb_split(struct sk_buff *skb, | 1304 | extern void skb_split(struct sk_buff *skb, |
1305 | struct sk_buff *skb1, const u32 len); | 1305 | struct sk_buff *skb1, const u32 len); |
1306 | 1306 | ||
1307 | extern void skb_release_data(struct sk_buff *skb); | ||
1308 | extern struct sk_buff *skb_segment(struct sk_buff *skb, int features); | 1307 | extern struct sk_buff *skb_segment(struct sk_buff *skb, int features); |
1309 | 1308 | ||
1310 | static inline void *skb_header_pointer(const struct sk_buff *skb, int offset, | 1309 | static inline void *skb_header_pointer(const struct sk_buff *skb, int offset, |
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index dfef9eece83e..a1c9ecf4f1e0 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -272,7 +272,7 @@ static void skb_clone_fraglist(struct sk_buff *skb) | |||
272 | skb_get(list); | 272 | skb_get(list); |
273 | } | 273 | } |
274 | 274 | ||
275 | void skb_release_data(struct sk_buff *skb) | 275 | static void skb_release_data(struct sk_buff *skb) |
276 | { | 276 | { |
277 | if (!skb->cloned || | 277 | if (!skb->cloned || |
278 | !atomic_sub_return(skb->nohdr ? (1 << SKB_DATAREF_SHIFT) + 1 : 1, | 278 | !atomic_sub_return(skb->nohdr ? (1 << SKB_DATAREF_SHIFT) + 1 : 1, |