From 44e086cae60b0d0edeccd12a9b972372fdb6cfca Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Fri, 14 Feb 2020 15:41:21 -0500 Subject: kbuild: sync with Linux 4.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update some build scripts to match Linux 4.3. Commit-based syncing was done so as to not break U-boot specific changes. This continues the syncing process started previously in this series. The commits imported from Linux (some with adjustments) are: [1] commit 26ea6bb1fef06c686be771903ecab0518af5c2de Author: Behan Webster kbuild, LLVMLinux: Supress warnings unless W=1-3 [For all of the Kbuild changes within Linux] Signed-off-by: Behan Webster Signed-off-by: Jan-Simon Möller Signed-off-by: Mark Charlebois Signed-off-by: Michal Marek [For applying within U-Boot] Signed-off-by: Tom Rini --- scripts/Makefile.extrawarn | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 1105c76be1..51ed28a56f 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -77,4 +77,13 @@ DTC_FLAGS += -Wno-pci_device_reg DTC_FLAGS += -Wno-avoid_unnecessary_addr_size DTC_FLAGS += -Wno-alias_paths +ifeq ($(cc-name),clang) +KBUILD_CFLAGS += $(call cc-disable-warning, initializer-overrides) +KBUILD_CFLAGS += $(call cc-disable-warning, unused-value) +KBUILD_CFLAGS += $(call cc-disable-warning, format) +KBUILD_CFLAGS += $(call cc-disable-warning, unknown-warning-option) +KBUILD_CFLAGS += $(call cc-disable-warning, sign-compare) +KBUILD_CFLAGS += $(call cc-disable-warning, format-zero-length) +KBUILD_CFLAGS += $(call cc-disable-warning, uninitialized) +endif endif -- cgit v1.2.1