From patchwork Fri Dec 14 08:05:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 10730679 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 46E6413BF for ; Fri, 14 Dec 2018 08:06:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39F682CB73 for ; Fri, 14 Dec 2018 08:06:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2DF212D25F; Fri, 14 Dec 2018 08:06:15 +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 C730A2CB73 for ; Fri, 14 Dec 2018 08:06:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727634AbeLNIGO (ORCPT ); Fri, 14 Dec 2018 03:06:14 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:28079 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726641AbeLNIGO (ORCPT ); Fri, 14 Dec 2018 03:06:14 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id wBE85gQU007194; Fri, 14 Dec 2018 17:05:44 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com wBE85gQU007194 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1544774744; bh=eeLM3yACvMlm4qQoSUGrytPeIoGakC/t2YMNbBYPQoE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PJHiINlb+62e7Kp1CNGERxt0eQy2NFM8igUhXRJTBeoJHQNzySzDYvBvZTrGTaUIU Ec76Uy9tsDYBFx6IisQZ8dbC1rac+VJzOkcIIinktPAw2QquJiugWcUmsbBmfBzgTf 51Vg/8J6ffS4WiFM9+d5tvyBMy7jAq8ddlPJZeIWfKgeFOTclI31ZdqYHtriSNSJSt 6YjviPDtV9TUCqOAKDOxKx7qytOpoxI8O56rRoh0she/AGpRbW+e8pqHsT5Nb8piwj cdK/wIPnYzSfwRbzgKOy28Y8sE4aFcH3zget/lWjNO1YFoOWt+A9x6WPiLohlS8FzY SnpNi519uv0WA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Nick Desaulniers , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] kbuild: add -Werror=implicit-int flag unconditionally Date: Fri, 14 Dec 2018 17:05:39 +0900 Message-Id: <1544774739-13471-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1544774739-13471-1-git-send-email-yamada.masahiro@socionext.com> References: <1544774739-13471-1-git-send-email-yamada.masahiro@socionext.com> 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 This flag is documented in the GCC 4.6 manual, and recognized by Clang as well. Let's rip off the cc-option switch. Signed-off-by: Masahiro Yamada Reviewed-by: Nick Desaulniers --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bcb943e..b63699b 100644 --- a/Makefile +++ b/Makefile @@ -425,7 +425,7 @@ LINUXINCLUDE := \ KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \ - -Werror-implicit-function-declaration \ + -Werror-implicit-function-declaration -Werror=implicit-int \ -Wno-format-security \ -std=gnu89 KBUILD_CPPFLAGS := -D__KERNEL__ @@ -825,9 +825,6 @@ KBUILD_CFLAGS += $(call cc-option,-fno-stack-check,) # conserve stack if available KBUILD_CFLAGS += $(call cc-option,-fconserve-stack) -# disallow errors like 'EXPORT_GPL(foo);' with missing header -KBUILD_CFLAGS += $(call cc-option,-Werror=implicit-int) - # Prohibit date/time macros, which would make the build non-deterministic KBUILD_CFLAGS += $(call cc-option,-Werror=date-time)