X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=Documentation%2Fsparse.txt;h=34c76a55bc0423182db5c73f76415503e2a7de1d;hb=bf30a4309d4294d3eca248ea8a20c1c3570f5e74;hp=f9c99c9a54f937616903a5fa5d0b8fee2fd020ae;hpb=1c7bafe7206d928eaccbcbd08d868733e0fb7054;p=safe%2Fjmp%2Flinux-2.6 diff --git a/Documentation/sparse.txt b/Documentation/sparse.txt index f9c99c9..34c76a5 100644 --- a/Documentation/sparse.txt +++ b/Documentation/sparse.txt @@ -42,14 +42,26 @@ sure that bitwise types don't get mixed up (little-endian vs big-endian vs cpu-endian vs whatever), and there the constant "0" really _is_ special. +__bitwise__ - to be used for relatively compact stuff (gfp_t, etc.) that +is mostly warning-free and is supposed to stay that way. Warnings will +be generated without __CHECK_ENDIAN__. + +__bitwise - noisy stuff; in particular, __le*/__be* are that. We really +don't want to drown in noise unless we'd explicitly asked for it. + + Getting sparse ~~~~~~~~~~~~~~ -With git, you can just get it from +You can get latest released versions from the Sparse homepage at +http://www.kernel.org/pub/linux/kernel/people/josh/sparse/ + +Alternatively, you can get snapshots of the latest development version +of sparse using git to clone.. - rsync://rsync.kernel.org/pub/scm/devel/sparse/sparse.git + git://git.kernel.org/pub/scm/linux/kernel/git/josh/sparse.git -and DaveJ has tar-balls at +DaveJ has hourly generated tarballs of the git tree available at.. http://www.codemonkey.org.uk/projects/git-snapshots/sparse/ @@ -69,10 +81,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 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__: +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__: - make C=2 CHECKFLAGS="-D__CHECK_ENDIAN__" + make C=2 CF="-D__CHECK_ENDIAN__" These checks are disabled by default as they generate a host of warnings.