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: 9678449 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 85EEB60325 for ; Wed, 12 Apr 2017 22:26:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76BAC28639 for ; Wed, 12 Apr 2017 22:26:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A01E28648; Wed, 12 Apr 2017 22:26:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D8AE28639 for ; Wed, 12 Apr 2017 22:26:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754675AbdDLW0v (ORCPT ); Wed, 12 Apr 2017 18:26:51 -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-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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)