From patchwork Fri Dec 14 08:05:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 153782 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1782370ljp; Fri, 14 Dec 2018 00:06:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/WDCUueP4u9Rzz1c9rz8Wl3Bi6RuIk2agOKXbFf935VqEAlf4rFTZlfrdtgAlpzKZo2aKWN X-Received: by 2002:a17:902:6e0f:: with SMTP id u15mr1933525plk.175.1544774775961; Fri, 14 Dec 2018 00:06:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544774775; cv=none; d=google.com; s=arc-20160816; b=OIzCfjhc3PU6rlI/vvQoXc6DC5/tZTvn7D6wdKyEBRHTIiLf+U6OK2S+OF0qvcCdpL PP1kYryAvU29zU2FRJuq874hQerW5XGQyfAFfy/LF2wrwohIOEAEPyc7diMMPbNQ55lv YBi+fcE4Dh+y7hWzC+xi1ZGFzn509JY8qtXS60WASKBhLK/x7WqywXcK1TC0cSuZdTHt qNVBT7kG0VtQzaWglhDo5Cu2xCnJc2wimofD8hWw8E+xVxWNt3fZwJ6umR0qhBwhv2qT 0/Ttp0zq08fWlReyZi4nz2+N8NHCWa1qr+fpXcWXQ5dDkCaZDFIq1WUHwSHwK5GAT6td 81SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=ArJU08QIaYQfsMfVzx2Mq0aAU+APf+PvHjRju2O0Aw4=; b=uIiVF045KuIrXRnz9r5zYkrXcy09GfuOGsZ/gir7seW8OXwLWQqoxngVog+dsX5/2f tqfU/HK3YyG2GWddWh5ESferG9szMv41QeJmu4FdJKP+mqUwDE2iW21c/j528laSUgp9 +6qt56AD8vApomlvzOjANIHVKQ8a5WE+2hZnTYgVaPq9zBsH9gakWnHMoEIY4fkeSkzb BUuH3r8OSNqC+Zeyhb8ye5MpyL96c+Jxal0lFQ4lEfTEaVRdb/7eDtAYPfuWl4ng3nnb G8F2qN8wfOn42b4fsmluKKjKCdOU6q3gDX+RhuI50rwT7I3eYdOib53aJY1XiN1e1JWy N/aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JaonNPXG; 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 x23si3544905pgj.247.2018.12.14.00.06.15; Fri, 14 Dec 2018 00:06:15 -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=JaonNPXG; 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 S1727856AbeLNIGN (ORCPT + 31 others); Fri, 14 Dec 2018 03:06:13 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:28077 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727634AbeLNIGN (ORCPT ); Fri, 14 Dec 2018 03:06:13 -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 wBE85gQS007194; Fri, 14 Dec 2018 17:05:42 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com wBE85gQS007194 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1544774743; bh=ArJU08QIaYQfsMfVzx2Mq0aAU+APf+PvHjRju2O0Aw4=; h=From:To:Cc:Subject:Date:From; b=JaonNPXGoWQ6jrHHHisU8+Ps5kea5c26YXJrOkQhSVm7aVaHoyEwt5vB3Ayxf9trN Kf3bDiPpJamoPmQ2BcvMA1eI5BifJGdhECYQL0JfPvxCs54t+myHNpvvl6Mj6DEEng vA6MXTB8pBPsfx2SUvz51OmpBPu4M1y3BDcn88M24lHe6EIOwTWj5S17SG8hDd7BNQ fstwAiOCppv9Y8EhTnZlfLLoPxZNsZ9OPssFqo/fMpNENTQKJCBlfUiOmt893h9u3k ckpetzNe0hi0QcxYbgYcMEZiEgduNSfqyYMweUlb+/fckLFWKa/6ElRyjzPXmXLM3b D4jy0CnGcaTzQ== 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 1/3] kbuild: add -fno-PIE flag unconditionally Date: Fri, 14 Dec 2018 17:05:37 +0900 Message-Id: <1544774739-13471-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 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 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) -- 2.7.4 Reviewed-by: Nick Desaulniers diff --git a/Makefile b/Makefile index f2c3423..3bbc16a 100644 --- a/Makefile +++ b/Makefile @@ -422,9 +422,9 @@ LINUXINCLUDE := \ -I$(objtree)/include \ $(USERINCLUDE) -KBUILD_AFLAGS := -D__ASSEMBLY__ +KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ - -fno-strict-aliasing -fno-common -fshort-wchar \ + -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \ -Werror-implicit-function-declaration \ -Wno-format-security \ -std=gnu89 @@ -510,9 +510,6 @@ RETPOLINE_VDSO_CFLAGS := $(call cc-option,$(RETPOLINE_VDSO_CFLAGS_GCC),$(call cc export RETPOLINE_CFLAGS export RETPOLINE_VDSO_CFLAGS -KBUILD_CFLAGS += $(call cc-option,-fno-PIE) -KBUILD_AFLAGS += $(call cc-option,-fno-PIE) - # check for 'asm goto' ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y) CC_HAVE_ASM_GOTO := 1 From patchwork Fri Dec 14 08:05:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 153784 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1782454ljp; Fri, 14 Dec 2018 00:06:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/XU4jTnwT64e1PzrkdFX8R5XXGuZof4N/CvY5FbY1Cu5rCaZ1wo+eWgqQTRI1X1836oftOL X-Received: by 2002:a63:ff62:: with SMTP id s34mr1845373pgk.325.1544774778820; Fri, 14 Dec 2018 00:06:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544774778; cv=none; d=google.com; s=arc-20160816; b=LtvFFFM37sv8g8Djy2Ig3+O11ZX/lAtX/IJsKYDThJ6QeaU+v2xJ/x86VzJOQIpaG3 wlhL4d2ZYx6hoBPV0qcAt4U4oQxiQYHF0HE/Os0woo2MPdBC1C9TH6bHHfVXemxQ+Djq b83o8z0xIUFej/8wmDhA02oYo8vxbeQqjhBNFSIodHMUsPnn0NlsbjMDUEFIKu1PHAPD T8dg9wftEF/foWLUs38fGKle3tiT9HLEumbnLJaOu0ukKWz0EOY+pdZAZ4MR7qeif4nM wzMvM5dfmFMXNQ06OORqmw9gw56TFRG3xyPzrVaQvecrextsGkX6VoG854/c860K9TW7 wD9Q== 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=vr8fjlTWSuQGReVOV6A95VVc8nQk5JFmiCc4p1232Qs=; b=b3cXscqzlA8z7AkhX/kcjSRUAFlo1omrtM5DdS31J/qn4vJ+j/izqkBKl/aIN7047J 011vtuTVHXvG4C0SKNRXniqyW2X2SsKDaXhmMbdSvg4g7Hxo65Buu3ZgP3RK99IyCKPL kLMSToEPJKkJ3mCotJ2pwfXvqOlpPzX/IGKT45U4i3rxi3EGP5xMDqTDTlO3K3V8qmH1 gzH3s1eZFDoMFzfFrR8CrSX4zlcXnrMdFa83h9YY8zI2rVFo2wEK9J9u/B4xFnAy0fU2 7wCv2Bk4C6k1R16o646KXND3GPx6engNpaCUTb8PbwM5bYqk3/u9f8jhCqcKKUr47ypj jUEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=I3041r5K; 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 23si3581784pfu.2.2018.12.14.00.06.18; Fri, 14 Dec 2018 00:06:18 -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=I3041r5K; 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 S1728196AbeLNIGR (ORCPT + 31 others); Fri, 14 Dec 2018 03:06:17 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:28078 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726520AbeLNIGN (ORCPT ); Fri, 14 Dec 2018 03:06:13 -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 wBE85gQT007194; Fri, 14 Dec 2018 17:05:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com wBE85gQT007194 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1544774743; bh=vr8fjlTWSuQGReVOV6A95VVc8nQk5JFmiCc4p1232Qs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I3041r5Knm6b+kaLVYalZJWugpGR5GLXvq1xmQwrVq83RYvZBKHQvvuitiOMqSy9O /OwHZlr91OLniJrkopfK8duDBMmi4UbfItTPaP4nl/EE71rMrUbZEhAKKm4sANgzTH OAPY2VAtYXa5q53dD6A6kVBtutfOvLMo7Mu45IZXNEzO2euxRz1Nsk3TaELHfngbPT omCNq8jJWnH8C/OUyv+E/jesd2hU7oENStt6H54OwOdvPccPOQJzs/Sc5wecTRH+fR NmKxcA+U2SQ0F0buUyqq5+7bkwC/Yr4H9MAEK71Eif4otxgrWfLHzEWfABtKdfz1hJ tnH7vTngRUxCA== 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 2/3] kbuild: add -Werror=strict-prototype flag unconditionally Date: Fri, 14 Dec 2018 17:05:38 +0900 Message-Id: <1544774739-13471-2-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 -Wstrict-prototype is added to KBUILD_CFLAGS first, then overridden by -Werror=strict-prototype later. Let's add -Werror=strict-prototypes unconditionally because it is supported by GCC 4.6, and also by Clang. 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 3bbc16a..bcb943e 100644 --- a/Makefile +++ b/Makefile @@ -423,7 +423,7 @@ LINUXINCLUDE := \ $(USERINCLUDE) KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE -KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ +KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \ -Werror-implicit-function-declaration \ -Wno-format-security \ @@ -828,9 +828,6 @@ KBUILD_CFLAGS += $(call cc-option,-fconserve-stack) # disallow errors like 'EXPORT_GPL(foo);' with missing header KBUILD_CFLAGS += $(call cc-option,-Werror=implicit-int) -# require functions to have arguments in prototypes, not empty 'int foo()' -KBUILD_CFLAGS += $(call cc-option,-Werror=strict-prototypes) - # Prohibit date/time macros, which would make the build non-deterministic KBUILD_CFLAGS += $(call cc-option,-Werror=date-time) 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)