]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ltq-deu: fix 6.12 kernel build warnings on lantiq/xway
authorShiji Yang <yangshiji66@outlook.com>
Sat, 10 May 2025 09:19:18 +0000 (17:19 +0800)
committerRobert Marko <robimarko@gmail.com>
Tue, 13 May 2025 20:02:20 +0000 (22:02 +0200)
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:100: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>
package/kernel/lantiq/ltq-deu/src/ifxmips_deu_ar9.h
package/kernel/lantiq/ltq-deu/src/ifxmips_deu_danube.h

index 2f373589a5caa11762178cffe48dcda8bc5c5c57..324d20012b4c3b26335a3899f53243d0e714b2f1 100644 (file)
@@ -304,4 +304,7 @@ struct deu_dma_t {
        } controlr;
 };
 
+u32 input_swap(u32 input);
+void chip_version(void);
+
 #endif /* IFXMIPS_DEU_AR9_H */
index 25561cf6e08a7500a7d506b44d50514728f8f6f1..eb2f749bb3144408abb226d26a0c76e9d4345726 100644 (file)
@@ -255,4 +255,6 @@ struct deu_dma_t {
        } controlr;
 };
 
+u32 input_swap(u32 input);
+
 #endif  /* IFXMIPS_DEU_DANUBE_H */