diff --git a/libavcodec/x86/dcadsp.asm b/libavcodec/x86/dcadsp.asm
index 1a725978a3d8c7aa0dec3e2268e8dbde85b91e87..e49d63d8adea9109d8704f0de361a34fb8e3a869 100644
--- a/libavcodec/x86/dcadsp.asm
+++ b/libavcodec/x86/dcadsp.asm
@@ -416,11 +416,7 @@ SYNTH_FILTER
 %endif
 INIT_XMM sse2
 SYNTH_FILTER
-%if HAVE_AVX_EXTERNAL
 INIT_YMM avx
 SYNTH_FILTER
-%endif
-%if HAVE_FMA3_EXTERNAL
 INIT_YMM fma3
 SYNTH_FILTER
-%endif
diff --git a/libavcodec/x86/dcadsp_init.c b/libavcodec/x86/dcadsp_init.c
index 5975feefa663512d50aa20cb8b0727f6f00b74b3..77f439837777d7c288de683dc035267afeff5697 100644
--- a/libavcodec/x86/dcadsp_init.c
+++ b/libavcodec/x86/dcadsp_init.c
@@ -82,13 +82,7 @@ SYNTH_FILTER_FUNC(sse)
 #endif
 SYNTH_FILTER_FUNC(sse2)
 SYNTH_FILTER_FUNC(avx)
-static void synth_filter_fma3(FFTContext *imdct,
-                             float *synth_buf_ptr, int *synth_buf_offset,
-                             float synth_buf2[32], const float window[512],
-                             float out[32], const float in[32], float scale);
-#if HAVE_FMA3_EXTERNAL
 SYNTH_FILTER_FUNC(fma3)
-#endif
 #endif /* HAVE_YASM */
 
 av_cold void ff_synth_filter_init_x86(SynthFilterContext *s)