diff options
| author | Shiji Yang | 2025-05-10 09:19:19 +0000 |
|---|---|---|
| committer | Robert Marko | 2025-05-13 20:02:20 +0000 |
| commit | 86e5b777889cea94dbdf6f1f5b94cb0cd9173002 (patch) | |
| tree | 76420ef6cd321667d0fb20b043a2f9a967028ec5 | |
| parent | 1f909e9f6d839939c2c7e6f212077d3fc0a265e3 (diff) | |
| download | openwrt-86e5b777889cea94dbdf6f1f5b94cb0cd9173002.tar.gz | |
ltq-vmmc: fix 'inline' declaration warning
Adjust the 'inline' declaration order to fix the build warning.
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18744
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rw-r--r-- | package/kernel/lantiq/ltq-vmmc/patches/608-fix-inline-is-not-at-beginning-of-declaration.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-vmmc/patches/608-fix-inline-is-not-at-beginning-of-declaration.patch b/package/kernel/lantiq/ltq-vmmc/patches/608-fix-inline-is-not-at-beginning-of-declaration.patch new file mode 100644 index 0000000000..4444360182 --- /dev/null +++ b/package/kernel/lantiq/ltq-vmmc/patches/608-fix-inline-is-not-at-beginning-of-declaration.patch @@ -0,0 +1,26 @@ +From: Shiji Yang <yangshiji66@outlook.com> +Date: Fri, 9 May 2025 01:43:41 +0800 +Subject: [PATCH] fix 'inline' is not at beginning of declaration + +Fix build warning on 6.12 kernel: + +/home/db/owrt/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/drv_vmmc-1.9.0/src/mps/drv_mps_vmmc_common.c:58:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration] + 58 | static void inline bsp_mask_and_ack_irq(int x) + | ^~~~~~ + +Signed-off-by: Shiji Yang <yangshiji66@outlook.com> +--- + src/mps/drv_mps_vmmc_common.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/src/mps/drv_mps_vmmc_common.c ++++ b/src/mps/drv_mps_vmmc_common.c +@@ -55,7 +55,7 @@ + # define bsp_mask_and_ack_irq ltq_mask_and_ack_irq + #else + extern void ltq_mask_and_ack_irq(struct irq_data *d); +-static void inline bsp_mask_and_ack_irq(int x) ++static inline void bsp_mask_and_ack_irq(int x) + { + struct irq_data d; + d.hwirq = x; |