diff options
author | Akira Yokosawa <akiyks@gmail.com> | 2025-01-30 16:28:09 +0900 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2025-02-10 11:00:44 -0700 |
commit | 2783096fb1ddd3d5987a68efe8d52b7afccdda04 (patch) | |
tree | c98e566d870a226605dbde28009ed583f82804c6 | |
parent | 07ab93f3cc88d76250b7c3659ce9c5f7a013d7ce (diff) |
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
-rw-r--r-- | Documentation/process/submit-checklist.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Documentation/process/submit-checklist.rst b/Documentation/process/submit-checklist.rst index e531dd504b6c..88b6358258d7 100644 --- a/Documentation/process/submit-checklist.rst +++ b/Documentation/process/submit-checklist.rst @@ -91,9 +91,12 @@ Build your code fix any issues. 2) Builds on multiple CPU architectures by using local cross-compile tools - or some other build farm. Note that ppc64 is a good architecture for - cross-compilation checking because it tends to use ``unsigned long`` for - 64-bit quantities. + or some other build farm. + Note that testing against architectures of different word sizes + (32- and 64-bit) and different endianness (big- and little-) is effective + in catching various portability issues due to false assumptions on + representable quantity range, data alignment, or endianness, among + others. 3) Newly-added code has been compiled with ``gcc -W`` (use ``make KCFLAGS=-W``). This will generate lots of noise, but is good |