aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/skbuff.h4
-rw-r--r--net/core/skbuff.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index c413afbe0b9c..50f6f6a094cf 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1494,8 +1494,8 @@ extern __wsum skb_checksum(const struct sk_buff *skb, int offset,
1494 int len, __wsum csum); 1494 int len, __wsum csum);
1495extern int skb_copy_bits(const struct sk_buff *skb, int offset, 1495extern int skb_copy_bits(const struct sk_buff *skb, int offset,
1496 void *to, int len); 1496 void *to, int len);
1497extern int skb_store_bits(const struct sk_buff *skb, int offset, 1497extern int skb_store_bits(struct sk_buff *skb, int offset,
1498 void *from, int len); 1498 const void *from, int len);
1499extern __wsum skb_copy_and_csum_bits(const struct sk_buff *skb, 1499extern __wsum skb_copy_and_csum_bits(const struct sk_buff *skb,
1500 int offset, u8 *to, int len, 1500 int offset, u8 *to, int len,
1501 __wsum csum); 1501 __wsum csum);
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index c7a1b24b7374..6b50d58cce1e 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -1129,7 +1129,7 @@ fault:
1129 * traversing fragment lists and such. 1129 * traversing fragment lists and such.
1130 */ 1130 */
1131 1131
1132int skb_store_bits(const struct sk_buff *skb, int offset, void *from, int len) 1132int skb_store_bits(struct sk_buff *skb, int offset, const void *from, int len)
1133{ 1133{
1134 int i, copy; 1134 int i, copy;
1135 int start = skb_headlen(skb); 1135 int start = skb_headlen(skb);