Skip to content

Commit eb583cd

Browse files
arndbrostedt
authored andcommitted
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: 4046bf0 ("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>
1 parent 3821fd3 commit eb583cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/trace/trace.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ struct ftrace_hash {
763763
struct ftrace_func_entry *
764764
ftrace_lookup_ip(struct ftrace_hash *hash, unsigned long ip);
765765

766-
static bool __always_inline ftrace_hash_empty(struct ftrace_hash *hash)
766+
static __always_inline bool ftrace_hash_empty(struct ftrace_hash *hash)
767767
{
768768
return !hash || !hash->count;
769769
}

0 commit comments

Comments
 (0)