Skip to content

Commit

Permalink
generic: 6.12: fix compilation warnings
Browse files Browse the repository at this point in the history
Fix compilation warnings.

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
  • Loading branch information
namiltd committed Oct 22, 2024
1 parent d511c28 commit 92be09b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions target/linux/generic/hack-6.12/931-fix-compilation-warnings.patch
Original file line number Diff line number Diff line change
@@ -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); \

0 comments on commit 92be09b

Please sign in to comment.