Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp615458yba; Fri, 26 Apr 2019 06:03:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9VD/6IGOfPLjZbjaxWT9pd8eQGCuCRdzqqNVZC1EdFnpA0GMHSZxY9qCDYCEJ1ugXrzwE X-Received: by 2002:a17:902:42:: with SMTP id 60mr45955913pla.79.1556283793887; Fri, 26 Apr 2019 06:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556283793; cv=none; d=google.com; s=arc-20160816; b=tacNw416S2YqW0M+IUSdWrD001L5k8ToI9ymqoEivetqbDulYG9DW84IW8FFaUTvav r2dl7g8WgteLriVVyXJ4gOhH7zc8eJrjT5W+KYtVTx6Y1Yi/MP+0boRi8eusnShOX9uh Qd6r7vRO/IucMwbUHoYBMqBGVSZAHJyybzLtcqVxIYUocMtc3gnq4ksjOxKHZei71JZe 3yHQsTBXMQT06EBrqrYKR4kSaQ4RN7KqaNv6j4/Y0QNjTIaL52uCDxdmqilkMWaUOf63 ZHTP8fS7O4fFn45DZb8EFXkuKyjF6+KMkZe8n9RmxGLvxoyfUZf4+i4onp6sFYed2zOv CUUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Tv8k1IVq/bX2qC7pmlkXFVlPj0xCG5NKC7lZ4m2BLq8=; b=MruHZYFTncEDkxH9LXRGa9/bxfVXhxDpgp784e+hKJ/isrQu6QdIuPn8IAnERkOnPg LrkoLXMI7WB1/eIDI/MxFgUjdqYZPgrE6GGdv4hJ/abGy4D6Ib09P6/zpem3Jjg7ltHp XXod6WIo35mWGe/y3IzEHY1y5l8KJPQnx47r1/NIYiSuxz+VlR+n7lPfGpBje9TuG9UY rrrAcBdyUqTyQKUN/ySZCyfFW8eFoSTi1h+3RiobxbMEKlemoMdKdZmRwTqHSRFMq093 aKgVrtoUO00Bs7JGWrjPzojoVkbxdeF016LHgxNmp9bZwGQOpLZI3sDrYMv+Wc2u+FQH nI+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bECapwQA; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9si23759818pgp.273.2019.04.26.06.02.55; Fri, 26 Apr 2019 06:03:13 -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=@gmail.com header.s=20161025 header.b=bECapwQA; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726246AbfDZNAV (ORCPT + 99 others); Fri, 26 Apr 2019 09:00:21 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:33213 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbfDZNAU (ORCPT ); Fri, 26 Apr 2019 09:00:20 -0400 Received: by mail-ed1-f66.google.com with SMTP id d55so1249074ede.0 for ; Fri, 26 Apr 2019 06:00:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Tv8k1IVq/bX2qC7pmlkXFVlPj0xCG5NKC7lZ4m2BLq8=; b=bECapwQApPKcPhJL9GJXfilDKWtVLuZXVHOLzL/u/PjH258XPaJ71Hy8yfICZndGtr DiSXGiOAzXwSliq9a5k+L8fRfGLniIDz5JvNk29HgXChs3LvAdatSwU25BOe3N4dqRg6 u1A7kodCe4w7nfAgDDEGWoem46hp6hQ9dpEo3mwLcjgHMYtGs0Wv3p1PtIeQLC92+do4 5ZzjYc09Zn3HR69LnsE52Kf4A4TSoe/JIZsu/6ur7TW9RG+qIakhBxM7e1hGpiPm3FcI F9QmlmxTJDEk3xefe+cAG4uhtRej4uneUc22+/9ydZ3/idrih2SWs/DZddZzGIKmmrqH Wk7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Tv8k1IVq/bX2qC7pmlkXFVlPj0xCG5NKC7lZ4m2BLq8=; b=n8vC8dmxEZ4sRlrUQlGA9VwCRUTUfRJ0qOVYS67i8wY1LlDhSvmAeCNTm15zjxsdyU a04s41H4v/IZVnzfnfELTTcYJa7p81703WkTsNNma+NBvfLCcB0Gahr+7p6OLRePNqFO p9ru1AztZub+6Vj9KQvRv3z/DDdiTodcSPXrX73BJ4CcaI/7FIG7SQvihbAHRK5GDD0y d0Ouynvl+sMq/VcUQTkBqPIpTpVlcOYmt+cH5HemwZOU9wj/5HplCwX0R3e0pjS4zclx SKkBpIMV3USegwdrbj9FIdrniIvC1lfuV1ti0BWWqcpb5xRItQsyZSm4XbIPdaLv2FMd gCKA== X-Gm-Message-State: APjAAAWkCXnjSvF/ZmNxTRxMCQcsIsmOIRs7kiGyB8QN3y5M9R4m7TiT UBKK/BSFZr8wYMZPb8AvHhE= X-Received: by 2002:a50:ad11:: with SMTP id y17mr28135238edc.184.1556283618973; Fri, 26 Apr 2019 06:00:18 -0700 (PDT) Received: from archlinux-i9 ([2a01:4f9:2b:2b84::2]) by smtp.gmail.com with ESMTPSA id v9sm7058960ede.32.2019.04.26.06.00.17 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Apr 2019 06:00:17 -0700 (PDT) Date: Fri, 26 Apr 2019 06:00:15 -0700 From: Nathan Chancellor To: Rasmus Villemoes Cc: Arnd Bergmann , Andrew Morton , Linux ARM , Will Deacon , Jason Baron , Linux Kernel Mailing List , clang-built-linux@googlegroups.com, Nick Desaulniers Subject: Re: [PATCH 09/10] arm64: select DYNAMIC_DEBUG_RELATIVE_POINTERS Message-ID: <20190426130015.GA12483@archlinux-i9> References: <20190409212517.7321-1-linux@rasmusvillemoes.dk> <20190409212517.7321-10-linux@rasmusvillemoes.dk> <94b816aa-ad36-75e6-8782-d141dec2e803@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <94b816aa-ad36-75e6-8782-d141dec2e803@rasmusvillemoes.dk> User-Agent: Mutt/1.11.4 (2019-03-13) 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:05:57PM +0200, Rasmus Villemoes wrote: > 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? Those select statements have to be added regardless, we might as well do it now. It should unbreak the auto builders because they use the latest clang stable version, which is 8.0.0. For the record, the fix in Clang is https://reviews.llvm.org/D60887 and should land shortly unless there are any further objections, meaning this will be fixed in the 9.0.0 release. 'if CC_IS_GCC || CLANG_VERSION >= 90000' should do it on the arm64 and powerpc select statements (x86 works fine because %c support has always been present). > > 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? They do not do clang builds unfortunately. Nick was in contact with them before forced asm-goto on x86 happened and derailed that. We try to do our own tests and let people know when stuff breaks but that is usually after it hits -next, rather than the mailing list. > > Rasmus Cheers, Nathan