瀏覽代碼

[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>
Adrian Bunk 19 年之前
父節點
當前提交
5bba17127e
共有 3 個文件被更改,包括 1 次插入3 次删除
  1. 0 1
      arch/x86_64/kernel/functionlist
  2. 0 1
      include/linux/skbuff.h
  3. 1 1
      net/core/skbuff.c

+ 0 - 1
arch/x86_64/kernel/functionlist

@@ -384,7 +384,6 @@
 *(.text.__end_that_request_first)
 *(.text.__end_that_request_first)
 *(.text.wake_up_bit)
 *(.text.wake_up_bit)
 *(.text.unuse_mm)
 *(.text.unuse_mm)
-*(.text.skb_release_data)
 *(.text.shrink_icache_memory)
 *(.text.shrink_icache_memory)
 *(.text.sched_balance_self)
 *(.text.sched_balance_self)
 *(.text.__pmd_alloc)
 *(.text.__pmd_alloc)

+ 0 - 1
include/linux/skbuff.h

@@ -1304,7 +1304,6 @@ extern void	       skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to);
 extern void	       skb_split(struct sk_buff *skb,
 extern void	       skb_split(struct sk_buff *skb,
 				 struct sk_buff *skb1, const u32 len);
 				 struct sk_buff *skb1, const u32 len);
 
 
-extern void	       skb_release_data(struct sk_buff *skb);
 extern struct sk_buff *skb_segment(struct sk_buff *skb, int features);
 extern struct sk_buff *skb_segment(struct sk_buff *skb, int features);
 
 
 static inline void *skb_header_pointer(const struct sk_buff *skb, int offset,
 static inline void *skb_header_pointer(const struct sk_buff *skb, int offset,

+ 1 - 1
net/core/skbuff.c

@@ -272,7 +272,7 @@ static void skb_clone_fraglist(struct sk_buff *skb)
 		skb_get(list);
 		skb_get(list);
 }
 }
 
 
-void skb_release_data(struct sk_buff *skb)
+static void skb_release_data(struct sk_buff *skb)
 {
 {
 	if (!skb->cloned ||
 	if (!skb->cloned ||
 	    !atomic_sub_return(skb->nohdr ? (1 << SKB_DATAREF_SHIFT) + 1 : 1,
 	    !atomic_sub_return(skb->nohdr ? (1 << SKB_DATAREF_SHIFT) + 1 : 1,