* [PATCH 1/2] powerpc: Disable attribute-alias warnings from gcc8
@ 2018-05-04 19:23 Khem Raj
2018-05-04 19:23 ` [PATCH 2/2] powerpc/ptrace: Disable array-bounds warning with gcc8 Khem Raj
0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2018-05-04 19:23 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Khem Raj, Benjamin Herrenschmidt
Fixes
alias between functions of incompatible types warnings
which are new with gcc8
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 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
index 2b4c40b255e4..7ac5a68ad6b1 100644
--- a/arch/powerpc/kernel/Makefile
+++ b/arch/powerpc/kernel/Makefile
@@ -3,7 +3,8 @@
# Makefile for the linux kernel.
#
-CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
+CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' $(call cc-disable-warning, attribute-alias)
+CFLAGS_syscalls.o += $(call cc-disable-warning, attribute-alias)
subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
--
2.17.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] powerpc/ptrace: Disable array-bounds warning with gcc8
2018-05-04 19:23 [PATCH 1/2] powerpc: Disable attribute-alias warnings from gcc8 Khem Raj
@ 2018-05-04 19:23 ` Khem Raj
2018-05-08 14:40 ` Michael Ellerman
0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2018-05-04 19:23 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Khem Raj, Benjamin Herrenschmidt
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(+)
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] powerpc/ptrace: Disable array-bounds warning with gcc8
2018-05-04 19:23 ` [PATCH 2/2] powerpc/ptrace: Disable array-bounds warning with gcc8 Khem Raj
@ 2018-05-08 14:40 ` Michael Ellerman
0 siblings, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2018-05-08 14:40 UTC (permalink / raw)
To: Khem Raj, linuxppc-dev; +Cc: Khem Raj
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-05-08 14:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-04 19:23 [PATCH 1/2] powerpc: Disable attribute-alias warnings from gcc8 Khem Raj
2018-05-04 19:23 ` [PATCH 2/2] powerpc/ptrace: Disable array-bounds warning with gcc8 Khem Raj
2018-05-08 14:40 ` Michael Ellerman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.