From 8ff4760c82fd6e614208d2445a5183e53f8624be Mon Sep 17 00:00:00 2001 From: "Robert P. J. Day" Date: Wed, 13 Sep 2006 07:57:50 -0400 Subject: [PATCH] --- yaml --- r: 35451 b: refs/heads/master c: 1c7bafe7206d928eaccbcbd08d868733e0fb7054 h: refs/heads/master i: 35449: 435bc857cdc637c0a97953367f5a510119c5feaa 35447: 8f44093e037ce2d78b8355745ed095a34dc868dd v: v3 --- [refs] | 2 +- trunk/Documentation/sparse.txt | 8 ++++---- trunk/Makefile | 12 +++++++++--- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/[refs] b/[refs] index 1246aaf6379f..a70dc6f36b7c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e41217129c66775d59c95978378ca42c53dd42c6 +refs/heads/master: 1c7bafe7206d928eaccbcbd08d868733e0fb7054 diff --git a/trunk/Documentation/sparse.txt b/trunk/Documentation/sparse.txt index 5a311c38dd1a..f9c99c9a54f9 100644 --- a/trunk/Documentation/sparse.txt +++ b/trunk/Documentation/sparse.txt @@ -69,10 +69,10 @@ recompiled, or use "make C=2" to run sparse on the files whether they need to be recompiled or not. The latter is a fast way to check the whole tree if you have already built it. -The optional make variable CF can be used to pass arguments to sparse. The -build system passes -Wbitwise to sparse automatically. To perform endianness -checks, you may define __CHECK_ENDIAN__: +The optional make variable CHECKFLAGS can be used to pass arguments to sparse. +The build system passes -Wbitwise to sparse automatically. To perform +endianness checks, you may define __CHECK_ENDIAN__: - make C=2 CF="-D__CHECK_ENDIAN__" + make C=2 CHECKFLAGS="-D__CHECK_ENDIAN__" These checks are disabled by default as they generate a host of warnings. diff --git a/trunk/Makefile b/trunk/Makefile index 0d4a4dc7222d..cd50298fbda7 100644 --- a/trunk/Makefile +++ b/trunk/Makefile @@ -41,9 +41,15 @@ ifndef KBUILD_VERBOSE KBUILD_VERBOSE = 0 endif -# Call checker as part of compilation of C files -# Use 'make C=1' to enable checking (sparse, by default) -# Override with 'make C=1 CHECK=checker_executable CHECKFLAGS=....' +# Call a source code checker (by default, "sparse") as part of the +# C compilation. +# +# Use 'make C=1' to enable checking of only re-compiled files. +# Use 'make C=2' to enable checking of *all* source files, regardless +# of whether they are re-compiled or not. +# +# See the file "Documentation/sparse.txt" for more details, including +# where to get the "sparse" utility. ifdef C ifeq ("$(origin C)", "command line")