]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Simplify the dyn_ftrace->flags macro
authorWei Yang <richard.weiyang@linux.alibaba.com>
Mon, 31 Aug 2020 03:11:01 +0000 (11:11 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 8 Oct 2020 19:29:06 +0000 (15:29 -0400)
commit3303b6e28c65ef1451ecf415c91137b8075ff163
tree77bd99fb25e86fa13eb2e913f6ec75407195963f
parent86fc4ac5499e511a2a852a1b1e1e3d0fff6d4956
ftrace: Simplify the dyn_ftrace->flags macro

All the three macro are defined to be used for ftrace_rec_count(). This
can be achieved by (flags & FTRACE_REF_MAX) directly.

Since no other places would use those macros, remove them for clarity.

Also it fixes a typo in the comment.

Link: https://lkml.kernel.org/r/20200831031104.23322-4-richard.weiyang@linux.alibaba.com
Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/ftrace.h