From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932867AbdJ3ToU (ORCPT ); Mon, 30 Oct 2017 15:44:20 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:56104 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932729AbdJ3ToS (ORCPT ); Mon, 30 Oct 2017 15:44:18 -0400 X-Google-Smtp-Source: ABhQp+R4ed0zR7mzJRn2FyaJlbaAN9rftzBVvK322QRDVu1rV4Y7UqUR1uyvVLIVnuhfZ7M1Otnerg== From: Matthias Kaehlcke To: "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers , Douglas Anderson , Guenter Roeck , Matthias Kaehlcke Subject: [PATCH] x86/boot: Disable warnings about GNU extensions Date: Mon, 30 Oct 2017 12:43:51 -0700 Message-Id: <20171030194351.122090-1-mka@chromium.org> X-Mailer: git-send-email 2.15.0.rc2.357.g7e34df9404-goog Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 8a958274b54c..65a150a7f15c 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 -- 2.15.0.rc2.357.g7e34df9404-goog