Skip to contentSkip to conversation

Remove unnecessary declarations from Documentation/accounting/getdelays.c

PATCH In review Anthony G. Basile 3 participants 3 messages Nov 24, 2012 – Nov 26, 2012 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unnecessary declarations from Documentation/accounting/getdelays.c

From: "Anthony G. Basile" <[email protected]>

stime and utime are declared __u64 but are never used. On a glibc system this is harmless lint, but on a uClibc system, because of the difference in they way header files stack, including stdio.h brings in time.h and this causes a name collision with stime. Since these are useless anyhow, we remove them.

---
 Documentation/accounting/getdelays.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
Documentation/accounting/getdelays.c +0 -1
index 6f706ac..f8ebcde 100644
@@ -51,7 +51,6 @@ int dbg;
 int print_delays;
 int print_io_accounting;
 int print_task_context_switch_counts;
-__u64 stime, utime;
 
 #define PRINTF(fmt, arg...) {			\
 	    if (dbg) {				\
Signature · 1 line
1.7.6.1
#1 lore raw
Quoted 19 lines · Anthony G. Basile

From: "Anthony G. Basile" <[email protected]>

stime and utime are declared __u64 but are never used. On a glibc system this is harmless lint, but on a uClibc system, because of the difference in they way header files stack, including stdio.h brings in time.h and this causes a name collision with stime. Since these are useless anyhow, we remove them.

---
 Documentation/accounting/getdelays.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
Documentation/accounting/getdelays.c +0 -0
index 6f706ac..f8ebcde 100644

Documentation/accounting/getdelays.c int dbg; · line 56

Quoted 7 lines
Documentation/accounting/getdelays.c +0 -1
@@ -51,7 +51,6 @@ int dbg;
 int print_delays;
 int print_io_accounting;
 int print_task_context_switch_counts;
-__u64 stime, utime;
 
 #define PRINTF(fmt, arg...) {			\
 	    if (dbg) {				\

Seems fine to me...

Signature · 3 lines
Jesper Juhl <[email protected]>       http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
#2 lore raw
In reply to Anthony G. Basile
Quoted 18 lines · Anthony G. Basile

From: "Anthony G. Basile" <[email protected]>

stime and utime are declared __u64 but are never used. On a glibc system this is harmless lint, but on a uClibc system, because of the difference in they way header files stack, including stdio.h brings in time.h and this causes a name collision with stime. Since these are useless anyhow, we remove them.

---
 Documentation/accounting/getdelays.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
Documentation/accounting/getdelays.c +0 -0
index 6f706ac..f8ebcde 100644

Documentation/accounting/getdelays.c int dbg; · line 54

Quoted 4 lines
Documentation/accounting/getdelays.c +0 -1
@@ -51,7 +51,6 @@ int dbg;
 int print_delays;
 int print_io_accounting;
 int print_task_context_switch_counts;
-__u64 stime, utime;

Taking this through trivial.git, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs