Skip to content

Commit 136b373

Browse files
plbossartbroonie
authored andcommitted
ASoC: SOF: Intel: move tracepoint creation
CREATE_TRACEPOINTS is supposed to be used once. To avoid modpost issues when creating modules, let's move the tracepoint creation in a single object file. Signed-off-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Bard Liao <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 0bfbe91 commit 136b373

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

sound/soc/sof/intel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ snd-sof-intel-hda-common-objs := hda.o hda-loader.o hda-stream.o hda-trace.o \
77
hda-dsp.o hda-ipc.o hda-ctrl.o hda-pcm.o \
88
hda-dai.o hda-dai-ops.o hda-bus.o \
99
hda-common-ops.o \
10-
telemetry.o
10+
telemetry.o tracepoints.o
1111

1212
snd-sof-intel-hda-mlink-objs := hda-mlink.o
1313

sound/soc/sof/intel/hda.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#include "../ipc4-topology.h"
3636
#include "hda.h"
3737

38-
#define CREATE_TRACE_POINTS
3938
#include <trace/events/sof_intel.h>
4039

4140
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA)

sound/soc/sof/intel/tracepoints.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
#define CREATE_TRACE_POINTS
3+
#include <trace/events/sof_intel.h>

0 commit comments

Comments
 (0)