Fixes
alias between functions of incompatible types warnings
which are new with gcc8
Signed-off-by: Khem Raj <redacted>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@lists.ozlabs.org
---
arch/powerpc/kernel/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -3,7 +3,8 @@# Makefile for the linux kernel.#-CFLAGS_ptrace.o+=-DUTS_MACHINE='"$(UTS_MACHINE)"'+CFLAGS_ptrace.o+=-DUTS_MACHINE='"$(UTS_MACHINE)"'$(callcc-disable-warning,attribute-alias)+CFLAGS_syscalls.o+=$(callcc-disable-warning,attribute-alias)subdir-ccflags-$(CONFIG_PPC_WERROR):=-Werror
This masks the new gcc8 warning
regset.h:270:4: error: 'memcpy' offset [-527, -529] is out
of the bounds [0, 16] of object 'vrsave' with type 'union <anonymous>'
Signed-off-by: Khem Raj <redacted>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@lists.ozlabs.org
---
arch/powerpc/kernel/Makefile | 1 +
1 file changed, 1 insertion(+)
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2018-05-08 14:40:36
Khem Raj [off-list ref] writes:
This masks the new gcc8 warning
regset.h:270:4: error: 'memcpy' offset [-527, -529] is out
of the bounds [0, 16] of object 'vrsave' with type 'union <anonymous>'
Why would we want to mask the warning rather than fix it?
cheers