summaryrefslogtreecommitdiffstats
path: root/lib/rbcodec/dsp/dsp_sample_output.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-12-03 15:04:06 +0000
committerAidan MacDonald <amachronic@protonmail.com>2022-12-18 22:23:52 +0000
commit8165a6c24551478d4aa6b6123e0a7603961e9204 (patch)
tree9fdc80f9b124d5621c01117c92c9db0ee881462c /lib/rbcodec/dsp/dsp_sample_output.c
parentb650e774a17f7de78ff3927b0a48f2e373ece787 (diff)
downloadrockbox-8165a6c245.tar.gz
rockbox-8165a6c245.zip
rbcodec dsp: Remove INIT_ATTR from the DSP library
All of these are technically unsafe cross-section references but most aren't reported by the linker, probably due to inlining. In practice there was no problem because the affected code was only run at init time anyway. For now, remove INIT_ATTR until the init code can be refactored to avoid the problematic references. This should also save code size by moving more code to the init section. dsp_init() gets to keep its attribute because it's already OK. Change-Id: Idc9ac0e02cb07f31d186686e0382275c02a85dbb
Diffstat (limited to 'lib/rbcodec/dsp/dsp_sample_output.c')
-rw-r--r--lib/rbcodec/dsp/dsp_sample_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbcodec/dsp/dsp_sample_output.c b/lib/rbcodec/dsp/dsp_sample_output.c
index 65cd7ccf15..705a498a58 100644
--- a/lib/rbcodec/dsp/dsp_sample_output.c
+++ b/lib/rbcodec/dsp/dsp_sample_output.c
@@ -181,7 +181,7 @@ void dsp_sample_output_format_change(struct sample_io_data *this,
this->output_version = format->version;
}
-void INIT_ATTR dsp_sample_output_init(struct sample_io_data *this)
+void dsp_sample_output_init(struct sample_io_data *this)
{
this->output_version = 0;
this->output_samples = sample_output_stereo;