trace2: fix hdr-check warnings
PATCH 1/1 trace2: fix hdr-check warnings
---
Hi Jeff,
If you need to re-roll your 'jh/trace2' branch, could you please squash this into the relevant patches (sorry, I didn't look to see which patches need to be modified).
Thanks!
ATB,
Ramsay Jones
trace2/tr2_tgt.h | 4 ++++ trace2/tr2_tls.h | 2 ++ 2 files changed, 6 insertions(+)
trace2/tr2_tgt.h +4 -0
@@ -1,6 +1,10 @@#ifndef TR2_TGT_H #define TR2_TGT_H +struct child_process ; +struct repository ; +struct json_writer ; +/* * Function prototypes for a TRACE2 "target" vtable. */
trace2/tr2_tls.h +2 -0
@@ -1,6 +1,8 @@#ifndef TR2_TLS_H #define TR2_TLS_H +#include "strbuf.h" +/* * Arbitry limit for thread names for column alignment. */
Signature · 1 line
2.20.0
Quoted 9 lines · Ramsay Jones
Signed-off-by Ramsay Jones <[email protected]>---
Hi Jeff,
If you need to re-roll your 'jh/trace2' branch, could you please squash this into the relevant patches (sorry, I didn't look to see which patches need to be modified).
Will do. Thanks.
BTW, how do you find these? I ran both "make sparse" and "make DEVELOPER=1" and it didn't complain about these items.
Jeff
Quoted 2 lines · Jeff Hostetler
BTW, how do you find these? I ran both "make sparse" and "make DEVELOPER=1" and it didn't complain about these items.
$ make hdr-check
available since ebb7baf02f ("Makefile: add a hdr-check target", 2018-09-19)
Carlo
Quoted 9 lines · Jeff Hostetler
Quoted 6 lines · Ramsay Jones
Signed-off-by Ramsay Jones <[email protected]>---
Hi Jeff,
Quoted 8 lines
Quoted 3 lines
If you need to re-roll your 'jh/trace2' branch, could you please squash this into the relevant patches (sorry, I didn't look to see which patches need to be modified).
Will do. Thanks.
BTW, how do you find these? I ran both "make sparse" and "make DEVELOPER=1" and it didn't complain about these items.
Carlo already replied about 'make hdr-check', but you seem to have missed squashing half of the original patch, since the re-rolled series still causes 'make -k hdr-check >phcout 2>&1' to show:
$ diff nhcout phcout 22a23,34
Quoted 7 lines
HDR
trace2/tr2_dst.h
HDRtrace2/tr2_cfg.h
HDRtrace2/tr2_tgt.h
HDRtrace2/tr2_cmd_name.h
HDRtrace2/tr2_sid.h
HDRtrace2/tr2_tls.htrace2/tr2_tls.h:12:16: error: field ‘thread_name’ has incomplete type
Quoted 5 lines
struct strbuf thread_name; ^~~~~~~~~~~Makefile:2739: recipe for target 'trace2/tr2_tls.hco' failed
make: *** [trace2/tr2_tls.hco] Error 1
HDRtrace2/tr2_tbuf.h
131c143
< Makefile:2725: recipe for target 'sha256/gcrypt.hco' failed
---
Quoted 1 line
Makefile:2739: recipe for target 'sha256/gcrypt.hco' failed
164a177
Quoted 1 line
HDR
trace2.h
$
So, quoting the last part of the original patch:
trace2/tr2_tls.h +2 -0
@@ -1,6 +1,8 @@#ifndef TR2_TLS_H #define TR2_TLS_H +#include "strbuf.h" +/* * Arbitry limit for thread names for column alignment. */
Signature · 2 lines
ATB, Ramsay Jones
Quoted 56 lines · Ramsay Jones
Quoted 9 lines · Jeff Hostetler
Quoted 6 lines · Ramsay Jones
Signed-off-by Ramsay Jones <[email protected]>---
Hi Jeff,
Quoted 8 lines
Quoted 3 lines
If you need to re-roll your 'jh/trace2' branch, could you please squash this into the relevant patches (sorry, I didn't look to see which patches need to be modified).
Will do. Thanks.
BTW, how do you find these? I ran both "make sparse" and "make DEVELOPER=1" and it didn't complain about these items.
Carlo already replied about 'make hdr-check', but you seem to have missed squashing half of the original patch, since the re-rolled series still causes 'make -k hdr-check >phcout 2>&1' to show:
$ diff nhcout phcout 22a23,34Quoted 7 lines
HDR
trace2/tr2_dst.h
HDRtrace2/tr2_cfg.h
HDRtrace2/tr2_tgt.h
HDRtrace2/tr2_cmd_name.h
HDRtrace2/tr2_sid.h
HDRtrace2/tr2_tls.htrace2/tr2_tls.h:12:16: error: field ‘thread_name’ has incomplete typeQuoted 5 lines
struct strbuf thread_name; ^~~~~~~~~~~Makefile:2739: recipe for target 'trace2/tr2_tls.hco' failed
make: *** [trace2/tr2_tls.hco] Error 1
HDRtrace2/tr2_tbuf.h131c143
< Makefile:2725: recipe for target 'sha256/gcrypt.hco' failed
---Quoted 1 line
Makefile:2739: recipe for target 'sha256/gcrypt.hco' failed
164a177
Quoted 1 line
HDR
trace2.h$
So, quoting the last part of the original patch:
trace2/tr2_tls.h +0
-0
trace2/tr2_tls.h line 8
Quoted 8 lines
trace2/tr2_tls.h +2
-0@@ -1,6 +1,8 @@#ifndef TR2_TLS_H #define TR2_TLS_H +#include "strbuf.h" +/* * Arbitry limit for thread names for column alignment. */
Yes, it appears I missed one. I'll add it if I re-roll this. (I hate to send a whole new version for one line.)
Thanks
Jeff