[openwrt/openwrt] lantiq: fix vmmc driver build warnings

LEDE Commits lede-commits at lists.infradead.org
Fri Jul 18 04:31:37 PDT 2025


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/dd0c83575f6adeaaec376c72154f1a8006ca7ef8

commit dd0c83575f6adeaaec376c72154f1a8006ca7ef8
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Thu May 8 21:44:19 2025 +0800

    lantiq: fix vmmc driver build warnings
    
    This patch fixes the following build warnings:
    
    arch/mips/lantiq/xway/vmmc.c:31:14: error: no previous prototype for 'ltq_get_mps_ad0_irq' [-Werror=missing-prototypes]
       31 | unsigned int ltq_get_mps_ad0_irq(void)
          |              ^~~~~~~~~~~~~~~~~~~
    arch/mips/lantiq/xway/vmmc.c:40:14: error: no previous prototype for 'ltq_get_mps_ad1_irq' [-Werror=missing-prototypes]
       40 | unsigned int ltq_get_mps_ad1_irq(void)
          |              ^~~~~~~~~~~~~~~~~~~
    arch/mips/lantiq/xway/vmmc.c:49:14: error: no previous prototype for 'ltq_get_mps_vc_irq' [-Werror=missing-prototypes]
       49 | unsigned int ltq_get_mps_vc_irq(int idx)
          |              ^~~~~~~~~~~~~~~~~~
    
    Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
---
 ...IPS-lantiq-xway-vmmc-use-platform_get_irq-to-get-ir.patch | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/target/linux/lantiq/patches-6.6/0200-MIPS-lantiq-xway-vmmc-use-platform_get_irq-to-get-ir.patch b/target/linux/lantiq/patches-6.6/0200-MIPS-lantiq-xway-vmmc-use-platform_get_irq-to-get-ir.patch
index 6db051b6a9..65164f6ac2 100644
--- a/target/linux/lantiq/patches-6.6/0200-MIPS-lantiq-xway-vmmc-use-platform_get_irq-to-get-ir.patch
+++ b/target/linux/lantiq/patches-6.6/0200-MIPS-lantiq-xway-vmmc-use-platform_get_irq-to-get-ir.patch
@@ -97,3 +97,15 @@ Signed-off-by: Martin Schiller <ms at dev.tdt.de>
  	gpio_count = gpiod_count(&pdev->dev, NULL);
  	while (gpio_count > 0) {
  		gpio = devm_gpiod_get_index(&pdev->dev,
+--- a/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h
++++ b/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h
+@@ -104,6 +104,9 @@ const u8* ltq_get_eth_mac(void);
+ 
+ /* VMMC */
+ extern unsigned int *ltq_get_cp1_base(void);
++extern unsigned int ltq_get_mps_ad0_irq(void);
++extern unsigned int ltq_get_mps_ad1_irq(void);
++extern unsigned int ltq_get_mps_vc_irq(int idx);
+ 
+ #endif /* CONFIG_SOC_TYPE_XWAY */
+ #endif /* _LTQ_XWAY_H__ */




More information about the lede-commits mailing list