Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3543981imu; Fri, 30 Nov 2018 02:01:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/UHc1rEPk8XgVwyl/SRWan/QFt1ZdvRlPgW33E6wojIWQ7jHLf8edrVJHP9c6+p9IyC9PDm X-Received: by 2002:a63:ae01:: with SMTP id q1mr3049489pgf.402.1543572080889; Fri, 30 Nov 2018 02:01:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543572080; cv=none; d=google.com; s=arc-20160816; b=AsFhihdLyRXflmP9uUQuQ1hL64dDxzmNNDtU2rDHxTbQBmz47j+HhOvIMVlRY65mzJ 5runKQ238vDQHR79ZeXe7D/eZotxH0UwKyC1tDZV0wJ/MBc3oxBCstmXLnYRSRox+oeW 4C1NwolJBcr74t/cXJmhzlDhYxrPYkpT07a0LGI1hPDKRcNkgAWFu7QNg/FeHO1htRkD s/7e0IxQJRRt0/4e9FzDdUtA8Jd2mYFuiGCvILH7JnsHXVg6FrOvi+s4DrUUqzY6OkrW 5Y7Su49Zb5HKLBLOypwzmHTzYzFjUzmTg+g4HAdqOwxHfCG6+D0quiH0tsnmRQGAMN6W y7TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=cBPLLgyrH98TT8DDwuXYRReaKX+HTbQGvl4MQGnS4oc=; b=l+9BtUb2BqIWs5p5zktwNhy3UEClPim0T0lP+S0L74mVZo1gRu9I9vvoly32FlbK/j lMHqsdo58zJk0DYNzQ/eraUxjPiRGsgUdqStDciP4hAztW4G91oPQRMDgqsNQTnrQTcT gfkNHAUqdtkNOZUcG13CVrJEbuRXAKTfAj4nvFUwqtQ27LQ6b90LUj/wasWAj+sBRato DYr05o9jPGC7xyXkHmxjx99UY8coz5BM09uaiJGwFGdlFyx/g7SQ7fax+YCrE+RMMdrh ozy1l9PS4CA31bCo+r4Ixjpw2YbZ2sf57tXflG0uQmV1rHiFs4vou+fNzcKqh2HfoW6p fE/A== 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 v5si4526629ply.74.2018.11.30.02.01.05; Fri, 30 Nov 2018 02:01:20 -0800 (PST) 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 S1726644AbeK3VJS (ORCPT + 99 others); Fri, 30 Nov 2018 16:09:18 -0500 Received: from terminus.zytor.com ([198.137.202.136]:40923 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726469AbeK3VJS (ORCPT ); Fri, 30 Nov 2018 16:09:18 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id wAU9xlND3262102 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 30 Nov 2018 01:59:47 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id wAU9xlVd3262099; Fri, 30 Nov 2018 01:59:47 -0800 Date: Fri, 30 Nov 2018 01:59:47 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Nathan Chancellor Message-ID: Cc: torvalds@linux-foundation.org, julien.thierry@arm.com, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, zhuyifei1999@gmail.com, arend.vanspriel@broadcom.com, matt@codeblueprint.co.uk, eric.snowberg@oracle.com, ard.biesheuvel@linaro.org, bp@alien8.de, joe@perches.com, peterz@infradead.org, luto@kernel.org, jonathanh@nvidia.com, mingo@kernel.org, sedat.dilek@gmail.com, sai.praneeth.prakhya@intel.com, bhsharma@redhat.com, dave.hansen@intel.com, hpa@zytor.com, natechancellor@gmail.com, hdegoede@redhat.com Reply-To: ard.biesheuvel@linaro.org, bp@alien8.de, luto@kernel.org, mingo@kernel.org, jonathanh@nvidia.com, joe@perches.com, peterz@infradead.org, bhsharma@redhat.com, dave.hansen@intel.com, sai.praneeth.prakhya@intel.com, sedat.dilek@gmail.com, natechancellor@gmail.com, hpa@zytor.com, hdegoede@redhat.com, torvalds@linux-foundation.org, julien.thierry@arm.com, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, zhuyifei1999@gmail.com, tglx@linutronix.de, matt@codeblueprint.co.uk, arend.vanspriel@broadcom.com, eric.snowberg@oracle.com In-Reply-To: <20181129171230.18699-8-ard.biesheuvel@linaro.org> References: <20181129171230.18699-8-ard.biesheuvel@linaro.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:efi/core] efi/libstub: Disable some warnings for x86{,_64} Git-Commit-ID: 3db5e0ba8b8f4aee631d7ee04b7a11c56cfdc213 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=1.6 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_48_96,FREEMAIL_FORGED_REPLYTO, FREEMAIL_REPLYTO_END_DIGIT autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 3db5e0ba8b8f4aee631d7ee04b7a11c56cfdc213 Gitweb: https://git.kernel.org/tip/3db5e0ba8b8f4aee631d7ee04b7a11c56cfdc213 Author: Nathan Chancellor AuthorDate: Thu, 29 Nov 2018 18:12:26 +0100 Committer: Ingo Molnar CommitDate: Fri, 30 Nov 2018 09:10:31 +0100 efi/libstub: Disable some warnings for x86{,_64} When building the kernel with Clang, some disabled warnings appear because this Makefile overrides KBUILD_CFLAGS for x86{,_64}. Add them to this list so that the build is clean again. -Wpointer-sign was disabled for the whole kernel before the beginning of Git history. -Waddress-of-packed-member was disabled for the whole kernel and for the early boot code in these commits: bfb38988c51e ("kbuild: clang: Disable 'address-of-packed-member' warning") 20c6c1890455 ("x86/boot: Disable the address-of-packed-member compiler warning"). -Wgnu was disabled for the whole kernel and for the early boot code in these commits: 61163efae020 ("kbuild: LLVMLinux: Add Kbuild support for building kernel with Clang") 6c3b56b19730 ("x86/boot: Disable Clang warnings about GNU extensions"). [ mingo: Made the changelog more readable. ] Tested-by: Sedat Dilek Signed-off-by: Nathan Chancellor Signed-off-by: Ard Biesheuvel Reviewed-by: Sedat Dilek Cc: Andy Lutomirski Cc: Arend van Spriel Cc: Bhupesh Sharma Cc: Borislav Petkov Cc: Dave Hansen Cc: Eric Snowberg Cc: Hans de Goede Cc: Joe Perches Cc: Jon Hunter Cc: Julien Thierry Cc: Linus Torvalds Cc: Marc Zyngier Cc: Matt Fleming Cc: Peter Zijlstra Cc: Sai Praneeth Prakhya Cc: Thomas Gleixner Cc: YiFei Zhu Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/20181129171230.18699-8-ard.biesheuvel@linaro.org Link: https://github.com/ClangBuiltLinux/linux/issues/112 Signed-off-by: Ingo Molnar --- drivers/firmware/efi/libstub/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/efi/libstub/Makefile b/drivers/firmware/efi/libstub/Makefile index c51627660dbb..d9845099635e 100644 --- a/drivers/firmware/efi/libstub/Makefile +++ b/drivers/firmware/efi/libstub/Makefile @@ -9,7 +9,10 @@ cflags-$(CONFIG_X86_32) := -march=i386 cflags-$(CONFIG_X86_64) := -mcmodel=small cflags-$(CONFIG_X86) += -m$(BITS) -D__KERNEL__ -O2 \ -fPIC -fno-strict-aliasing -mno-red-zone \ - -mno-mmx -mno-sse -fshort-wchar + -mno-mmx -mno-sse -fshort-wchar \ + -Wno-pointer-sign \ + $(call cc-disable-warning, address-of-packed-member) \ + $(call cc-disable-warning, gnu) # arm64 uses the full KBUILD_CFLAGS so it's necessary to explicitly # disable the stackleak plugin