]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Kill annoying warning when building compat_binfmt_elf.o
authorDavid S. Miller <davem@davemloft.net>
Sun, 2 Nov 2008 07:15:38 +0000 (00:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Nov 2008 07:15:38 +0000 (00:15 -0700)
commitf534b84e44eca792088225ec3c01fb1a9c93dc5d
tree518787fbb30628f36c439b0377b8ce0c06459ab3
parent2302351d5711054b31ac333b4c3af687bf344c27
sparc64: Kill annoying warning when building compat_binfmt_elf.o

GCC warns because some tests against 32-bit values never evaluate to
true due to how TASK_SIZE is defined.

I always wanted to mimick powerpc's definition of TASK_SIZE, which
is simply TASK_SIZE_OF(current) and that also fixes the warning.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/processor_64.h