ltq-deu: fix 6.12 kernel build warnings on lantiq/xway

This patch fixes the following build warnings by adding
missing prototypes:

/home/db/owrt/build_dir/target-mips_24kc_musl/linux-lantiq_xway/ltq-deu-danube/ltq-deu/ifxmips_deu_danube.c💯5: error: no previous prototype for 'input_swap' [-Werror=missing-prototypes]
  100 | u32 input_swap(u32 input)
      |     ^~~~~~~~~~
/home/db/owrt/build_dir/target-mips_24kc_musl/linux-lantiq_xway/ltq-deu-ar9/ltq-deu/ifxmips_deu_ar9.c:91:5: error: no previous prototype for 'input_swap' [-Werror=missing-prototypes]
   91 | u32 input_swap(u32 input)
      |     ^~~~~~~~~~
/home/db/owrt/build_dir/target-mips_24kc_musl/linux-lantiq_xway/ltq-deu-ar9/ltq-deu/ifxmips_deu_ar9.c:131:6: error: no previous prototype for 'chip_version' [-Werror=missing-prototypes]
  131 | void chip_version(void)
      |      ^~~~~~~~~~~~

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18744
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Shiji Yang 2025-05-10 17:19:18 +08:00 committed by Robert Marko
parent d81f8e159a
commit fdc2d8d07b
2 changed files with 5 additions and 0 deletions

View file

@ -304,4 +304,7 @@ struct deu_dma_t {
} controlr; } controlr;
}; };
u32 input_swap(u32 input);
void chip_version(void);
#endif /* IFXMIPS_DEU_AR9_H */ #endif /* IFXMIPS_DEU_AR9_H */

View file

@ -255,4 +255,6 @@ struct deu_dma_t {
} controlr; } controlr;
}; };
u32 input_swap(u32 input);
#endif /* IFXMIPS_DEU_DANUBE_H */ #endif /* IFXMIPS_DEU_DANUBE_H */