* [PATCH 12/10] powerpc: unbreak DYNAMIC_DEBUG=y build with clang [not found] ` <20190426190603.5982-1-linux@rasmusvillemoes.dk> @ 2019-04-26 19:06 ` Rasmus Villemoes 2019-04-29 17:34 ` Nick Desaulniers 0 siblings, 1 reply; 2+ messages in thread From: Rasmus Villemoes @ 2019-04-26 19:06 UTC (permalink / raw) To: linuxppc-dev, Andrew Morton Cc: Arnd Bergmann, Rasmus Villemoes, Nick Desaulniers, linux-kernel, Jason Baron, Nathan Chancellor Current versions of clang does not like the %c modifier in inline assembly for targets other than x86, so any DYNAMIC_DEBUG=y build fails on ppc64. A fix is likely to land in 9.0 (see https://github.com/ClangBuiltLinux/linux/issues/456), but unbreak the build for older versions. Fixes: powerpc: select DYNAMIC_DEBUG_RELATIVE_POINTERS for PPC64 Reported-by: Nathan Chancellor <natechancellor@gmail.com> Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> --- Andrew, please apply and/or fold into 10/10. arch/powerpc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 6821c8ae1d62..8511137ab963 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -155,7 +155,7 @@ config PPC select BUILDTIME_EXTABLE_SORT select CLONE_BACKWARDS select DCACHE_WORD_ACCESS if PPC64 && CPU_LITTLE_ENDIAN - select DYNAMIC_DEBUG_RELATIVE_POINTERS if PPC64 + select DYNAMIC_DEBUG_RELATIVE_POINTERS if PPC64 && (CC_IS_GCC || CLANG_VERSION >= 90000) select DYNAMIC_FTRACE if FUNCTION_TRACER select EDAC_ATOMIC_SCRUB select EDAC_SUPPORT -- 2.20.1 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 12/10] powerpc: unbreak DYNAMIC_DEBUG=y build with clang 2019-04-26 19:06 ` [PATCH 12/10] powerpc: unbreak DYNAMIC_DEBUG=y build with clang Rasmus Villemoes @ 2019-04-29 17:34 ` Nick Desaulniers 0 siblings, 0 replies; 2+ messages in thread From: Nick Desaulniers @ 2019-04-29 17:34 UTC (permalink / raw) To: Rasmus Villemoes Cc: Arnd Bergmann, LKML, Jason Baron, Nathan Chancellor, linuxppc-dev, Andrew Morton On Fri, Apr 26, 2019 at 12:06 PM Rasmus Villemoes <linux@rasmusvillemoes.dk> wrote: > > Current versions of clang does not like the %c modifier in inline > assembly for targets other than x86, so any DYNAMIC_DEBUG=y build > fails on ppc64. A fix is likely to land in 9.0 (see > https://github.com/ClangBuiltLinux/linux/issues/456), but unbreak the > build for older versions. > > Fixes: powerpc: select DYNAMIC_DEBUG_RELATIVE_POINTERS for PPC64 > Reported-by: Nathan Chancellor <natechancellor@gmail.com> > Reported-by: Arnd Bergmann <arnd@arndb.de> > Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Thanks for fixing the build. Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> > --- > Andrew, please apply and/or fold into 10/10. > > arch/powerpc/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index 6821c8ae1d62..8511137ab963 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -155,7 +155,7 @@ config PPC > select BUILDTIME_EXTABLE_SORT > select CLONE_BACKWARDS > select DCACHE_WORD_ACCESS if PPC64 && CPU_LITTLE_ENDIAN > - select DYNAMIC_DEBUG_RELATIVE_POINTERS if PPC64 > + select DYNAMIC_DEBUG_RELATIVE_POINTERS if PPC64 && (CC_IS_GCC || CLANG_VERSION >= 90000) > select DYNAMIC_FTRACE if FUNCTION_TRACER > select EDAC_ATOMIC_SCRUB > select EDAC_SUPPORT > -- > 2.20.1 > -- Thanks, ~Nick Desaulniers ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-29 17:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20190426130015.GA12483@archlinux-i9>
[not found] ` <20190426190603.5982-1-linux@rasmusvillemoes.dk>
2019-04-26 19:06 ` [PATCH 12/10] powerpc: unbreak DYNAMIC_DEBUG=y build with clang Rasmus Villemoes
2019-04-29 17:34 ` Nick Desaulniers
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox