On Tue, 11 Jun 2024 09:26:54 -0700
Bart Van Assche <bvanassche@xxxxxxx> wrote:
On 6/11/24 12:35 AM, Dongliang Cui wrote:
+#define IOPRIO_CLASS_STRINGS \
+ { IOPRIO_CLASS_NONE, "none" }, \
+ { IOPRIO_CLASS_RT, "rt" }, \
+ { IOPRIO_CLASS_BE, "be" }, \
+ { IOPRIO_CLASS_IDLE, "idle" }, \
+ { IOPRIO_CLASS_INVALID, "invalid"}
Shouldn't this array be defined in a C file instead of in a header file?
The way the TRACE_EVENT() macro works, this will not work in a C file.