summaryrefslogtreecommitdiff
path: root/include/linux/compiler-gcc.h
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2016-10-19 14:38:50 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-10 09:56:41 +0200
commit014275fd848f463fac037fc1b6b9b6e50470b9aa (patch)
treee354585cd64d3e08217147ffe7c20553d5d0e6eb /include/linux/compiler-gcc.h
parenta414c474578a1ac097a1da0875b02b431f60a4e6 (diff)
ARC: fix build warning in elf.h
[ Upstream commit 1dec78585328db00e33fb18dc1a6deed0e2095a5 ] The cast valid since TASK_SIZE * 2 will never actually cause overflow. | CC fs/binfmt_elf.o | In file included from ../include/linux/elf.h:4:0, | from ../include/linux/module.h:15, | from ../fs/binfmt_elf.c:12: | ../fs/binfmt_elf.c: In function load_elf_binar: | ../arch/arc/include/asm/elf.h:57:29: warning: integer overflow in expression [-Woverflow] | #define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3) | ^ | ../fs/binfmt_elf.c:921:16: note: in expansion of macro ELF_ET_DYN_BASE | load_bias = ELF_ET_DYN_BASE - vaddr; Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/compiler-gcc.h')
0 files changed, 0 insertions, 0 deletions