]> asedeno.scripts.mit.edu Git - linux.git/commit
tracing: xen: Ordered comparison of function pointers
authorChangbin Du <changbin.du@gmail.com>
Sun, 12 Jan 2020 03:42:31 +0000 (11:42 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 14 Jan 2020 20:55:57 +0000 (15:55 -0500)
commitd0695e2351102affd8efae83989056bc4b275917
tree986f3e7ab653d857c92b92cb7d1e3f7ed63a8206
parentb3a987b0264d3ddbb24293ebff10eddfc472f653
tracing: xen: Ordered comparison of function pointers

Just as commit 0566e40ce7 ("tracing: initcall: Ordered comparison of
function pointers"), this patch fixes another remaining one in xen.h
found by clang-9.

In file included from arch/x86/xen/trace.c:21:
In file included from ./include/trace/events/xen.h:475:
In file included from ./include/trace/define_trace.h:102:
In file included from ./include/trace/trace_events.h:473:
./include/trace/events/xen.h:69:7: warning: ordered comparison of function \
pointers ('xen_mc_callback_fn_t' (aka 'void (*)(void *)') and 'xen_mc_callback_fn_t') [-Wordered-compare-function-pointers]
                    __field(xen_mc_callback_fn_t, fn)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/trace/trace_events.h:421:29: note: expanded from macro '__field'
                                ^
./include/trace/trace_events.h:407:6: note: expanded from macro '__field_ext'
                                 is_signed_type(type), filter_type);    \
                                 ^
./include/linux/trace_events.h:554:44: note: expanded from macro 'is_signed_type'
                                              ^

Fixes: c796f213a6934 ("xen/trace: add multicall tracing")
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/trace/events/xen.h