aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/Makefile.in')
-rw-r--r--module/zfs/Makefile.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/zfs/Makefile.in b/module/zfs/Makefile.in
index 66acc536d..cb352bf91 100644
--- a/module/zfs/Makefile.in
+++ b/module/zfs/Makefile.in
@@ -3,10 +3,13 @@ obj = @abs_builddir@
MODULE := zfs
-EXTRA_CFLAGS = $(ZFS_MODULE_CFLAGS) @KERNELCPPFLAGS@
-
obj-$(CONFIG_ZFS) := $(MODULE).o
+ccflags-y := $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
+
+# Suppress unused but set variable warnings often due to ASSERTs
+ccflags-y += $(NO_UNUSED_BUT_SET_VARIABLE)
+
$(MODULE)-objs += abd.o
$(MODULE)-objs += arc.o
$(MODULE)-objs += blkptr.o