diff --git a/src/include/sof/trace/preproc.h b/src/include/sof/trace/preproc.h index 17a7994fc..acc200862 100644 --- a/src/include/sof/trace/preproc.h +++ b/src/include/sof/trace/preproc.h @@ -158,7 +158,7 @@ return_t META_CONCAT(prefix, postfix) (args) /* counteract compiler warning about unused variables */ -#define UNUSED(arg1, ...) do { META_RECURSE( \ +#define SOF_TRACE_UNUSED(arg1, ...) do { META_RECURSE( \ META_MAP_AGGREGATE(1, _META_VOID2, _META_VOID(arg1), __VA_ARGS__)); \ } while (0) diff --git a/src/include/sof/trace/trace.h b/src/include/sof/trace/trace.h index 737f9913c..d1beb48d8 100644 --- a/src/include/sof/trace/trace.h +++ b/src/include/sof/trace/trace.h @@ -93,7 +93,7 @@ static inline struct trace *trace_get(void) /* Silences compiler warnings about unused variables */ #define trace_unused(class, ctx, id_1, id_2, format, ...) \ - UNUSED(ctx, id_1, id_2, ##__VA_ARGS__) + SOF_TRACE_UNUSED(ctx, id_1, id_2, ##__VA_ARGS__) struct trace_filter { uint32_t uuid_id; /**< type id, or 0 when not important */