summaryrefslogtreecommitdiffstats
path: root/module/Kbuild.in
diff options
context:
space:
mode:
authorArvind Sankar <[email protected]>2020-06-16 19:46:04 -0400
committerBrian Behlendorf <[email protected]>2020-06-18 12:21:53 -0700
commitae7b167a98b48260554fd88cef022547283e125f (patch)
treed1d1c10c41d074fa97f5eead53dbcf0a68ea4c22 /module/Kbuild.in
parentc0673571d03a51d9ac014ecb8cbb7a6ca9dee384 (diff)
Enable -Wmissing-prototypes/-Wstrict-prototypes
Switch on warning flags to detect mismatch between declaration and definition. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Arvind Sankar <[email protected]> Closes #10470
Diffstat (limited to 'module/Kbuild.in')
-rw-r--r--module/Kbuild.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/Kbuild.in b/module/Kbuild.in
index b42ce9e6d..120ce87c5 100644
--- a/module/Kbuild.in
+++ b/module/Kbuild.in
@@ -16,6 +16,7 @@ ifneq ($(KERNELRELEASE),)
obj-$(CONFIG_ZFS) := $(ZFS_MODULES)
ZFS_MODULE_CFLAGS += -std=gnu99 -Wno-declaration-after-statement
+ZFS_MODULE_CFLAGS += -Wmissing-prototypes
ZFS_MODULE_CFLAGS += @KERNEL_DEBUG_CFLAGS@ @NO_FORMAT_ZERO_LENGTH@
ifneq ($(KBUILD_EXTMOD),)