mfd: wm8350-i2c: Make sure the i2c regmap functions are compiled
[linux/fpc-iii.git] / include / net / netns / hash.h
blobc06ac58ca107c1a11f9d3a479efe86fe3cc9a4dc
1 #ifndef __NET_NS_HASH_H__
2 #define __NET_NS_HASH_H__
4 #include <asm/cache.h>
6 struct net;
8 static inline unsigned int net_hash_mix(struct net *net)
10 #ifdef CONFIG_NET_NS
12 * shift this right to eliminate bits, that are
13 * always zeroed
16 return (unsigned)(((unsigned long)net) >> L1_CACHE_SHIFT);
17 #else
18 return 0;
19 #endif
21 #endif