Rishabh Bhatnagar 0566e40ce7 tracing: initcall: Ordered comparison of function pointers
Using initcall_t in the __field macro generates the following warning
with clang version 6.0:

include/trace/events/initcall.h:34:3: warning: ordered comparison of
function pointers ('initcall_t' (aka 'int (*)(void)') and 'initcall_t')

__field macro expands to __field_ext macro which does is_signed_type
check on the type argument. Since initcall_t is defined as a function
pointer, using it as the type in the __field macro, leads to an ordered
comparison of function pointer warning, inside the check. Using
__field_struct macro avoids the issue.

Link: http://lkml.kernel.org/r/1524699755-29388-1-git-send-email-rishabhb@codeaurora.org

Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
[ Added comment to why we are using field_struct() ]
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2018-04-26 15:02:46 -04:00
..
2018-04-09 21:54:48 +01:00
2017-12-13 15:10:01 -05:00
2018-04-04 13:41:27 +01:00
2017-11-17 14:58:01 -08:00
2017-11-17 09:51:57 -08:00
2017-09-25 20:38:26 +02:00
2018-02-23 14:29:59 +00:00
2018-02-13 21:30:22 +01:00
2017-12-19 10:56:24 +01:00
2018-04-12 12:55:50 -07:00
2018-01-02 14:27:30 -05:00