summaryrefslogtreecommitdiffstats
path: root/arch/mips/ar7
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2012-12-06 18:12:17 +0000
committerRalf Baechle <ralf@linux-mips.org>2013-01-22 16:53:48 +0100
commit4ea494b528ac1b9df9f0c77ba49e3e8ee108d9ec (patch)
tree5a9ab81e10b0a3730616e7b2769e515c0a92c9ac /arch/mips/ar7
parentf051e3a9335bce8915165a6b1e73db5af8ba86df (diff)
downloadtalos-op-linux-4ea494b528ac1b9df9f0c77ba49e3e8ee108d9ec.tar.gz
talos-op-linux-4ea494b528ac1b9df9f0c77ba49e3e8ee108d9ec.zip
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 5210edcd527773c227465ad18e416a894966324f [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>
Diffstat (limited to 'arch/mips/ar7')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud