trace: Storage class should be before const qualifier
Subsystems (2)
PATCH 1/1 trace: Storage class should be before const qualifier
The C99 specification states in section 6.11.5:
The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature.
--- kernel/trace/trace_sysprof.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/trace/trace_sysprof.c +1 -1
@@ -88,7 +88,7 @@ static void backtrace_address(void *data, unsigned long addr, int reliable) } } -const static struct stacktrace_ops backtrace_ops = { +static const struct stacktrace_ops backtrace_ops = { .warning = backtrace_warning, .warning_symbol = backtrace_warning_symbol, .stack = backtrace_stack,
Signature · 1 line
1.5.6.5
Quoted 16 lines · Tobias Klauser
The C99 specification states in section 6.11.5:
The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature.
Signed-off-by Tobias Klauser <[email protected]>--- kernel/trace/trace_sysprof.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)kernel/trace/trace_sysprof.c +0
-0
kernel/trace/trace_sysprof.c static void backtrace_address(void *data, unsigned long addr, int reliable) · line 94
Quoted 8 lines
kernel/trace/trace_sysprof.c +1
-1@@ -88,7 +88,7 @@ static void backtrace_address(void *data, unsigned long addr, int reliable) } } -const static struct stacktrace_ops backtrace_ops = { +static const struct stacktrace_ops backtrace_ops = { .warning = backtrace_warning, .warning_symbol = backtrace_warning_symbol, .stack = backtrace_stack,
Steven, are you going to take this through wusb tree, or should I take it through trivial tree together with the rest of these patches? I don't seem to see this present in current -next.
Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs
Quoted 21 lines · Jiri Kosina
Quoted 19 lines · Tobias Klauser
The C99 specification states in section 6.11.5:
The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature.
Signed-off-by Tobias Klauser <[email protected]>--- kernel/trace/trace_sysprof.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)kernel/trace/trace_sysprof.c +0
-0@@ -88,7 +88,7 @@ static void backtrace_address(void *data, unsigned long addr, int reliable) } }
Quoted 9 lines
kernel/trace/trace_sysprof.c static void backtrace_address(void *data, unsigned long addr, int reliable) · line 94
Quoted 5 lines
kernel/trace/trace_sysprof.c +1
-1-const static struct stacktrace_ops backtrace_ops = { +static const struct stacktrace_ops backtrace_ops = { .warning = backtrace_warning, .warning_symbol = backtrace_warning_symbol, .stack = backtrace_stack,Steven, are you going to take this through wusb tree, or should I take it through trivial tree together with the rest of these patches? I don't seem to see this present in current -next.
Jiri, Ingo has it in his tip tree. I would expect that he'll be pushing it out soon.
Thanks,
-- Steve