[NET]: Annotate skb_copy_and_csum_bits() and callers.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2bbbc86890
commit
81d7766276
2 changed files with 5 additions and 5 deletions
|
@ -1340,9 +1340,9 @@ extern int skb_copy_bits(const struct sk_buff *skb, int offset,
|
||||||
void *to, int len);
|
void *to, int len);
|
||||||
extern int skb_store_bits(const struct sk_buff *skb, int offset,
|
extern int skb_store_bits(const struct sk_buff *skb, int offset,
|
||||||
void *from, int len);
|
void *from, int len);
|
||||||
extern unsigned int skb_copy_and_csum_bits(const struct sk_buff *skb,
|
extern __wsum skb_copy_and_csum_bits(const struct sk_buff *skb,
|
||||||
int offset, u8 *to, int len,
|
int offset, u8 *to, int len,
|
||||||
unsigned int csum);
|
__wsum csum);
|
||||||
extern void skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to);
|
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);
|
||||||
|
|
|
@ -1315,8 +1315,8 @@ __wsum skb_checksum(const struct sk_buff *skb, int offset,
|
||||||
|
|
||||||
/* Both of above in one bottle. */
|
/* Both of above in one bottle. */
|
||||||
|
|
||||||
unsigned int skb_copy_and_csum_bits(const struct sk_buff *skb, int offset,
|
__wsum skb_copy_and_csum_bits(const struct sk_buff *skb, int offset,
|
||||||
u8 *to, int len, unsigned int csum)
|
u8 *to, int len, __wsum csum)
|
||||||
{
|
{
|
||||||
int start = skb_headlen(skb);
|
int start = skb_headlen(skb);
|
||||||
int i, copy = start - offset;
|
int i, copy = start - offset;
|
||||||
|
@ -1368,7 +1368,7 @@ unsigned int skb_copy_and_csum_bits(const struct sk_buff *skb, int offset,
|
||||||
struct sk_buff *list = skb_shinfo(skb)->frag_list;
|
struct sk_buff *list = skb_shinfo(skb)->frag_list;
|
||||||
|
|
||||||
for (; list; list = list->next) {
|
for (; list; list = list->next) {
|
||||||
unsigned int csum2;
|
__wsum csum2;
|
||||||
int end;
|
int end;
|
||||||
|
|
||||||
BUG_TRAP(start <= offset + len);
|
BUG_TRAP(start <= offset + len);
|
||||||
|
|
Loading…
Add table
Reference in a new issue