]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: cls_u32: use hash_ptr() for tc_u_hash
authorArnd Bergmann <arnd@arndb.de>
Wed, 18 Oct 2017 08:33:37 +0000 (10:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2017 07:36:00 +0000 (08:36 +0100)
commit9d578dc4d7793966059ad4dd0058375fe44a43fb
tree0bab5ed17c0498650927d305914085befe5ebbb8
parent7a2f2e21941c9ae528e12593bdbda2ae51e77e96
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: 21e05af7079b ("net: sched: cls_u32: use block instead of q in tc_u_common")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_u32.c