: flags have to be unsigned long
PATCH 1/1 : flags have to be unsigned long
Hi
more occurrences where flags are declared as int. In a couple of places I move the declaration to its corresponding ifdef.
Later, Juan.
Index: arch/mips/mm/c-r4k.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/mm/c-r4k.c,v
retrieving revision 1.3.2.16
mips/mm/c-r4k.c +4 -2
@@ -948,12 +948,13 @@static void r4k_dma_cache_wback_inv_pc (unsigned long addr,unsigned long size) {unsigned long end, a; -unsigned int flags;if (size >= dcache_size) {flush_cache_all (); }else {#ifdef R4600_V2_HIT_CACHEOP_WAR +unsigned long flags; +/* Workaround for R4600 bug. See comment in <asm/war>. */ local_irq_save (flags); *(volatile unsigned long *)KSEG1 ;
@@ -994,12 +995,13 @@static void r4k_dma_cache_inv_pc (unsigned long addr,unsigned long size) {unsigned long end, a; -unsigned int flags;if (size >= dcache_size) {flush_cache_all (); }else {#ifdef R4600_V2_HIT_CACHEOP_WAR +unsigned long flags; +/* Workaround for R4600 bug. See comment in <asm/war>. */ local_irq_save (flags); *(volatile unsigned long *)KSEG1 ;
Index: arch/mips64/mm/c-mips64.c
===================================================================
RCS file: /home/cvs/linux/arch/mips64/mm/c-mips64.c,v retrieving revision 1.1.2.6
mips64/mm/c-mips64.c +2 -2
@@ -316,7 +316,7 @@ mips64_dma_cache_wback_inv_pc(unsigned long addr, unsigned long size) {unsigned long end, a; -unsigned int flags; +unsigned long flags;if (size >= (unsigned long )dcache_size) {blast_dcache ();
@@ -357,7 +357,7 @@ mips64_dma_cache_inv_pc(unsigned long addr, unsigned long size) {unsigned long end, a; -unsigned int flags; +unsigned long flags;if (size >= (unsigned long )dcache_size) {blast_dcache ();
Index: arch/mips64/mm/c-r4k.c
===================================================================
RCS file: /home/cvs/linux/arch/mips64/mm/c-r4k.c,v retrieving revision 1.1.2.10
mips64/mm/c-r4k.c +1 -1
@@ -1065,7 +1070,7 @@static void r4600v20k_flush_cache_sigtramp (unsigned long addr) {#ifdef R4600_V2_HIT_CACHEOP_WAR -unsigned int flags; +unsigned long flags;local_irq_save (flags);
Index: arch/mips64/mm/pg-r4k.c
===================================================================
RCS file: /home/cvs/linux/arch/mips64/mm/pg-r4k.c,v retrieving revision 1.1.2.2
mips64/mm/pg-r4k.c +2 -2
@@ -157,7 +157,7 @@*/ void r4k_clear_page_r4600_v2 (void * page) { -unsigned int flags; +unsigned long flags;__save_and_cli (flags); *(volatile unsigned int *)KSEG1 ;
@@ -432,7 +432,7 @@void r4k_copy_page_r4600_v2 (void * to,void * from) {unsigned long dummy1, dummy2, reg1, reg2; -unsigned int flags; +unsigned long flags;__save_and_cli (flags); __asm__ __volatile__(
Signature · 2 lines
In theory, practice and theory are the same, but in practice they are different -- Larry McVoy