]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: incorrect gfp_t conversion
authorVasily Averin <vvs@openvz.org>
Fri, 13 May 2022 03:23:08 +0000 (20:23 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:18 +0000 (07:20 -0700)
commitc266bf768c4bc694941d68a3533359176b8f07f3
tree1bc1eaf3f2a2e4319a1dea4f5fb49f3fb498977b
parentff6529957f86fb362e10c9f3e99eb2ed746f459e
tracing: incorrect gfp_t conversion

Fixes the following sparse warnings:

include/trace/events/*: sparse: cast to restricted gfp_t
include/trace/events/*: sparse: restricted gfp_t degrades to integer

gfp_t type is bitwise and requires __force attributes for any casts.

Link: https://lkml.kernel.org/r/331d88fe-f4f7-657c-02a2-d977f15fbff6@openvz.org
Signed-off-by: Vasily Averin <vvs@openvz.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/gfp.h
include/trace/events/btrfs.h
include/trace/events/compaction.h
include/trace/events/kmem.h
include/trace/events/mmflags.h
include/trace/events/vmscan.h
mm/compaction.c