[openwrt/openwrt] ltq-adsl-mei: fix 'inline' declaration warning

LEDE Commits lede-commits at lists.infradead.org
Sat Oct 18 05:22:56 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/6a54d623f2cfa5dfb5b8f758c8a7b543815e4784

commit 6a54d623f2cfa5dfb5b8f758c8a7b543815e4784
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Sat May 10 17:19:19 2025 +0800

    ltq-adsl-mei: fix 'inline' declaration warning
    
    Adjust the 'inline' declaration order to fix the build warning:
    
    /home/db/owrt/build_dir/target-mips_24kc_musl/linux-lantiq_xway/ltq-adsl-mei-danube/ltq-adsl-mei/drv_mei_cpe.c:188:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration]
      188 | static void inline MEI_MASK_AND_ACK_IRQ(int x)
          | ^~~~~~
    
    Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
    
    fix inline declaration warning
    
    Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
    Link: https://github.com/openwrt/openwrt/pull/18744
    Signed-off-by: Robert Marko <robimarko at gmail.com>
    (cherry picked from commit 335a88df64694dd297a49a89fd38ac8d45c48079)
    Signed-off-by: Nora Matthias Schiffer <neocturne at universe-factory.net>
    Link: https://github.com/openwrt/openwrt/pull/20440
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/kernel/lantiq/ltq-adsl-mei/src/drv_mei_cpe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/kernel/lantiq/ltq-adsl-mei/src/drv_mei_cpe.c b/package/kernel/lantiq/ltq-adsl-mei/src/drv_mei_cpe.c
index 5ee5b70b47..0add7ea2dc 100644
--- a/package/kernel/lantiq/ltq-adsl-mei/src/drv_mei_cpe.c
+++ b/package/kernel/lantiq/ltq-adsl-mei/src/drv_mei_cpe.c
@@ -185,7 +185,7 @@ static void *g_xdata_addr = NULL;
 static u32 *mei_arc_swap_buff = NULL;	//  holding swap pages
 
 extern void ltq_mask_and_ack_irq(struct irq_data *d);
-static void inline MEI_MASK_AND_ACK_IRQ(int x)
+static inline void MEI_MASK_AND_ACK_IRQ(int x)
 {
 	struct irq_data d;
 	d.hwirq = x;




More information about the lede-commits mailing list