Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp455572yba; Fri, 26 Apr 2019 03:08:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlMUwKiAyu6ZWsnaxbHrxIoVCbUBBklxqYcDjY2UL/T00FzwDDYlkDOl1TPvfVnaIeQKFf X-Received: by 2002:a62:4d43:: with SMTP id a64mr45578285pfb.174.1556273316596; Fri, 26 Apr 2019 03:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556273316; cv=none; d=google.com; s=arc-20160816; b=wNfNql/9OpDTLv7jWIEAHABcsx2aOHSs8+8bWSAHbqC/me92Qv8BGhVkTG7JLHJlDA ucUODNqjnHsqt3NA1qpGj4rvuKjopPOb81yfAH4AQc3F2EtA9485NEDpNoel8oKieDXS GotXd68kBA/Cqg3Gwj1A4lKgetupvPWosX4FiZniDZz3ojvOO5LkhqCq/3vWHBBVE3BS KyZiW457crOhUFi+5i7uWlrc+bbqE7M5NpewJuOsqI0nfb9csntsdpXaqf/Q5cWQ7MoE SPiomT/gCBU+ArjVzYkmoMcMC2HrN4uxCF/NY2rkvktgexpbj1WpQcGM85m4vREYx8Mj 0KUA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=V6YfoSDGzpRc5jf/Ret2tebWXfDQiQOnbiio0o2ZU6E=; b=Bn5J3f3z54lGzAKlpFMxKtJmyQOaME4d3sEGifmElZyEeRpuDIKy1atTl/Uc1hlg4U dzAi/65t1/FZj20Ty/gHxBKiur/lopGLk78NoMnC3MyODNyp4ErIlgQ8Yyk/ojrGVR39 0fHlGwjuS2X6kST4JPzgbgNlu/8AN6jMM3alWYqbd0itdUrj2UQdowouBZiYiHWdJxyC tyLO3ldDPfnpL4Ys9bMsBXfLWHvs5qHCguxw+72CfzWLEe8ix232FHu3ZUaMmXxFuZLM 9DxkPMGmslqfGJuzTOPKtqby10vznQ4eBFw47lGK8VYARcKBc0IE7ORqGyCBrYlzBo2N x52g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=J1u2eDCG; 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 s20si23820799pgs.509.2019.04.26.03.08.20; Fri, 26 Apr 2019 03:08:36 -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=J1u2eDCG; 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 S1726366AbfDZKGC (ORCPT + 99 others); Fri, 26 Apr 2019 06:06:02 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:37307 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbfDZKGB (ORCPT ); Fri, 26 Apr 2019 06:06:01 -0400 Received: by mail-lf1-f67.google.com with SMTP id h126so2053160lfh.4 for ; Fri, 26 Apr 2019 03:06:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=V6YfoSDGzpRc5jf/Ret2tebWXfDQiQOnbiio0o2ZU6E=; b=J1u2eDCGJ2gEioZTB921qsXqhJT6wj/kGUqepebtFVKjTSdJggMoCosui9RSYJo6Jy VzsD/zhtV+95zn57iya3oiKD0AoMsu7h6C9mh8KhSttxweUag0JmZFPXmZJna/iouiiu lNBqkaCqEeQPxhrZDX/w1tWKj3vBVlQVMS5IM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=V6YfoSDGzpRc5jf/Ret2tebWXfDQiQOnbiio0o2ZU6E=; b=Z43ByYlPb6DCErI6qee9s9spfSmUsI/rYlM6bYHoBCo20HHcUAbFyw7Lec8rkkkC2t U+s6mlc5TF4PvWgkVUvwPl/Sa2J2Lqu7W6Xa6Oy/4w/wwICZc4qq6Rcx1lJT+T9SMxNl Iajpqg0efl4lAeQOQXQvLpJeTGbq/uMmu9zhLCNrhnugmhBbjlYknGHG09nofbsaQa2/ pT26+B5+jTiChJzyp91xn7UmHb9CeONrKXryq/lFn+wgD7moZ9bj16kbLeyKQHyApmQc 1kN+vAnlQbJAGgyNb4HnW5P4qUg8Lc6mZsb9s50Tx1KD0nvnmVvKm+/yQV+wWakipVMV m98g== X-Gm-Message-State: APjAAAVlRfoaGCj4BAACLY8nSoQPCx4VdmJ0mzcq4OCheU8IpN4N9Eq/ 50UrniluP+WQk9lzZE3iiC+mZg== X-Received: by 2002:ac2:482e:: with SMTP id 14mr21642162lft.1.1556273159457; Fri, 26 Apr 2019 03:05:59 -0700 (PDT) Received: from [172.16.11.26] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id y19sm5484183lfb.24.2019.04.26.03.05.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Apr 2019 03:05:58 -0700 (PDT) Subject: Re: [PATCH 09/10] arm64: select DYNAMIC_DEBUG_RELATIVE_POINTERS To: Arnd Bergmann , Rasmus Villemoes Cc: Andrew Morton , Linux ARM , Will Deacon , Jason Baron , Linux Kernel Mailing List , clang-built-linux@googlegroups.com, Nathan Chancellor , Nick Desaulniers References: <20190409212517.7321-1-linux@rasmusvillemoes.dk> <20190409212517.7321-10-linux@rasmusvillemoes.dk> From: Rasmus Villemoes Message-ID: <94b816aa-ad36-75e6-8782-d141dec2e803@rasmusvillemoes.dk> Date: Fri, 26 Apr 2019 12:05:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/04/2019 11.39, Arnd Bergmann wrote: > On Tue, Apr 9, 2019 at 11:26 PM Rasmus Villemoes > wrote: >> >> Similar to GENERIC_BUG_RELATIVE_POINTERS, one can now relativize the >> four const char* members of struct _ddebug, thus saving 16 bytes per >> instance (one for each pr_debug(), dev_debug() etc. in a >> CONFIG_DYNAMIC_DEBUG kernel). The asm-generic implementation seems to >> work out-of-the-box, though this is only compile-tested. >> >> Signed-off-by: Rasmus Villemoes > > This causes a build regression when compiling with clang, > see http://staging-storage.kernelci.org/next-clang/master/next-20190424/arm64/allmodconfig/clang-8/build.log Yes, see also https://github.com/ClangBuiltLinux/linux/issues/456 . The quickest short-term fix is to append "if CC_IS_GCC" to the select statements. Then when a fix lands in clang one can change that to "if CC_IS_GCC || CLANG_VERSION >= something". It's probably best if we fix -next builds ASAP instead of waiting for knowing the proper value of "something". Nathan, Nick, WDYT? I had 0day verify my patches before sending them out officially, and thought it also did clang builds. But apparently not, or not with enough arch/.config combinations? Rasmus