[openwrt/openwrt] mips: ralink: add missing include

LEDE Commits lede-commits at lists.infradead.org
Wed Jun 11 05:19:57 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/4f62facf107ed3e252f105d4c2c78182e213071a

commit 4f62facf107ed3e252f105d4c2c78182e213071a
Author: Mieczyslaw Nalewaj <namiltd at yahoo.com>
AuthorDate: Sun May 18 13:56:39 2025 +0200

    mips: ralink: add missing include
    
    Missing headers causes an error on kernel 6.12:
    arch/mips/ralink/irq.c:86:5: error: no previous prototype for 'get_c0_perfcount_int' [-Werror=missing-prototypes]
       86 | int get_c0_perfcount_int(void)
          |     ^~~~~~~~~~~~~~~~~~~~
    arch/mips/ralink/irq.c:92:14: error: no previous prototype for 'get_c0_compare_int' [-Werror=missing-prototypes]
       92 | unsigned int get_c0_compare_int(void)
          |              ^~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors
    
    Signed-off-by: Mieczyslaw Nalewaj <namiltd at yahoo.com>
    Link: https://github.com/openwrt/openwrt/pull/18654
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 .../931-mips-ralink-add-missing-include.patch      | 25 ++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/target/linux/ramips/patches-6.12/931-mips-ralink-add-missing-include.patch b/target/linux/ramips/patches-6.12/931-mips-ralink-add-missing-include.patch
new file mode 100644
index 0000000000..710423b8e5
--- /dev/null
+++ b/target/linux/ramips/patches-6.12/931-mips-ralink-add-missing-include.patch
@@ -0,0 +1,25 @@
+From: Mieczyslaw Nalewaj <namiltd at yahoo.com>
+Date: Mon, 18 Nov 2024 21:28:05 +0100
+Subject: mips: ralink: add missing include
+
+Missing headers causes an error on kernel 6.12:
+arch/mips/ralink/irq.c:86:5: error: no previous prototype for 'get_c0_perfcount_int' [-Werror=missing-prototypes]
+   86 | int get_c0_perfcount_int(void)
+      |     ^~~~~~~~~~~~~~~~~~~~
+arch/mips/ralink/irq.c:92:14: error: no previous prototype for 'get_c0_compare_int' [-Werror=missing-prototypes]
+   92 | unsigned int get_c0_compare_int(void)
+      |              ^~~~~~~~~~~~~~~~~~
+cc1: all warnings being treated as errors
+
+Signed-off-by: Mieczyslaw Nalewaj <namiltd at yahoo.com>
+---
+--- a/arch/mips/ralink/irq.c
++++ b/arch/mips/ralink/irq.c
+@@ -15,6 +15,7 @@
+ 
+ #include <asm/irq_cpu.h>
+ #include <asm/mipsregs.h>
++#include <asm/time.h>
+ 
+ #include "common.h"
+ 




More information about the lede-commits mailing list