Skip to content

Commit e5c3f61

Browse files
Vasily Averinakpm00
authored andcommitted
include/trace/events/percpu.h: cleanup for "percpu: improve percpu_alloc_percpu event trace"
Fix sparse warning about incorrect gfp_t cast. Link: https://lkml.kernel.org/r/001979f3-e978-0998-cbed-61a4a2ac87b8@openvz.org Fixes: f67bed1 ("percpu: improve percpu_alloc_percpu event trace") Signed-off-by: Vasily Averin <vvs@openvz.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 185194f commit e5c3f61

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/trace/events/percpu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ TRACE_EVENT(percpu_alloc_percpu,
2828
__field( int, off )
2929
__field( void __percpu *, ptr )
3030
__field( size_t, bytes_alloc )
31-
__field( gfp_t, gfp_flags )
31+
__field( unsigned long, gfp_flags )
3232
),
3333
TP_fast_assign(
3434
__entry->call_site = call_site;
@@ -40,7 +40,7 @@ TRACE_EVENT(percpu_alloc_percpu,
4040
__entry->off = off;
4141
__entry->ptr = ptr;
4242
__entry->bytes_alloc = bytes_alloc;
43-
__entry->gfp_flags = gfp_flags;
43+
__entry->gfp_flags = (__force unsigned long)gfp_flags;
4444
),
4545

4646
TP_printk("call_site=%pS reserved=%d is_atomic=%d size=%zu align=%zu base_addr=%p off=%d ptr=%p bytes_alloc=%zu gfp_flags=%s",

0 commit comments

Comments
 (0)