This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
en:developers:documentation:using-sparse [2017/10/24 02:49] Nikolas Nyby [Version of sparse to use] version update |
en:developers:documentation:using-sparse [2019/03/30 14:56] Luc Van Oostenryck [Endian checks] automatically enabled since v4.10-rc1 |
||
---|---|---|---|
Line 39: | Line 39: | ||
===== Endian checks ===== | ===== Endian checks ===== | ||
- | Endian checks are encouraged. Most endian complaints are typically valid and reflect design issues. These should be reviewed carefully. Some drivers force-enable endian checks with sparse by forcing it through their own driver makefiles upstream. If drivers do not have these you can enable sparse checks yourself by appending to your make command: | + | 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. |
- | + | ||
- | + | ||
- | <code>CF="-D__CHECK_ENDIAN__" </code> | + | |
- | To enforce endian checks on your driver you can use something as follows on your driver Makefile: | + | |
- | + | ||
- | + | ||
- | <code>ccflags-y += -D__CHECK_ENDIAN__</code> | + |