Re: [PATCH v2 1/2] share nvme trace event helper functions with multiple nvme modules

2018-12-16 Thread Christoph Hellwig
On Sat, Dec 15, 2018 at 05:48:48PM -0800, yupeng wrote: > The trace.c could only be used by core.c, move it to a header file and > then other nvme modules could also use it. This commit creates a new > header file trace_common.h, which has all the functions of trace.c. It > changes all functions to

[PATCH v2 1/2] share nvme trace event helper functions with multiple nvme modules

2018-12-15 Thread yupeng
The trace.c could only be used by core.c, move it to a header file and then other nvme modules could also use it. This commit creates a new header file trace_common.h, which has all the functions of trace.c. It changes all functions to static functions, so any other modules could include it without