diff mbox series

[FFmpeg-devel,05/19] avcodec/mips: Fix checkheaders

Message ID AM7PR03MB666001DFD586A0D2689FE1EB8F349@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 58492ce443a5a1f80b56fe1cd7ffa6cf449f4da9
Headers show
Series [FFmpeg-devel] avutil/x86/emms: Don't unnecessarily include lavu/cpu.h | expand

Checks

Context Check Description
yinshiyou/configure_loongarch64 warning Failed to run configure
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Feb. 15, 2022, 5:42 p.m. UTC
mips has several headers that are only meant for inclusion in another
non-arch specific file; they do not even try to be standalone. So don't
test them in checkheaders.

Also fix vp9dsp_mips.h, an ordinary header missing some includes.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/mips/Makefile      | 4 ++++
 libavcodec/mips/lsp_mips.h    | 2 ++
 libavcodec/mips/vp9dsp_mips.h | 3 +++
 3 files changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/libavcodec/mips/Makefile b/libavcodec/mips/Makefile
index 81a73a4d0e..05ed63bf3e 100644
--- a/libavcodec/mips/Makefile
+++ b/libavcodec/mips/Makefile
@@ -1,3 +1,7 @@ 
+ARCH_HEADERS                               = aacsbr_mips.h aacpsy_mips.h   \
+                                             cabac.h compute_antialias_fixed.h \
+                                             compute_antialias_float.h     \
+
 MIPSFPU-OBJS-$(CONFIG_AMRNB_DECODER)      += mips/acelp_filters_mips.o     \
                                              mips/celp_filters_mips.o      \
                                              mips/celp_math_mips.o         \
diff --git a/libavcodec/mips/lsp_mips.h b/libavcodec/mips/lsp_mips.h
index 23b2b6bfda..c69f8b770c 100644
--- a/libavcodec/mips/lsp_mips.h
+++ b/libavcodec/mips/lsp_mips.h
@@ -54,6 +54,8 @@ 
 #ifndef AVCODEC_MIPS_LSP_MIPS_H
 #define AVCODEC_MIPS_LSP_MIPS_H
 
+#include "config.h"
+
 #if HAVE_MIPSFPU && HAVE_INLINE_ASM
 #if !HAVE_MIPS32R6 && !HAVE_MIPS64R6
 #include "libavutil/attributes.h"
diff --git a/libavcodec/mips/vp9dsp_mips.h b/libavcodec/mips/vp9dsp_mips.h
index 0b6ce7cd7d..021ae9e59d 100644
--- a/libavcodec/mips/vp9dsp_mips.h
+++ b/libavcodec/mips/vp9dsp_mips.h
@@ -21,6 +21,9 @@ 
 #ifndef AVCODEC_MIPS_VP9DSP_MIPS_H
 #define AVCODEC_MIPS_VP9DSP_MIPS_H
 
+#include <stddef.h>
+#include <stdint.h>
+
 #define VP9_8TAP_MIPS_MSA_FUNC(SIZE, type, type_idx)                         \
 void ff_put_8tap_##type##_##SIZE##h_msa(uint8_t *dst, ptrdiff_t dststride,   \
                                         const uint8_t *src,                  \