Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3920127yba; Mon, 29 Apr 2019 10:38:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzT+AmHR6r1JlkobSvttI/vbxeezngtyiJShRohyy0hyok4MCPl7vMxkHRM7gRfBxPgZ46c X-Received: by 2002:aa7:9aaa:: with SMTP id x10mr21876854pfi.225.1556559539132; Mon, 29 Apr 2019 10:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556559539; cv=none; d=google.com; s=arc-20160816; b=i6X8b6J+YcJ9RkavHqAm0J5dNU0ea8bQQ0sMsY6Hs86mbuy7DIl/3rLh+7FWT7zqGd XYXILsb+DHkf6V+X4sqmz9TCosG7/7To3Y2FspRT9ruqnM4if2IqbDZMWJhzDCVfgLvM jsuqJgRV6X/AoSUe1MqhZxdnL+jeQ5BhdLv0GR3HzQIjU4LFQPzhUB3JzodeBOe+wYuh HYG1l9dRP3yph4T6SVD7kTffbvQa8WH1LW1FRq+4dXrdXISnQVc2TOSVjtdcSnMSUStS ZFSviRTsv1CiwaJnR351P+xAcDTTuQTK/jCMKxzj56NTYmIRZxh3MKMQDKHq9e8/ERGK TTcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3kM8XyTuKXCw/0VhDx0EpsJTgk6kLql0lEsb7+DZlns=; b=Lcdlj+K5TDSCDk3UGcmBM+HXd0qHXV7NBFrp3mkGBb5OVWtdeN2tb+HvuxAtTCdCDV GTrMZQrkD8TfJt7WUoKd+PsnjQRuKpzrOQJUKoERNac0vliSYaEpEHyZyHv5xNyYl3r1 AmOFpexFLyZOCDyciRw+/Ea0LluoZrLiKdhHUUBwDjDwuypHLTjzGrrLM7tTLsnosae6 4Ft/5eKdW5w/2i5nuE9GWE/KIIZu+gAIm23PM/WftL9h94eZky7EKOKOFQ2NEiGAA4L+ 1aI4/lFC5arv+SIo//xJmcJFU8OnCX9au/JpSqMi6eAFh2Oq2RrFZykmT5heVuigcJov bjsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dh5XugVN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15si34762324pfj.115.2019.04.29.10.38.44; Mon, 29 Apr 2019 10:38:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dh5XugVN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728981AbfD2RfG (ORCPT + 99 others); Mon, 29 Apr 2019 13:35:06 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45326 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728798AbfD2RfG (ORCPT ); Mon, 29 Apr 2019 13:35:06 -0400 Received: by mail-pg1-f193.google.com with SMTP id i21so2032102pgi.12 for ; Mon, 29 Apr 2019 10:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3kM8XyTuKXCw/0VhDx0EpsJTgk6kLql0lEsb7+DZlns=; b=dh5XugVNe0puvkDeCqwzeG18FWp/5XbFOyuGLNw7+8E5AlJh2gujXqo27m2hlqbeMN aoQ3qFCgsNieB+uvlBChFOzwnZVpe+8lrSo4Rduy65FMiHqKULm+FBSzYeKhlkKHJhiV 8EXCznDKlX8MdjQ5/ajab1o0SyffoXlFNQufQrze+Odf7mAiydHdYBAl1/+IrrdtGqJJ hTHe3RmvTYudiA30jwC+5MzvoQNXpoPu9ws7whaO1jpD+fa59TdaZLw8DbQwkUFUEgDM 3nj1Ci0MnWIZ40WUwPsdanhHbGxSEOzZbJ34vFkEp4+aRu44pwQUvzc5+EoN08dtXvIS YOsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3kM8XyTuKXCw/0VhDx0EpsJTgk6kLql0lEsb7+DZlns=; b=rm74PfASD/fk9AQ6voy4GHD4F/DELEjKBk4RYnp3etUarAqSMMHEfY8r+g5IyCu5hr zi4NKdchKP8qrVd87pQfj2EcgiYZjPFICPpiYmIDCkt0Gy3I0544m/6qTL7+BIcu32rF 3sdq8703aDOljFk+e3Bzv0pH7uRbVm8oIuh5lIPM749HwXMQf7KnBZftWDqO5PCfznyX ohYp3cRGtoEwfVo3B74X9KOYd3SXVUw/g+Mcs/iMy/i5CJ7CJSty/sDiW9wGHkonfY/H 3Lu2zCZxmNQciLMSmpMcXTuURm6F0eJlcNFQBQ14IwQNvYvFn1SrmwfK+SZ183TkynQi FRCQ== X-Gm-Message-State: APjAAAUxA90H8UYuibzE2OH+q8hwSZ9Zq3uf4jmXwFHMTKxAGsFMAUgN YL2++tOOadpSCopWDpf28bTRo2m+Weu46oQCZcA/bw== X-Received: by 2002:a63:c702:: with SMTP id n2mr21522880pgg.255.1556559304964; Mon, 29 Apr 2019 10:35:04 -0700 (PDT) MIME-Version: 1.0 References: <20190426130015.GA12483@archlinux-i9> <20190426190603.5982-1-linux@rasmusvillemoes.dk> <20190426190603.5982-2-linux@rasmusvillemoes.dk> In-Reply-To: <20190426190603.5982-2-linux@rasmusvillemoes.dk> From: Nick Desaulniers Date: Mon, 29 Apr 2019 10:34:53 -0700 Message-ID: Subject: Re: [PATCH 12/10] powerpc: unbreak DYNAMIC_DEBUG=y build with clang To: Rasmus Villemoes Cc: linuxppc-dev@lists.ozlabs.org, Andrew Morton , Michael Ellerman , Jason Baron , Nathan Chancellor , Arnd Bergmann , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 26, 2019 at 12:06 PM Rasmus Villemoes 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 > Reported-by: Arnd Bergmann > Signed-off-by: Rasmus Villemoes Thanks for fixing the build. Reviewed-by: Nick Desaulniers > --- > 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