* [PATCH] kbuild: sparse needs CF not CHECKFLAGS
@ 2008-06-20 13:45 Geert Uytterhoeven
2008-06-27 21:07 ` Sam Ravnborg
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2008-06-20 13:45 UTC (permalink / raw)
To: Sam Ravnborg, Robert P. J. Day; +Cc: linux-kbuild, Linux Kernel Development
[-- Attachment #1: Type: TEXT/PLAIN, Size: 2625 bytes --]
Documentation/sparse.txt tells to use:
make C=2 CHECKFLAGS="-D__CHECK_ENDIAN__"
However, this still doesn't enable endian checks. The correct syntax is:
make C=2 CF="-D__CHECK_ENDIAN__"
This documentation bug was introduced by the following commit:
commit 1c7bafe7206d928eaccbcbd08d868733e0fb7054
Author: Robert P. J. Day <rpjday@mindspring.com>
Date: Wed Sep 13 07:57:50 2006 -0400
kbuild: clarify "make C=" build option
Clarify the use of "make C=" in the top-level Makefile, and fix a
typo in the Documentation file.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This `typo' was not a typo, as `CF' had been introduced much earlier, by:
commit 7b49bb9aff8b14d15da58111d8908c877c0a525e
Author: viro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk>
Date: Fri Sep 9 21:14:35 2005 +0100
[PATCH] kbuild: CF=<arguments> passes arguments to sparse
Allows to add to sparse arguments without mutilating makefiles - just
pass CF=<arguments> and they will be added to CHECKFLAGS.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
---
Documentation/sparse.txt | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- a/Documentation/sparse.txt
+++ b/Documentation/sparse.txt
@@ -73,10 +73,10 @@ recompiled, or use "make C=2" to run spa
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.
With kind regards,
Geert Uytterhoeven
Software Architect
Sony Techsoft Centre
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/
Sony Technology and Software Centre Europe
A division of Sony Service Centre (Europe) N.V.
Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium
VAT BE 0413.825.160 · RPR Brussels
Fortis 293-0376800-10 GEBA-BE-BB
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] kbuild: sparse needs CF not CHECKFLAGS
2008-06-20 13:45 [PATCH] kbuild: sparse needs CF not CHECKFLAGS Geert Uytterhoeven
@ 2008-06-27 21:07 ` Sam Ravnborg
0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2008-06-27 21:07 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Robert P. J. Day, linux-kbuild, Linux Kernel Development
On Fri, Jun 20, 2008 at 03:45:12PM +0200, Geert Uytterhoeven wrote:
> Documentation/sparse.txt tells to use:
>
> make C=2 CHECKFLAGS="-D__CHECK_ENDIAN__"
>
> However, this still doesn't enable endian checks. The correct syntax is:
>
> make C=2 CF="-D__CHECK_ENDIAN__"
>
> This documentation bug was introduced by the following commit:
>
> commit 1c7bafe7206d928eaccbcbd08d868733e0fb7054
> Author: Robert P. J. Day <rpjday@mindspring.com>
> Date: Wed Sep 13 07:57:50 2006 -0400
>
> kbuild: clarify "make C=" build option
>
> Clarify the use of "make C=" in the top-level Makefile, and fix a
> typo in the Documentation file.
>
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
>
> This `typo' was not a typo, as `CF' had been introduced much earlier, by:
>
> commit 7b49bb9aff8b14d15da58111d8908c877c0a525e
> Author: viro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk>
> Date: Fri Sep 9 21:14:35 2005 +0100
>
> [PATCH] kbuild: CF=<arguments> passes arguments to sparse
>
> Allows to add to sparse arguments without mutilating makefiles - just
> pass CF=<arguments> and they will be added to CHECKFLAGS.
>
> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
>
> Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Applied
Sam
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-27 21:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-20 13:45 [PATCH] kbuild: sparse needs CF not CHECKFLAGS Geert Uytterhoeven
2008-06-27 21:07 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox