tcp_probe: __attribute__ string location
Subsystems (3)
PATCH 1/1 tcp_probe: __attribute__ string location
From: Randy Dunlap <[email protected]>
gcc doesn't like the location of the __attribute__ string here:net/ipv4/tcp_probe.c:83: warning: empty declaration
so move it to before the function and all is well.
--- net/ipv4/tcp_probe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/ipv4/tcp_probe.c +2 -1
@@ -62,6 +62,7 @@ struct {* Print to log with timestamps. * FIXME: causes an extra copy */ +__attribute__ ((format (printf,1 ,2 )))static void printl (const char *fmt, ...) {va_list args;
@@ -80,7 +81,7 @@ static void printl(const char *fmt, ...)kfifo_put (tcpw.fifo, tbuf, len);wake_up (&tcpw.wait); -} __attribute__ ((format (printf, 1, 2))); +};/*
David Miller
maintainerFrom: Randy Dunlap <[email protected]>
Date: Tue, 5 Jun 2007 18:01:41 -0700
Quoted 8 lines
From: Randy Dunlap <[email protected]>
gcc doesn't like the location of the
__attribute__string here:net/ipv4/tcp_probe.c:83: warning: empty declarationso move it to before the function and all is well.
Signed-off-by Randy Dunlap <[email protected]>
Yeah I noticed this one too and a similar fix is in my net-2.6 GIT tree, but thanks anyways Randy.
Quoted 8 lines · David Miller
From: Randy Dunlap <[email protected]>
Date: Tue, 5 Jun 2007 18:01:41 -0700Quoted 5 lines
From: Randy Dunlap <[email protected]>
gcc doesn't like the location of the
__attribute__string here:net/ipv4/tcp_probe.c:83: warning: empty declaration
Quoted 6 lines
Quoted 3 lines
so move it to before the function and all is well.
Signed-off-by Randy Dunlap <[email protected]>Yeah I noticed this one too and a similar fix is in my net-2.6 GIT tree, but thanks anyways Randy.
I'm wondering if either of you can actually load tcp_probe at present. We had reports on dccp mailing list that dccp_probe and tcp_probe can't load at present and produce a back trace. It appears related to the jprobe stuff according to Arnaldo.
If the bug reporter or Arnaldo doesn't follow up on it I'll track it down a little more later and post to correct place.
I'll also copy this change across to DCCP at sometime as well as several others that we haven't transferred across as well.
Ian
Signature · 3 lines
Web: http://wand.net.nz/~iam4/ Blog: http://iansblog.jandi.co.nz WAND Network Research Group