Skip to content

Commit a44f830

Browse files
chenhuacaitsbogend
authored andcommitted
MIPS: Rename the "Fill" cache ops to avoid build failure
MIPS define a "Fill" macro as a cache operation in cacheops.h, this will cause build failure under some special configurations because in seq_file.c there is a "Fill" label. To avoid this failure we rename the "Fill" macro to "Fill_I" which has the same coding style as other cache operations in cacheops.h (we think renaming the "Fill" macro is more reasonable than renaming the "Fill" label). Callers of "Fill" macro is also updated. Signed-off-by: Huacai Chen <chenhc@lemote.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent c213db6 commit a44f830

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/mips/include/asm/cacheops.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* R4000-specific cacheops
4949
*/
5050
#define Create_Dirty_Excl_D (Cache_D | 0x0c)
51-
#define Fill (Cache_I | 0x14)
51+
#define Fill_I (Cache_I | 0x14)
5252
#define Hit_Writeback_I (Cache_I | Hit_Writeback)
5353
#define Hit_Writeback_D (Cache_D | Hit_Writeback)
5454

‎arch/mips/mm/c-r4k.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ static inline void rm7k_erratum31(void)
10491049
"cache\t%1, 0x3000(%0)\n\t"
10501050
".set pop\n"
10511051
:
1052-
: "r" (addr), "i" (Index_Store_Tag_I), "i" (Fill));
1052+
: "r" (addr), "i" (Index_Store_Tag_I), "i" (Fill_I));
10531053
}
10541054
}
10551055

‎arch/mips/pmcs-msp71xx/msp_setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void msp7120_reset(void)
5555

5656
for (iptr = (void *)((unsigned int)start & ~(L1_CACHE_BYTES - 1));
5757
iptr < end; iptr += L1_CACHE_BYTES)
58-
cache_op(Fill, iptr);
58+
cache_op(Fill_I, iptr);
5959

6060
__asm__ __volatile__ (
6161
"startpoint: \n"

0 commit comments

Comments
 (0)