diff options
author | Arnd Bergmann <[email protected]> | 2017-10-18 10:33:37 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-10-20 08:36:00 +0100 |
commit | d18b4b35e310c5e30a3726309a93db8893cd3251 (patch) | |
tree | 0bab5ed17c0498650927d305914085befe5ebbb8 /net/unix/af_unix.c | |
parent | c75e427d9349ec3e0059752cc784e1c301474c2d (diff) |
net: sched: cls_u32: use hash_ptr() for tc_u_hash
After the change to the tp hash, we now get a build warning
on 32-bit architectures:
net/sched/cls_u32.c: In function 'tc_u_hash':
net/sched/cls_u32.c:338:17: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
return hash_64((u64) tp->chain->block, U32_HASH_SHIFT);
Using hash_ptr() instead of hash_64() lets us drop the cast
and fixes the warning while still resulting in the same hash
value.
Fixes: 7fa9d974f3c2 ("net: sched: cls_u32: use block instead of q in tc_u_common")
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions