Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: submit-checklist: Expand on build tests against different word sizes

Existing sentence on cross-compilation that mentions ppc64 does not
make much sense in today's perspective.

Expand it for the benefits of testing against architectures of
different word sizes and endianness.

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/05c0b99c-c2e9-4702-90fd-8a4127586424@gmail.com

authored by

Akira Yokosawa and committed by
Jonathan Corbet
2783096f 07ab93f3

+6 -3
+6 -3
Documentation/process/submit-checklist.rst
··· 91 91 fix any issues. 92 92 93 93 2) Builds on multiple CPU architectures by using local cross-compile tools 94 - or some other build farm. Note that ppc64 is a good architecture for 95 - cross-compilation checking because it tends to use ``unsigned long`` for 96 - 64-bit quantities. 94 + or some other build farm. 95 + Note that testing against architectures of different word sizes 96 + (32- and 64-bit) and different endianness (big- and little-) is effective 97 + in catching various portability issues due to false assumptions on 98 + representable quantity range, data alignment, or endianness, among 99 + others. 97 100 98 101 3) Newly-added code has been compiled with ``gcc -W`` (use 99 102 ``make KCFLAGS=-W``). This will generate lots of noise, but is good