diff options
| author | Shiji Yang | 2025-05-10 09:19:18 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2025-10-18 12:21:01 +0000 |
| commit | 3f9c57b813bab498f7b7c6d919ff663c351fa242 (patch) | |
| tree | 1b81713ecc314878158b44d26569e445195b3d45 | |
| parent | 7f3088e82dff4cfe695df5e348d6ba3d354854f1 (diff) | |
| download | openwrt-3f9c57b813bab498f7b7c6d919ff663c351fa242.tar.gz | |
ltq-ptm: fix missing-prototypes warning
Mark cgu_get_pp32_clock() as static.
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18744
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 621a1c9b56143a7445cffb750bad730acc2eafa1)
Signed-off-by: Nora Matthias Schiffer <neocturne@universe-factory.net>
Link: https://github.com/openwrt/openwrt/pull/20440
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rw-r--r-- | package/kernel/lantiq/ltq-ptm/patches/102-fix-missing-prototypes-warning.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-ptm/patches/102-fix-missing-prototypes-warning.patch b/package/kernel/lantiq/ltq-ptm/patches/102-fix-missing-prototypes-warning.patch new file mode 100644 index 0000000000..faa5784fca --- /dev/null +++ b/package/kernel/lantiq/ltq-ptm/patches/102-fix-missing-prototypes-warning.patch @@ -0,0 +1,26 @@ +From: Shiji Yang <yangshiji66@outlook.com> +Date: Fri, 9 May 2025 02:34:14 +0800 +Subject: [PATCH] fix missing-prototypes warning + +Fix the build warning on 6.12 kernel: + +/home/db/owrt/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/ltq-ptm-vr9/ltq-ptm/ifxmips_ptm_vdsl.c:64:15: error: no previous prototype for 'cgu_get_pp32_clock' [-Werror=missing-prototypes] + 64 | unsigned long cgu_get_pp32_clock(void) + | ^~~~~~~~~~~~~~~~~~ + +Signed-off-by: Shiji Yang <yangshiji66@outlook.com> +--- + ifxmips_ptm_vdsl.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/ifxmips_ptm_vdsl.c ++++ b/ifxmips_ptm_vdsl.c +@@ -61,7 +61,7 @@ static void *g_xdata_addr = NULL; + + #define ENABLE_TMP_DBG 0 + +-unsigned long cgu_get_pp32_clock(void) ++static unsigned long cgu_get_pp32_clock(void) + { + struct clk *c = clk_get_ppe(); + unsigned long rate = clk_get_rate(c); |