diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-01-23 13:24:45 +0100 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-02-15 09:02:27 -0500 |
commit | eb583cd484f9a76c3716c0539bd06340943eeff9 (patch) | |
tree | e8c35b603ba02783ee14ec1bb0f7f2cddaa9db6c /kernel/trace | |
parent | 3821fd35b58dba449bd894014fbf4e1c43c9e951 (diff) |
tracing: Use modern function declaration
We get a lot of harmless warnings about this header file at W=1 level
because of an unusual function declaration:
kernel/trace/trace.h:766:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration]
This moves the inline statement where it normally belongs, avoiding the
warning.
Link: http://lkml.kernel.org/r/20170123122521.3389010-1-arnd@arndb.de
Fixes: 4046bf023b06 ("ftrace: Expose ftrace_hash_empty and ftrace_lookup_ip")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index d2d068b36341..ae1cce91fead 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -763,7 +763,7 @@ struct ftrace_hash { struct ftrace_func_entry * ftrace_lookup_ip(struct ftrace_hash *hash, unsigned long ip); -static bool __always_inline ftrace_hash_empty(struct ftrace_hash *hash) +static __always_inline bool ftrace_hash_empty(struct ftrace_hash *hash) { return !hash || !hash->count; } |