ASoC: Intel: Remove unused sst_ipc_inbox_rdata tracepoint
PATCH 1/1 ASoC: Intel: Remove unused sst_ipc_inbox_rdata tracepoint
The sst_ipc_inbox_rdata tracepoint has had no callers since commit 970d299b0a0a ("ASoC: Intel: Remove unused code") removed the last one.
Tracepoints that are defined take up around 5K each, even if they are not used. Remove this unused tracepoint.
--- include/trace/events/intel-sst.h | 8 -------- 1 file changed, 8 deletions(-)
include/trace/events/intel-sst.h +0 -8
@@ -69,14 +69,6 @@ DECLARE_EVENT_CLASS(sst_ipc_mailbox, (unsigned int)__entry->offset, (unsigned int)__entry->val) ); -DEFINE_EVENT (sst_ipc_mailbox, sst_ipc_inbox_rdata, - - TP_PROTO(unsigned int offset, unsigned int val), - -TP_ARGS (offset, val) - -); - DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_inbox_wdata, TP_PROTO(unsigned int offset, unsigned int val),
Signature · 1 line
2.53.0
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] ASoC: Intel: incomplete removal of unused intel-sst.h tracepoint header --
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] ASoC: Intel: incomplete removal of unused intel-sst.h tracepoint header
--
commit 47a1bdb679fab28a368c73c42b9adeadd92a9bea
Author: Temitope obabi <[email protected]>
Quoted 20 lines
ASoC: Intel: Remove unused
sst_ipc_inbox_rdatatracepointThe
sst_ipc_inbox_rdatatracepoint has had no callers since commit970d299b0a0a("ASoC: Intel: Remove unused code") removed the last one.Tracepoints that are defined take up around 5K each, even if they are not used. Remove this unused tracepoint.
Fixes 970d299b0a0a ("ASoC: Intel: Remove unused code")Signed-off-by Temitope obabi <[email protected]>include/trace/events/intel-sst.h +0
-1@@ -69,14 +69,6 @@ DECLARE_EVENT_CLASS(sst_ipc_mailbox, (unsigned int)__entry->offset, (unsigned int)__entry->val) ); -DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_inbox_rdata,
include/trace/events/intel-sst.h DECLARE_EVENT_CLASS(sst_ipc_mailbox, · line 74
Quoted 10 lines
include/trace/events/intel-sst.h +0
-7- - TP_PROTO(unsigned int offset, unsigned int val), - -TP_ARGS (offset, val) - -); - DEFINE_EVENT(sst_ipc_mailbox, sst_ipc_inbox_wdata, TP_PROTO(unsigned int offset, unsigned int val),
[Severity: Low]
Should the entire include/trace/events/intel-sst.h header be removed instead of just sst_ipc_inbox_rdata?
Commit 970d299b0a0a ("ASoC: Intel: Remove unused code") deleted sound/soc/intel/common/sst-dsp.c, which was the only file in the tree that defined CREATE_TRACE_POINTS and included trace/events/intel-sst.h. The remaining nine DEFINE_EVENT definitions and three DECLARE_EVENT_CLASS definitions in this header also have no callers. Because no translation unit includes trace/events/intel-sst.h, none of these tracepoints are compiled into the kernel image or consume memory, so the commit message claim and the Fixes: tag are also inaccurate for this cleanup.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 1 line · Temitope obabi
ASoC: Intel: Remove unused
sst_ipc_inbox_rdatatracepoint
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.5
Thanks!
[1/1] ASoC: Intel: Remove unused sst_ipc_inbox_rdata tracepoint
https://git.kernel.org/broonie/sound/c/c5afacef0c09
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 6 lines · Mark Brown
Quoted 1 line · Temitope obabi
ASoC: Intel: Remove unused
sst_ipc_inbox_rdatatracepointApplied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.5
There is a separate thread [1] started by the author that will conflict with this very change. Ideally only the "remove whole header" version should be applied.
Hi,
Sorry for the confusion. I sent this as a new thread by mistake instead of as the next version of the earlier patch. Please ignore this one; I will continue in the original thread [1] and send v3 there, removing the whole header as suggested.
Mark, since the single-tracepoint patch is already applied, I will make sure the v3 header removal applies cleanly on top of it, unless you prefer to drop that patch.
Thanks,
Temitope
[1] https://lore.kernel.org/all/[email protected]/
Quoted 16 lines · Cezary Rojewski
Quoted 6 lines · Mark Brown
Quoted 1 line · Temitope obabi
ASoC: Intel: Remove unused
sst_ipc_inbox_rdatatracepointApplied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.5
There is a separate thread [1] started by the author that will conflict with this very change. Ideally only the "remove whole header" version should be applied.
Quoted 9 lines · Cezary Rojewski
Quoted 3 lines · Mark Brown
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.5
There is a separate thread [1] started by the author that will conflict with this very change. Ideally only the "remove whole header" version should be applied.
Too late :/ - the whole header one will need to be rebased.