Message ID | 20180504192313.18625-2-raj.khem@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [1/2] powerpc: Disable attribute-alias warnings from gcc8 | expand |
Khem Raj <raj.khem@gmail.com> 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 > Signed-off-by: Khem Raj <raj.khem@gmail.com> > Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> > Cc: linuxppc-dev@lists.ozlabs.org > --- > arch/powerpc/kernel/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile > index 7ac5a68ad6b1..ab159a34704a 100644 > --- a/arch/powerpc/kernel/Makefile > +++ b/arch/powerpc/kernel/Makefile > @@ -4,6 +4,7 @@ > # > > CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' $(call cc-disable-warning, attribute-alias) > +CFLAGS_ptrace.o += $(call cc-disable-warning, array-bounds) > CFLAGS_syscalls.o += $(call cc-disable-warning, attribute-alias) > > subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror > -- > 2.17.0
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 7ac5a68ad6b1..ab159a34704a 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile @@ -4,6 +4,7 @@ # CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' $(call cc-disable-warning, attribute-alias) +CFLAGS_ptrace.o += $(call cc-disable-warning, array-bounds) CFLAGS_syscalls.o += $(call cc-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 <raj.khem@gmail.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/kernel/Makefile | 1 + 1 file changed, 1 insertion(+)