Re: [PATCH] bpf: avoid warning for wrong pointer cast

2016-04-19 Thread Alexei Starovoitov
On 4/19/16 3:09 AM, Philip Li wrote: On Tue, Apr 19, 2016 at 10:33:34AM +0800, Fengguang Wu wrote: Fengguang, any idea why build-bot sometimes silent? Sorry I went off for some time.. Philip, would you help have a check? Hi Alexei, i have done some investigation for this. Fengguang, pls

Re: [PATCH] bpf: avoid warning for wrong pointer cast

2016-04-19 Thread Philip Li
On Tue, Apr 19, 2016 at 10:33:34AM +0800, Fengguang Wu wrote: > Hi Alexei, > > On Sat, Apr 16, 2016 at 05:47:42PM -0700, Alexei Starovoitov wrote: > > On Sat, Apr 16, 2016 at 10:29:33PM +0200, Arnd Bergmann wrote: > > > Two new functions in bpf contain a cast from a 'u64' to a > > > pointer. This

Re: [PATCH] bpf: avoid warning for wrong pointer cast

2016-04-18 Thread Fengguang Wu
Hi Alexei, On Sat, Apr 16, 2016 at 05:47:42PM -0700, Alexei Starovoitov wrote: > On Sat, Apr 16, 2016 at 10:29:33PM +0200, Arnd Bergmann wrote: > > Two new functions in bpf contain a cast from a 'u64' to a > > pointer. This works on 64-bit architectures but causes a warning > > on all 32-bit

Re: [PATCH] bpf: avoid warning for wrong pointer cast

2016-04-17 Thread David Miller
From: Arnd Bergmann Date: Sat, 16 Apr 2016 22:29:33 +0200 > Two new functions in bpf contain a cast from a 'u64' to a > pointer. This works on 64-bit architectures but causes a warning > on all 32-bit architectures: > > kernel/trace/bpf_trace.c: In function

Re: [PATCH] bpf: avoid warning for wrong pointer cast

2016-04-16 Thread Alexei Starovoitov
On Sat, Apr 16, 2016 at 10:29:33PM +0200, Arnd Bergmann wrote: > Two new functions in bpf contain a cast from a 'u64' to a > pointer. This works on 64-bit architectures but causes a warning > on all 32-bit architectures: > > kernel/trace/bpf_trace.c: In function 'bpf_perf_event_output_tp': >

[PATCH] bpf: avoid warning for wrong pointer cast

2016-04-16 Thread Arnd Bergmann
Two new functions in bpf contain a cast from a 'u64' to a pointer. This works on 64-bit architectures but causes a warning on all 32-bit architectures: kernel/trace/bpf_trace.c: In function 'bpf_perf_event_output_tp': kernel/trace/bpf_trace.c:350:13: error: cast to pointer from integer of