Re: [PATCH net-next] net: sched: cls_u32: use hash_ptr() for tc_u_hash

2017-10-20 Thread David Miller
From: Arnd Bergmann Date: Wed, 18 Oct 2017 10:33:37 +0200 > 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=poi

Re: [PATCH net-next] net: sched: cls_u32: use hash_ptr() for tc_u_hash

2017-10-18 Thread Jiri Pirko
Wed, Oct 18, 2017 at 10:33:37AM CEST, a...@arndb.de wrote: >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

[PATCH net-next] net: sched: cls_u32: use hash_ptr() for tc_u_hash

2017-10-18 Thread Arnd Bergmann
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_SHIF