linux/arch/mips/lib
Geert Uytterhoeven 4ea494b528 MIPS: delay.c: Check BITS_PER_LONG instead of __SIZEOF_LONG__
When building a 32-bit kernel for RBTX4927 with gcc version 4.1.2 20061115
(prerelease) (Ubuntu 4.1.1-21), I get:

arch/mips/lib/delay.c:24:5: warning: "__SIZEOF_LONG__" is not defined

As a consequence, __delay() always uses the 64-bit "dsubu" instruction.

Replace the check for "__SIZEOF_LONG__ == 4" by "BITS_PER_LONG == 32" to
fix this.

Introduced by commit 5210edcd52 [MIPS: Make
__{,n,u}delay declarations match definitions and generic delay.h"]

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Patchwork: https://patchwork.linux-mips.org/patch/4678/
Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2013-01-22 16:53:48 +01:00
..
ashldi3.c
ashrdi3.c
bitops.c MIPS: Remove irqflags.h dependency from bitops.h 2012-11-09 10:59:10 +01:00
cmpdi2.c
csum_partial.S
delay.c MIPS: delay.c: Check BITS_PER_LONG instead of __SIZEOF_LONG__ 2013-01-22 16:53:48 +01:00
dump_tlb.c MIPS: Restore pagemask after dumping the TLB. 2012-10-17 01:01:20 +02:00
iomap-pci.c
iomap.c
libgcc.h
lshrdi3.c
Makefile MIPS: Make irqflags.h functions preempt-safe for non-mipsr2 cpus 2012-11-09 10:59:21 +01:00
memcpy.S
memset.S
mips-atomic.c MIPS: Fix crash that occurs when function tracing is enabled 2012-11-23 18:44:38 +01:00
r3k_dump_tlb.c
strlen_user.S
strncpy_user.S
strnlen_user.S
ucmpdi2.c
uncached.c