931-mips-ralink-add-missing-include.patch 840 B

12345678910111213141516171819202122232425
  1. From: Mieczyslaw Nalewaj <[email protected]>
  2. Date: Mon, 18 Nov 2024 21:28:05 +0100
  3. Subject: mips: ralink: add missing include
  4. Missing headers causes an error on kernel 6.12:
  5. arch/mips/ralink/irq.c:86:5: error: no previous prototype for 'get_c0_perfcount_int' [-Werror=missing-prototypes]
  6. 86 | int get_c0_perfcount_int(void)
  7. | ^~~~~~~~~~~~~~~~~~~~
  8. arch/mips/ralink/irq.c:92:14: error: no previous prototype for 'get_c0_compare_int' [-Werror=missing-prototypes]
  9. 92 | unsigned int get_c0_compare_int(void)
  10. | ^~~~~~~~~~~~~~~~~~
  11. cc1: all warnings being treated as errors
  12. Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
  13. ---
  14. --- a/arch/mips/ralink/irq.c
  15. +++ b/arch/mips/ralink/irq.c
  16. @@ -15,6 +15,7 @@
  17. #include <asm/irq_cpu.h>
  18. #include <asm/mipsregs.h>
  19. +#include <asm/time.h>
  20. #include "common.h"