Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5243257yba; Tue, 30 Apr 2019 11:23:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzK95Nr5f+uDHJlugFn8WwLgWTc9Wa4RlGlssjZjEbK0fAec1klPWRj3poaOBcEWBBy1UD X-Received: by 2002:a65:60c7:: with SMTP id r7mr62745763pgv.191.1556648635794; Tue, 30 Apr 2019 11:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556648635; cv=none; d=google.com; s=arc-20160816; b=xs7cFQ3I5NNrTxWXyIaG/cEOOO90PdsHzX+lN3kx1aTOTAVqhjwqsAWHlGQkc5yEEU lW0PP0zemPcNWMrEn6j8XjXv+b445qPEK3Omp48cwUAOjS+6z6pikYUdCAIf4ICTX2MR /7G2mbko1f286HJizOXdaEvTuQHRREL+OxDalkmtncnlRlS5LT+CpuRaEbDurty5YOCI lYmeRCYc6RDFii+xp+ptGRDy/wT7vKExtYXjGtIPjqa3wTgGJXLeetEDMPnz4nsVuKyT /UMlhnwBHlb7wJyHzHYygImVfFZI/eZJPRaGKiK2pnLvr0lAAcWRhiqeLwNGQzl/wDaR VDRw== 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=gh+NJvTsghWDsJJd+KP5aQAqiQ/BIEZcAYj6W4VprQI=; b=QAQsBZRTtxzkfmOK+a3TjGbvUjjhJqvhoky02EoBJaoNJV4DBuVU1fnTemfXs9OmSV lFy3EDpac/prMTTAhXfaJuC3qMpr6fj3fTg3SdDPBUtRAz4ApWN+iFRLXuhsT19WcPwp iLhHw6RrmGjk9vZaRKr6JokfNq2N35PQzSd0kXrUPsjIYRrw0amayXUCyCOXgW97WHaP nJTT8ff8PUcr4m69D631OTujiKx/BnRx0XTAxmoOK4KgFkECgLiwmNo/npNT/UsyT292 127+W2vZ4zN8/1HIsAQQcZAnVV6EdRHe/wkCr5K91yfsaNWW2B30X+Z6N8Qd3ItMAToY j/Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RCYP50pm; 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 f17si38654557pgd.243.2019.04.30.11.23.39; Tue, 30 Apr 2019 11:23:55 -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=RCYP50pm; 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 S1726522AbfD3SWs (ORCPT + 99 others); Tue, 30 Apr 2019 14:22:48 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:35282 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbfD3SWs (ORCPT ); Tue, 30 Apr 2019 14:22:48 -0400 Received: by mail-pf1-f194.google.com with SMTP id t21so7478098pfh.2 for ; Tue, 30 Apr 2019 11:22:47 -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=gh+NJvTsghWDsJJd+KP5aQAqiQ/BIEZcAYj6W4VprQI=; b=RCYP50pmtnK2vIKT9YIdEJ1LQlSTEIZA674chw7eV/BFW7oEN9ceMrVTyHwyyYdIVL eBiRdidlLXaqDm+3BDlBGDTJUwmtIMSeYzNbniW9CkMal12siiQrId6hSc1qpXiLbNt3 zjNUwiXMBBa8dt+enbzp/1zREVJ0iknI2ZHICzpOj4DSN2zZroYveJ9mGsiZbVkWAedo 75RPjhD1i6p5D86+My+jQygzq85/wpamrIQVGuKRKfF63IY5bqEGhBegKCoRBHqqkUga Fn/q7tyEMWu3i2Hq5TTz2ic/ow0PVmrkimF6m0HemT4V2u45+qL/J03rxicCN+Bt6hhY lmqw== 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=gh+NJvTsghWDsJJd+KP5aQAqiQ/BIEZcAYj6W4VprQI=; b=Q3YURsLr70z2zC+T7AgX+0Xl1TPuEkkUYcaLwFTD7iWIzn16SXnvGilQhA9iqz0Y3/ 4I9Ut5kGHsCyGUIbzp6tAEDHnZwjNJtyJlrmEHPcj0J42bJZxPDc54S9SociplPJTWB6 6UnjzyRuu0IIwwqDNuiBNahUw+vI8xgRCFZupklhNYo3HzemjOEX9lJyz4U2s3x0fzuJ O5VoNOtz0DyWJKeq4zyLzlmho7LIfQM6GriExSqnASFUx9p3KaPhfZ9ob919eSaSkR8t p3qYmNireMNY/gWJ2NdkdNWDOJEqJGbZXVSeNSlVKHOgvOXl6u7NljrngGd2ShhWpCxk jUOw== X-Gm-Message-State: APjAAAVpIN1X32tVw76O9CVLCN9nQB9zHtHxJDWVZFQu5FBY858z1eRt Csdb40eqa0qZHRpZZAK+eqhTZQ8JNvAyLGoRk63xSg== X-Received: by 2002:a63:4558:: with SMTP id u24mr65263866pgk.225.1556648566822; Tue, 30 Apr 2019 11:22:46 -0700 (PDT) MIME-Version: 1.0 References: <20190426130015.GA12483@archlinux-i9> <20190426190603.5982-1-linux@rasmusvillemoes.dk> In-Reply-To: From: Nick Desaulniers Date: Tue, 30 Apr 2019 11:22:35 -0700 Message-ID: Subject: Re: [PATCH 11/10] arm64: unbreak DYNAMIC_DEBUG=y build with clang To: Rasmus Villemoes Cc: Linux ARM , Andrew Morton , Will Deacon , Jason Baron , Nathan Chancellor , Arnd Bergmann , LKML , Dan Rue 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 Mon, Apr 29, 2019 at 10:32 AM Nick Desaulniers wrote: > > 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 arm64. 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: arm64: select DYNAMIC_DEBUG_RELATIVE_POINTERS > > Reported-by: Nathan Chancellor > > Reported-by: Arnd Bergmann > > Signed-off-by: Rasmus Villemoes > > --- > > Andrew, please apply and/or fold into 9/10. > > > > arch/arm64/Kconfig | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > > index d0871d523d5d..315992e33b17 100644 > > --- a/arch/arm64/Kconfig > > +++ b/arch/arm64/Kconfig > > @@ -83,7 +83,7 @@ config ARM64 > > select CRC32 > > select DCACHE_WORD_ACCESS > > select DMA_DIRECT_REMAP > > - select DYNAMIC_DEBUG_RELATIVE_POINTERS > > + select DYNAMIC_DEBUG_RELATIVE_POINTERS if CC_IS_GCC || CLANG_VERSION >= 90000 > > I just landed the fix for this in Clang, I think around the time you > sent the patch. Should ship in Clang 9. Thanks for unbreaking our > build. > Reviewed-by: Nick Desaulniers + Dan who's looking for this to get picked up to unbreak KernelCI arm64+clang builds https://staging.kernelci.org/build/id/5cc6e080cf3a0f9d66257f6d/ -- Thanks, ~Nick Desaulniers