[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:
@ -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);
|
||||
|
Reference in New Issue
Block a user