diff options
author | Wang Jingjin <wangjingjin1@huawei.com> | 2022-08-01 16:47:45 +0800 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-08-22 09:41:12 -0400 |
commit | 123d6455771ec577ce65f8d1bda548fb0eb7ef21 (patch) | |
tree | 18f963c88279a1792c7824d3315d20d461b6dcfd /fs/cifs/Makefile | |
parent | 1c23f9e627a7b412978b4e852793c5e3c3efc555 (diff) |
ftrace: Fix build warning for ops_references_rec() not used
The change that made IPMODIFY and DIRECT ops work together needed access
to the ops_references_ip() function, which it pulled out of the module
only code. But now if both CONFIG_MODULES and
CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS is not set, we get the below
warning:
‘ops_references_rec’ defined but not used.
Since ops_references_rec() only calls ops_references_ip() replace the
usage of ops_references_rec() with ops_references_ip() and encompass the
function with an #ifdef of DIRECT_CALLS || MODULES being defined.
Link: https://lkml.kernel.org/r/20220801084745.1187987-1-wangjingjin1@huawei.com
Fixes: 53cd885bc5c3 ("ftrace: Allow IPMODIFY and DIRECT ops on the same function")
Signed-off-by: Wang Jingjin <wangjingjin1@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'fs/cifs/Makefile')
0 files changed, 0 insertions, 0 deletions