mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[NET]: Annotate csum_partial() callers in net/*
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
868c86bcb5
commit
44bb93633f
6 changed files with 11 additions and 10 deletions
|
@ -151,8 +151,9 @@ static inline void unix_set_secdata(struct scm_cookie *scm, struct sk_buff *skb)
|
|||
* each socket state is protected by separate rwlock.
|
||||
*/
|
||||
|
||||
static inline unsigned unix_hash_fold(unsigned hash)
|
||||
static inline unsigned unix_hash_fold(__wsum n)
|
||||
{
|
||||
unsigned hash = (__force unsigned)n;
|
||||
hash ^= hash>>16;
|
||||
hash ^= hash>>8;
|
||||
return hash&(UNIX_HASH_SIZE-1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue