From patchwork Wed Apr 12 22:25:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 97347 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp468768qgf; Wed, 12 Apr 2017 15:27:04 -0700 (PDT) X-Received: by 10.84.238.141 with SMTP id v13mr9998plk.13.1492036024924; Wed, 12 Apr 2017 15:27:04 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b88si21770029pli.199.2017.04.12.15.27.04; Wed, 12 Apr 2017 15:27:04 -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; dkim=pass header.i=@nifty.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 S1755507AbdDLW0w (ORCPT + 16 others); Wed, 12 Apr 2017 18:26:52 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:46894 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752765AbdDLW0u (ORCPT ); Wed, 12 Apr 2017 18:26:50 -0400 Received: from grover.sesame (FL1-111-169-71-157.osk.mesh.ad.jp [111.169.71.157]) (authenticated) by conuserg-07.nifty.com with ESMTP id v3CMPY3p009940; Thu, 13 Apr 2017 07:25:38 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com v3CMPY3p009940 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1492035939; bh=YzS+KxLRIC9SBK5NAt2dfjvtm899QzDnTtqn3RxjKWg=; h=From:To:Cc:Subject:Date:From; b=lc9ip77E4v0wg6llLl4DkTBVsIOj8ZOv9R3IX36uiaobTdkmG3CXFJUEnlQOD2dYA 8trTnXCQI64Dd4o9zfNSAQ9criCNFc6Z6FssV9GlfuSqP80q84Z5GRgxdX6+yPirjO XDp0+wloO7uHYWm2s5aSgJSSNmOEnWu6wa87bPxk6rrH9GE2gQN9OhKDeveMaJbMW0 vKyZ9FQUtPOyapfmNybnyCAYM5yVOUbwVMYtuKJb+Q2LsVlx8KHLz0USXciDvqgQ0y E24Lv2Kbx182dy0LUaIglEh4Lvu7dGudOxK6wHid5fkAJAy7s1v450hSdstmIBeAKn WTNJD06M6OIhA== X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Matthias Kaehlcke , Behan Webster , Arnd Bergmann , Mark Charlebois , Kees Cook , Michael Davidson , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: drop -Wno-unknown-warning-option from clang options Date: Thu, 13 Apr 2017 07:25:21 +0900 Message-Id: <1492035921-9538-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit c3f0d0bc5b01 ("kbuild, LLVMLinux: Add -Werror to cc-option to support clang"), cc-option and friends work correctly for clang. However, the combination of -Werror and -Wno-unknown-warning-option makes clang happy with any unknown warning options. Once -Wno-unknown-warning-option is added, any succeeding call of cc-disable-warning is evaluated positive, then unknown warning options are accepted. This should be dropped. Signed-off-by: Masahiro Yamada --- Makefile | 1 - scripts/Makefile.extrawarn | 1 - 2 files changed, 2 deletions(-) -- 2.7.4 diff --git a/Makefile b/Makefile index 57a3695..03a9f9b 100644 --- a/Makefile +++ b/Makefile @@ -696,7 +696,6 @@ KBUILD_CFLAGS += $(stackp-flag) ifeq ($(cc-name),clang) KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) -KBUILD_CPPFLAGS += $(call cc-option,-Wno-unknown-warning-option,) KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable) KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier) KBUILD_CFLAGS += $(call cc-disable-warning, gnu) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 7c321a6..fb3522f 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -64,7 +64,6 @@ 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)