Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp991088yba; Fri, 26 Apr 2019 12:07:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAcuRm2megU2ajDvGa7u3DlbtQnOPrPbZb0igkuD4Qyn3vfeE4w28csR0+srtROcNYkuuS X-Received: by 2002:a65:614e:: with SMTP id o14mr10031154pgv.196.1556305655830; Fri, 26 Apr 2019 12:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556305655; cv=none; d=google.com; s=arc-20160816; b=dXOJegnxk/JyX+iQ9mjN4Vx+QzluShPaFQ5Q/vRfLpqL7Y/Fx41JEX+/Zxvsz6xsLB gj+ZDyHYvYpV7hWGaaoMXqjmipD55MKNiW/SWLb2c9zRLDc3Ve+bqJYNpGy0H6BmZ5uk DOQGNArQqtGkZB9deyI8PwStwh1n7xaoZMBw2/8E/eStGdsv1z1HFrrTgXWBA3GQoYcl WOoq+k87cUh3Zl3q8y7wzP9t7sw4JD8K8KLdaYLuMtIKq6ouTN8fYnWk5XohOBUyGKCe rbDPFaKD4LMZk90n+O/hGd1nm9EuUuJwzKXNBx1WEsiRqrYNQQWAuFzv//oKXf0D8k9l otqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nfeGW2KMz/FXR0Ak0qG/Xrz3Om6FI+VqPqCOac6VWK0=; b=Zav0hQFvEAUY7uLrQcrnpWvKovcbBpaIfxNoK4Wy4LkfHf4HmRYDJpxXxgStrFGWxB uurUmnb3mWBrmwXr9UNorTNjOQxBi0b0/7usd++B2O1dy6hJuKgZPLINkrr3WUqMW/cK EY8FnzfNd1/kLMhLj6s7P1u0OFfl0bGsNhYtBaaQnVyD0F84qAaaQO6+2Vnl72KGjh37 UeHiQaZP4xuD5TORWMAumTZi96P4f13mJCfGK2JjIyZZOrEKo0RKE9j2+2+5+EM5iRv+ 22TVQKUqn1nSA3cbMhI7CztpiMqV2fiFi5i1v1p+ax0g6e0icWe6XcuAMrlpio8sEbRR QjHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=ZwDxj6NY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si24703888pgi.66.2019.04.26.12.07.19; Fri, 26 Apr 2019 12:07:35 -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=@rasmusvillemoes.dk header.s=google header.b=ZwDxj6NY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726691AbfDZTGM (ORCPT + 99 others); Fri, 26 Apr 2019 15:06:12 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:33710 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726394AbfDZTGJ (ORCPT ); Fri, 26 Apr 2019 15:06:09 -0400 Received: by mail-ed1-f68.google.com with SMTP id d55so2189830ede.0 for ; Fri, 26 Apr 2019 12:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nfeGW2KMz/FXR0Ak0qG/Xrz3Om6FI+VqPqCOac6VWK0=; b=ZwDxj6NYYQ0lVHEiRjePF7dVhtTjLZ4WRcCUvquHehKY5j9KkDfD0a3VZwVjXiyRyV 2y/yxNs4ofqQH5vNKi3sZugsV46m0sQrlAAAktvDtboto/3NtDzq6Ij5ACCAgM/a7iGB PKBhHHtWEMlDuI6re7GK+sSxlktUbcte/LzXw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nfeGW2KMz/FXR0Ak0qG/Xrz3Om6FI+VqPqCOac6VWK0=; b=OtZMlMFWat7CWvQ0Y/GNUAC4p8kCwQHVib4cU+fNCXuLXxfP1LvvuKNriBJPtbl2c7 i6qFdW094uuQLWuGB9WmKAw+/3PjzdBdrYTHEAqmVOorc8sFtmtKMEHZ3qfvz0bwSHQ8 ARcpgbA76yv6UTaxTeTXnzRJ4Yda+cDehWGIACQNzK9KSW3HpukbCGPUzB3wN9C0FMYZ U8jfWcq3DkQMNyeAYGFKNWG7/b+Fjbbff9IV1N3Aa9u5FE3gat09k/M4E/QtmXoZVHsH vHhPHNbWbVEB7PbIO/iWkaj58Pi7uH6sSioippeWE4hX/F7GlPHMPQluv9xpTJiq7uBt JiVA== X-Gm-Message-State: APjAAAXlRveg7sGA+7Sc8CKscKiqz2WqFkcYT7bbLYqdyc7KJANJL9MF RLPvtWB3ZI+JOnp8LhqlopjWEA== X-Received: by 2002:aa7:d30b:: with SMTP id p11mr15544232edq.295.1556305567686; Fri, 26 Apr 2019 12:06:07 -0700 (PDT) Received: from prevas-ravi.prevas.se (ip-5-186-118-63.cgn.fibianet.dk. [5.186.118.63]) by smtp.gmail.com with ESMTPSA id k19sm2580862ejb.43.2019.04.26.12.06.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Apr 2019 12:06:07 -0700 (PDT) From: Rasmus Villemoes To: linuxppc-dev@lists.ozlabs.org, Andrew Morton Cc: Rasmus Villemoes , Michael Ellerman , Nick Desaulniers , Jason Baron , Nathan Chancellor , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 12/10] powerpc: unbreak DYNAMIC_DEBUG=y build with clang Date: Fri, 26 Apr 2019 21:06:03 +0200 Message-Id: <20190426190603.5982-2-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190426190603.5982-1-linux@rasmusvillemoes.dk> References: <20190426130015.GA12483@archlinux-i9> <20190426190603.5982-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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