From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753162AbdJaMLJ (ORCPT ); Tue, 31 Oct 2017 08:11:09 -0400 Received: from terminus.zytor.com ([65.50.211.136]:37375 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbdJaMLH (ORCPT ); Tue, 31 Oct 2017 08:11:07 -0400 Date: Tue, 31 Oct 2017 05:05:31 -0700 From: tip-bot for Matthias Kaehlcke Message-ID: Cc: mka@chromium.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@kernel.org, groeck@chromium.org, torvalds@linux-foundation.org, dianders@chromium.org, hpa@zytor.com, nick.desaulniers@gmail.com, peterz@infradead.org Reply-To: nick.desaulniers@gmail.com, peterz@infradead.org, tglx@linutronix.de, groeck@chromium.org, linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com, dianders@chromium.org, torvalds@linux-foundation.org, mka@chromium.org In-Reply-To: <20171030194351.122090-1-mka@chromium.org> References: <20171030194351.122090-1-mka@chromium.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/boot] x86/boot: Disable Clang warnings about GNU extensions Git-Commit-ID: 6c3b56b1973083e2bb4e87eb90ea5368455706dc 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 6c3b56b1973083e2bb4e87eb90ea5368455706dc Gitweb: https://git.kernel.org/tip/6c3b56b1973083e2bb4e87eb90ea5368455706dc Author: Matthias Kaehlcke AuthorDate: Mon, 30 Oct 2017 12:43:51 -0700 Committer: Ingo Molnar CommitDate: Tue, 31 Oct 2017 10:54:30 +0100 x86/boot: Disable Clang warnings about GNU extensions The kernel makes use of several GCC extensions, disable Clang warnings about that in the boot code, as we already do for the rest of the kernel. This suppresses the following warning when building with clang: ./include/linux/cgroup-defs.h:391:16: warning: field 'cgrp' with variable sized type 'struct cgroup' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end] struct cgroup cgrp; Reported-by: Nick Desaulniers Signed-off-by: Matthias Kaehlcke Acked-by: Thomas Gleixner Cc: Douglas Anderson Cc: Guenter Roeck Cc: Linus Torvalds Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20171030194351.122090-1-mka@chromium.org Signed-off-by: Ingo Molnar --- arch/x86/boot/compressed/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile index 8a95827..65a150a 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile @@ -35,6 +35,7 @@ KBUILD_CFLAGS += -mno-mmx -mno-sse KBUILD_CFLAGS += $(call cc-option,-ffreestanding) KBUILD_CFLAGS += $(call cc-option,-fno-stack-protector) KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member) +KBUILD_CFLAGS += $(call cc-disable-warning, gnu) KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ GCOV_PROFILE := n