From fe7673ee51d275645def10ebd11cba9af84f35ec Mon Sep 17 00:00:00 2001 From: Mieczyslaw Nalewaj Date: Thu, 17 Oct 2024 23:56:22 +0200 Subject: [PATCH] generic: 6.12: fix compilation warnings Fix compilation warnings. Signed-off-by: Mieczyslaw Nalewaj --- .../931-fix-compilation-warnings.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 target/linux/generic/hack-6.12/931-fix-compilation-warnings.patch diff --git a/target/linux/generic/hack-6.12/931-fix-compilation-warnings.patch b/target/linux/generic/hack-6.12/931-fix-compilation-warnings.patch new file mode 100644 index 00000000000000..13fc3f3e218ce5 --- /dev/null +++ b/target/linux/generic/hack-6.12/931-fix-compilation-warnings.patch @@ -0,0 +1,23 @@ +--- a/include/linux/irq.h ++++ b/include/linux/irq.h +@@ -1267,6 +1267,9 @@ static inline u32 irq_reg_readl(struct i + return readl(gc->reg_base + reg_offset); + } + ++int get_c0_perfcount_int(void); ++unsigned int get_c0_compare_int(void); ++ + struct irq_matrix; + struct irq_matrix *irq_alloc_matrix(unsigned int matrix_bits, + unsigned int alloc_start, +--- a/arch/mips/include/asm/switch_to.h ++++ b/arch/mips/include/asm/switch_to.h +@@ -111,7 +111,7 @@ do { \ + __mips_mt_fpaff_switch_to(prev); \ + lose_fpu_inatomic(1, prev); \ + if (tsk_used_math(next)) \ +- __sanitize_fcr31(next); \ ++ { __sanitize_fcr31(next); } \ + if (cpu_has_dsp) { \ + __save_dsp(prev); \ + __restore_dsp(next); \