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: 153783 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1782397ljp; Fri, 14 Dec 2018 00:06:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/VLPKMPFZhrMoQ35D6MnMULUaAEqonoR6PS9u+AJ8nVaAYajLZTanC+9FLcHF9L8Org4aOX X-Received: by 2002:a63:1412:: with SMTP id u18mr1813630pgl.247.1544774777256; Fri, 14 Dec 2018 00:06:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544774777; cv=none; d=google.com; s=arc-20160816; b=anMolOjbxQFQ42RQ4Bx7DE/fzmkBMJr5vaxQ7WbQ+hJg2Pf6KkBiZ9l+jBqNM5FLwo WOxq+bW+wBhynCV3xD8UQzsN79EkwicqthBrSnCPe9P/Hoqf4A+4Owa0t94hIPqDgeXA O3kMjnENJKJmqOsaU20f4sPseBNZWUM1fb1TEdL2Q35qdkhygWWnv8JtFE+liajWHhLz qIStOzCjsaQUVEOrkUN6xOI/ZnNWa/7zJcqY67q2Amzhv1WU44Umf2DFBNgKW5lBjOQr tQQP8PiwcdPFGe2lyN16f4Gh0HNavGs8S0PEkhZtCkjk88/9dmKG/h8slvZ4JMB7ogZ6 EFvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=eeLM3yACvMlm4qQoSUGrytPeIoGakC/t2YMNbBYPQoE=; b=Dh6nMTRoRmMRM2wufZ4dCTRl2hFTARsCXwahtiruwnw8Li1MA6S6fRSi5rHdUV2d7E G/kn0ztK71D18SsSKfV+rx3fYX6jUn9U+4hpLy60ymDPxJ+BLRSOLaIBSz2vAzaWxIzX B3b/+e/WnUAH8Cmt0d3scJjW+lfCeW87eX4JJZOCpuX2SCCKoLLn8znxchm6iW1/6oJ9 TD7M9irPe/5VBTl5eRMit1XCIrCKAGiEGaddKrG0KDfogEOaEQmyRRyQ14BoC3zTaG6Y /Ppix1PM/1RVseKOCyzTJoBcCH+JdZpUuC790DvuWknKwPQba7e49ivA/GRoRNxM2Hu5 Py4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=PJHiINlb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si3620800pgh.18.2018.12.14.00.06.16; Fri, 14 Dec 2018 00:06:16 -0800 (PST) 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 header.s=dec2015msa header.b=PJHiINlb; 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 S1728042AbeLNIGP (ORCPT + 31 others); Fri, 14 Dec 2018 03:06:15 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.7.4 Reviewed-by: Nick Desaulniers 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)