Skip to content

Commit

Permalink
include/trace/events/percpu.h: cleanup for "percpu: improve percpu_al…
Browse files Browse the repository at this point in the history
…loc_percpu event trace"

Fix sparse warning about incorrect gfp_t cast.

Link: https://lkml.kernel.org/r/[email protected]
Fixes: f67bed1 ("percpu: improve percpu_alloc_percpu event trace")
Signed-off-by: Vasily Averin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
Vasily Averin authored and akpm00 committed May 25, 2022
1 parent 185194f commit e5c3f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/trace/events/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TRACE_EVENT(percpu_alloc_percpu,
__field( int, off )
__field( void __percpu *, ptr )
__field( size_t, bytes_alloc )
__field( gfp_t, gfp_flags )
__field( unsigned long, gfp_flags )
),
TP_fast_assign(
__entry->call_site = call_site;
Expand All @@ -40,7 +40,7 @@ TRACE_EVENT(percpu_alloc_percpu,
__entry->off = off;
__entry->ptr = ptr;
__entry->bytes_alloc = bytes_alloc;
__entry->gfp_flags = gfp_flags;
__entry->gfp_flags = (__force unsigned long)gfp_flags;
),

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",
Expand Down

0 comments on commit e5c3f61

Please sign in to comment.