Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp347485ybi; Fri, 7 Jun 2019 09:01:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6kKCTjmcatOwyewbEMvWtC0/d4qlrSgkzUKbDB+pVmoMYmUofJoU5bmhUV1fsxWDxGLtF X-Received: by 2002:a17:90a:9306:: with SMTP id p6mr6089861pjo.6.1559923298173; Fri, 07 Jun 2019 09:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559923298; cv=none; d=google.com; s=arc-20160816; b=zcZAu8hrISd1XS1JBFvaABcfNAkGZKiPxbPwnL8HgEPFiwbkMVNtl0XlUzql+oNrdw qTn1iACSxS4KX303XaaZ+XtBLVoThraRVPcmydV/CUDyYkiLBDgke44nX0dmolpJMXZz IpNrpsNbugS/mqPQjMwr1SyKz7CQh77XvmM1iZ/GkUaamqMCS2sRL5ho/0Qfc9RjCfC+ T1xDvWLpMNddWYoNDZooNrBYTYotYO2bENLXqGCXDSTVbGiWJSjIdRpzYcdwR2+McGaE ASPOKSU6GSwTV0rl0pJ+cdpRKX6faA31pJdQP2oLnycrWKBRf7FpgUocecv4RYIoUhpF O4rA== 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; bh=CLKH94eOujZRrfgPp8QS/nyUtlB1X1p5sJouEbE4dm4=; b=o3AMrAHT0p8KBWOO96Vt+vLGtUD+hOI3FwF9ksVr67d5EcwkLH+buwB8kH8lWJ2Nh0 wH7Wcbsrtut4iMDFqtkD4oemGeNdx/5CGuV/6TMJa3ldfK3yQqKA8PNDlHbED7yZNPek 9d4bDj6b1loqF9G1gA/WVjgYRrA462ykV/YppKMVCEAM5FNMsqqYQjmosgsPkeqAFufE aVAqjhcWgP/6mSMvAHwfpINOWbyUjZXawe4q3q4cXA3cQLpnmrkX1IGEhUDxGXiM8GTu qEN+C1ngt7GOVR0awixDXRWPYvbnyP08inoBAjEToTZGFTzTLG92zo6kYJLmpFj5XbS/ WEwA== ARC-Authentication-Results: i=1; mx.google.com; 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 b24si2030598pfd.156.2019.06.07.09.01.19; Fri, 07 Jun 2019 09:01:38 -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; 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 S1730425AbfFGPl4 (ORCPT + 99 others); Fri, 7 Jun 2019 11:41:56 -0400 Received: from foss.arm.com ([217.140.110.172]:42968 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730403AbfFGPlv (ORCPT ); Fri, 7 Jun 2019 11:41:51 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D456C337; Fri, 7 Jun 2019 08:41:50 -0700 (PDT) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 98B363F718; Fri, 7 Jun 2019 08:41:49 -0700 (PDT) Date: Fri, 7 Jun 2019 16:41:47 +0100 From: Will Deacon To: Nathan Chancellor Cc: Qian Cai , Dave Martin , Catalin Marinas , linux-arm-kernel@lists.infradead.org, "linux-kernel@vger.kernel.org" , Ard Biesheuvel , linux-efi@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: "arm64: Silence gcc warnings about arch ABI drift" breaks clang Message-ID: <20190607154147.GD19862@fuggles.cambridge.arm.com> References: <1559920965.6132.56.camel@lca.pw> <20190607152517.GC19862@fuggles.cambridge.arm.com> <1559921171.6132.57.camel@lca.pw> <20190607154010.GA41392@archlinux-epyc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190607154010.GA41392@archlinux-epyc> User-Agent: Mutt/1.11.1+86 (6f28e57d73f2) () Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 07, 2019 at 08:40:10AM -0700, Nathan Chancellor wrote: > On Fri, Jun 07, 2019 at 11:26:11AM -0400, Qian Cai wrote: > > On Fri, 2019-06-07 at 16:25 +0100, Will Deacon wrote: > > > On Fri, Jun 07, 2019 at 11:22:45AM -0400, Qian Cai wrote: > > > > The linux-next commit "arm64: Silence gcc warnings about arch ABI drift" [1] > > > > breaks clang build where it screams that unknown option "-Wno-psabi" and > > > > generates errors below, > > > > > > So that can be easily fixed with cc-option... > > > > > > > [1] https://lore.kernel.org/linux-arm-kernel/1559817223-32585-1-git-send-ema > > > > il-D > > > > ave.Martin@arm.com/ > > > > > > > > ./drivers/firmware/efi/libstub/arm-stub.stub.o: In function > > > > `install_memreserve_table': > > > > ./linux/drivers/firmware/efi/libstub/arm-stub.c:73: undefined reference to > > > > `__efistub___stack_chk_guard' > > > > ./linux/drivers/firmware/efi/libstub/arm-stub.c:73: undefined reference to > > > > `__efistub___stack_chk_guard' > > > > ./linux/drivers/firmware/efi/libstub/arm-stub.c:93: undefined reference to > > > > `__efistub___stack_chk_guard' > > > > ./linux/drivers/firmware/efi/libstub/arm-stub.c:93: undefined reference to > > > > `__efistub___stack_chk_guard' > > > > ./linux/drivers/firmware/efi/libstub/arm-stub.c:94: undefined reference to > > > > `__efistub___stack_chk_fail > > > > > > ... but this looks unrelated. Are you saying you don't see these errors if > > > you revert Dave's patch? > > > > Yes. > > I suspect the reason for this is -Wunknown-warning-option causes > cc-option to fail. I see some disabled warnings like > -Waddress-of-packed-member and -Wunused-const-variable when -Wno-psabi > is unconditionally added. > > I'll do some further triage but I think the obvious fix as Will > suggested is to use cc-disable-warning. I'll send a patch. Cheers, Nathan. I've already sent the pull for -rc4, but I can send your fix for -rc5 next week. Will