aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-05 03:29:04 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-05 03:29:04 -0700
commit189551650cc6f4b9c72f1035703829c72a7bf479 (patch)
tree8f7ffcdeb6861de9e34b2cdf0f44e7b3721a64b8 /Makefile
parent00a87a388cd7be2261d2bcc6ecc045d8681a5138 (diff)
downloadhistory-189551650cc6f4b9c72f1035703829c72a7bf479.tar.gz
Fix up CHECKFLAGS definitions
More recent versions of sparse do not define the Linux-specific default defines, so we make the main Makefile default to the regular Linux preprocessor defines (__linux__, linux, __STDC__ and unix, __unix__). Also, sparse has long since fixed the default empty define to be "1" as in regular C, so remove the unnecessary "=1" from the architecture-specific sparse CHECKFLAGS.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 16c870f535f38b..1634ad5397fb3e 100644
--- a/Makefile
+++ b/Makefile
@@ -326,7 +326,7 @@ DEPMOD = /sbin/depmod
KALLSYMS = scripts/kallsyms
PERL = perl
CHECK = sparse
-CHECKFLAGS :=
+CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__
MODFLAGS = -DMODULE
CFLAGS_MODULE = $(MODFLAGS)
AFLAGS_MODULE = $(MODFLAGS)