forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generic: 6.12: fix compilation warnings
Fix compilation warnings. Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
target/linux/generic/hack-6.12/931-fix-compilation-warnings.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); \ |