From 18149c6ac307e089abe3dcc078fc3fccf6afc4c6 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Thu, 2 May 2013 10:51:55 +0200 Subject: Add sparse checking support to userspace --- Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 0806623..3453604 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,11 +17,15 @@ endif SUBDIRS = include/libipset lib src +sparse-check: + $(MAKE) -C lib sparse-check + $(MAKE) -C src sparse-check + modules_sparse: if WITH_KMOD ${MAKE} -C $(KBUILD_OUTPUT) M=$$PWD/kernel/net/netfilter \ - V=$V C=2 CF=-D__CHECK_ENDIAN__ \ - KCFLAGS="-DPACKAGE_VERSION=$(PACKAGE_VERSION)" \ + V=$V W=1 C=2 CF="-D__CHECK_ENDIAN__ -Wsparse-all" \ + KCFLAGS="-DPACKAGE_VERSION=$(PACKAGE_VERSION) -DCHECK_KCONFIG -Wextra" \ IP_SET_MAX=$(IP_SET_MAX) KDIR=$$PWD/kernel modules else @echo Skipping kernel modules due to --with-kmod=no -- cgit v1.2.3