]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: delay.c: Check BITS_PER_LONG instead of __SIZEOF_LONG__
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 6 Dec 2012 18:12:17 +0000 (18:12 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 22 Jan 2013 15:53:48 +0000 (16:53 +0100)
commitd47a5b764c22114fd28e99709789f3b00fdd81b3
tree5a9ab81e10b0a3730616e7b2769e515c0a92c9ac
parent8b14e1244963c0d6fc7859c28616bb9e7adc240e
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 e99abc64a1462165c233875650e346e033e36c0b [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>
arch/mips/lib/delay.c