Skip to contentSkip to conversation

trace: Storage class should be before const qualifier

PATCH In review Tobias Klauser 3 participants 3 messages Feb 9, 2009 – Feb 16, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index eaca5ad..1883221 100644
@@ -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
#1 lore raw
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.

---
 kernel/trace/trace_sysprof.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/trace/trace_sysprof.c +0 -0
index eaca5ad..1883221 100644

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
#2 lore raw
In reply to Tobias Klauser
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.

---
 kernel/trace/trace_sysprof.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/trace/trace_sysprof.c +0 -0
index eaca5ad..1883221 100644
@@ -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