From patchwork Mon Oct 1 09:44:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 10621739 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BB0856CB for ; Mon, 1 Oct 2018 09:45:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A93EF2866D for ; Mon, 1 Oct 2018 09:45:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C9AB29137; Mon, 1 Oct 2018 09:45:29 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 EBA7A2866D for ; Mon, 1 Oct 2018 09:45:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729088AbeJAQWY (ORCPT ); Mon, 1 Oct 2018 12:22:24 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:64029 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729081AbeJAQWX (ORCPT ); Mon, 1 Oct 2018 12:22:23 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id w919iipI005108; Mon, 1 Oct 2018 18:44:44 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com w919iipI005108 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1538387085; bh=WUXFT2P0NSk4Fbu7xQA1bRb++hUQ2jt1i2HYH+Xzm38=; h=From:To:Cc:Subject:Date:From; b=uX5xv4rzB3D6LP2ZHst8Qplwkga1VgVCRbPBCQMoYqigtE9d1p7Wm3AqR775E1wI9 j09+13e/zTSrkqcWThhQZXw/7JB5V2LP8TTtnVTZsJ5bcKuxrTi/Iwl2s44QAoCpJ3 UBtD1uVP/EdI8mi4eHxAVzBQ40EaCsU6hJWpgU3G+2C4kWpPRze9rQ78PVm4KkBIQC DFPE/63yzBXt7p1Ov2Tc7ot4w+Xcy6FjKW8Myha9+4dpYgsVEyT1aXzAOJBLPsGpXE a+lD8EnVIBvPl4xACE/9fNlOUMolg1Q2dr6VOTGxubZegSjEGLN0KY4GyxVKzaFj4R CLvEHpSKOkJcg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Arnd Bergmann , Kees Cook , Nick Desaulniers , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 1/3] kbuild: add -Wno-pointer-sign flag unconditionally Date: Mon, 1 Oct 2018 18:44:36 +0900 Message-Id: <1538387078-21892-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 We have raised the compiler requirement from time to time. With commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6"), the minimum for GCC is 4.6 now. The -Wno-pointer-sign has been here since the pre-git era. It is documented in the GCC 4.6 manual, and it is recognized by Clang and ICC as well. Let's rip off the cc-disable-warning switch, and see if somebody complains about it. Signed-off-by: Masahiro Yamada Tested-by: Nick Desaulniers --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c6d1f2f..505a324 100644 --- a/Makefile +++ b/Makefile @@ -800,7 +800,7 @@ NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) # disable pointer signed / unsigned warnings in gcc 4.0 -KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign) +KBUILD_CFLAGS += -Wno-pointer-sign # disable stringop warnings in gcc 8+ KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)