This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
en:developers:documentation:using-sparse [2019/03/30 14:56] Luc Van Oostenryck [Endian checks] automatically enabled since v4.10-rc1 |
en:developers:documentation:using-sparse [2019/03/30 15:00] (current) Luc Van Oostenryck [Using sparse] C=2 vs C=1 |
||
---|---|---|---|
Line 32: | Line 32: | ||
===== Using sparse ===== | ===== Using sparse ===== | ||
- | To use sparse for kernel development simply pass on the C=1 argument onto your make command. For example to enable sparse for mac80211 development you would use: | + | To use sparse for kernel development simply pass on the C=2 argument onto your make command. For example to enable sparse for mac80211 development you would use: |
+ | |||
+ | |||
+ | <code>make C=2 M=net/mac80211/</code> | ||
+ | |||
+ | |||
+ | This will force-check all corresponding source files. To only check files which will be recompiled you would use the C=1 argument: | ||
<code>make C=1 M=net/mac80211/</code> | <code>make C=1 M=net/mac80211/</code> | ||
+ | |||
===== Endian checks ===== | ===== Endian checks ===== | ||
Most endian complaints are typically valid and reflect design issues. These should be reviewed carefully. Happily, since v4.10-rc1 these checks are automatically enabled. | Most endian complaints are typically valid and reflect design issues. These should be reviewed carefully. Happily, since v4.10-rc1 these checks are automatically enabled. |