xref: /dpdk/doc/guides/contributing/patches.rst (revision bbbe38a6d59ccdda25917712701e629d0b10af6f)
1..  SPDX-License-Identifier: BSD-3-Clause
2    Copyright 2018 The DPDK contributors
3
4.. submitting_patches:
5
6Contributing Code to DPDK
7=========================
8
9This document outlines the guidelines for submitting code to DPDK.
10
11The DPDK development process is modeled (loosely) on the Linux Kernel development model so it is worth reading the
12Linux kernel guide on submitting patches:
13`How to Get Your Change Into the Linux Kernel <https://www.kernel.org/doc/html/latest/process/submitting-patches.html>`_.
14The rationale for many of the DPDK guidelines is explained in greater detail in the kernel guidelines.
15
16
17The DPDK Development Process
18----------------------------
19
20The DPDK development process has the following features:
21
22* The code is hosted in a public git repository.
23* There is a mailing list where developers submit patches.
24* There are maintainers for hierarchical components.
25* Patches are reviewed publicly on the mailing list.
26* Successfully reviewed patches are merged to the repository.
27* Patches should be sent to the target repository or sub-tree, see below.
28* All sub-repositories are merged into main repository for ``-rc1`` and ``-rc2`` versions of the release.
29* After the ``-rc2`` release all patches should target the main repository.
30
31The mailing list for DPDK development is `dev@dpdk.org <https://mails.dpdk.org/archives/dev/>`_.
32Contributors will need to `register for the mailing list <https://mails.dpdk.org/listinfo/dev>`_ in order to submit patches.
33It is also worth registering for the DPDK `Patchwork <https://patches.dpdk.org/project/dpdk/list/>`_
34
35If you are using the GitHub service, pushing to a branch will trigger GitHub
36Actions to automatically build your changes and run unit tests and ABI checks.
37
38Additionally, a Travis configuration is available in DPDK but Travis free usage
39is limited to a few builds.
40You can link your repository to the ``travis-ci.com`` build service.
41
42The development process requires some familiarity with the ``git`` version control system.
43Refer to the `Pro Git Book <http://www.git-scm.com/book/>`_ for further information.
44
45Source License
46--------------
47
48The DPDK uses the Open Source BSD-3-Clause license for the core libraries and
49drivers. The kernel components are GPL-2.0 licensed. DPDK uses single line
50reference to Unique License Identifiers in source files as defined by the Linux
51Foundation's `SPDX project <http://spdx.org/>`_.
52
53DPDK uses first line of the file to be SPDX tag. In case of *#!* scripts, SPDX
54tag can be placed in 2nd line of the file.
55
56For example, to label a file as subject to the BSD-3-Clause license,
57the following text would be used:
58
59``SPDX-License-Identifier: BSD-3-Clause``
60
61To label a file as dual-licensed with BSD-3-Clause and GPL-2.0 (e.g., for code
62that is shared between the kernel and userspace), the following text would be
63used:
64
65``SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)``
66
67Refer to ``licenses/README`` for more details.
68
69Maintainers and Sub-trees
70-------------------------
71
72The DPDK maintenance hierarchy is divided into a main repository ``dpdk`` and sub-repositories ``dpdk-next-*``.
73
74There are maintainers for the trees and for components within the tree.
75
76Trees and maintainers are listed in the ``MAINTAINERS`` file. For example::
77
78    Crypto Drivers
79    --------------
80    M: Some Name <some.name@email.com>
81    T: git://dpdk.org/next/dpdk-next-crypto
82
83    Intel AES-NI GCM PMD
84    M: Some One <some.one@email.com>
85    F: drivers/crypto/aesni_gcm/
86    F: doc/guides/cryptodevs/aesni_gcm.rst
87
88Where:
89
90* ``M`` is a tree or component maintainer.
91* ``T`` is a repository tree.
92* ``F`` is a maintained file or directory.
93
94Additional details are given in the ``MAINTAINERS`` file.
95
96The role of the component maintainers is to:
97
98* Review patches for the component or delegate the review.
99  The review should be done, ideally, within 1 week of submission to the mailing list.
100* Add an ``acked-by`` to patches, or patchsets, that are ready for committing to a tree.
101* Reply to questions asked about the component.
102
103Component maintainers can be added or removed by submitting a patch to the ``MAINTAINERS`` file.
104Maintainers should have demonstrated a reasonable level of contributions or reviews to the component area.
105The maintainer should be confirmed by an ``ack`` from an established contributor.
106There can be more than one component maintainer if desired.
107
108The role of the tree maintainers is to:
109
110* Maintain the overall quality of their tree.
111  This can entail additional review, compilation checks or other tests deemed necessary by the maintainer.
112* Commit patches that have been reviewed by component maintainers and/or other contributors.
113  The tree maintainer should determine if patches have been reviewed sufficiently.
114* Ensure that patches are reviewed in a timely manner.
115* Prepare the tree for integration.
116* Ensure that there is a designated back-up maintainer and coordinate a handover for periods where the
117  tree maintainer can't perform their role.
118
119Tree maintainers can be added or removed by submitting a patch to the ``MAINTAINERS`` file.
120The proposer should justify the need for a new sub-tree and should have demonstrated a sufficient level of contributions in the area or to a similar area.
121The maintainer should be confirmed by an ``ack`` from an existing tree maintainer.
122Disagreements on trees or maintainers can be brought to the Technical Board.
123
124The backup maintainer for the main tree should be selected
125from the existing sub-tree maintainers of the project.
126The backup maintainer for a sub-tree should be selected from among the component maintainers within that sub-tree.
127
128
129Getting the Source Code
130-----------------------
131
132The source code can be cloned using either of the following:
133
134main repository::
135
136    git clone git://dpdk.org/dpdk
137    git clone https://dpdk.org/git/dpdk
138
139sub-repositories (`list <https://git.dpdk.org/next>`_)::
140
141    git clone git://dpdk.org/next/dpdk-next-*
142    git clone https://dpdk.org/git/next/dpdk-next-*
143
144Make your Changes
145-----------------
146
147Make your planned changes in the cloned ``dpdk`` repo. Here are some guidelines and requirements:
148
149* Follow the :ref:`coding_style` guidelines.
150
151* If you add new files or directories you should add your name to the ``MAINTAINERS`` file.
152
153* Initial submission of new PMDs should be prepared against a corresponding repo.
154
155  * Thus, for example, initial submission of a new network PMD should be
156    prepared against dpdk-next-net repo.
157
158  * Likewise, initial submission of a new crypto or compression PMD should be
159    prepared against dpdk-next-crypto repo.
160
161  * For other PMDs and more info, refer to the ``MAINTAINERS`` file.
162
163* New external functions should be added to the local ``version.map`` file. See
164  the :doc:`ABI policy <abi_policy>` and :ref:`ABI versioning <abi_versioning>`
165  guides. New external functions should also be added in alphabetical order.
166
167* Important changes will require an addition to the release notes in ``doc/guides/rel_notes/``.
168  See the :ref:`Release Notes section of the Documentation Guidelines <doc_guidelines>` for details.
169
170* Test the compilation works with different targets, compilers and options, see :ref:`contrib_check_compilation`.
171
172* Don't break compilation between commits with forward dependencies in a patchset.
173  Each commit should compile on its own to allow for ``git bisect`` and continuous integration testing.
174
175* Add tests to the ``app/test`` unit test framework where possible.
176
177* Add documentation, if relevant, in the form of Doxygen comments or a User Guide in RST format.
178  See the :ref:`Documentation Guidelines <doc_guidelines>`.
179
180Once the changes have been made you should commit them to your local repo.
181
182For small changes, that do not require specific explanations, it is better to keep things together in the
183same patch.
184Larger changes that require different explanations should be separated into logical patches in a patchset.
185A good way of thinking about whether a patch should be split is to consider whether the change could be
186applied without dependencies as a backport.
187
188It is better to keep the related documentation changes in the same patch
189file as the code, rather than one big documentation patch at the end of a
190patchset. This makes it easier for future maintenance and development of the
191code.
192
193As a guide to how patches should be structured run ``git log`` on similar files.
194
195
196Commit Messages: Subject Line
197-----------------------------
198
199The first, summary, line of the git commit message becomes the subject line of the patch email.
200Here are some guidelines for the summary line:
201
202* The summary line must capture the area and the impact of the change.
203
204* The summary line should be around 50 characters.
205
206* The summary line should be lowercase apart from acronyms.
207
208* It should be prefixed with the component name (use git log to check existing components).
209  For example::
210
211     ixgbe: fix offload config option name
212
213     config: increase max queues per port
214
215* Use the imperative of the verb (like instructions to the code base).
216
217* Don't add a period/full stop to the subject line or you will end up two in the patch name: ``dpdk_description..patch``.
218
219The actual email subject line should be prefixed by ``[PATCH]`` and the version, if greater than v1,
220for example: ``PATCH v2``.
221The is generally added by ``git send-email`` or ``git format-patch``, see below.
222
223If you are submitting an RFC draft of a feature you can use ``[RFC]`` instead of ``[PATCH]``.
224An RFC patch doesn't have to be complete.
225It is intended as a way of getting early feedback.
226
227
228Commit Messages: Body
229---------------------
230
231Here are some guidelines for the body of a commit message:
232
233* The body of the message should describe the issue being fixed or the feature being added.
234  It is important to provide enough information to allow a reviewer to understand the purpose of the patch.
235
236* When the change is obvious the body can be blank, apart from the signoff.
237
238* The commit message must end with a ``Signed-off-by:`` line which is added using::
239
240      git commit --signoff # or -s
241
242  The purpose of the signoff is explained in the
243  `Developer's Certificate of Origin <https://www.kernel.org/doc/html/latest/process/submitting-patches.html#developer-s-certificate-of-origin-1-1>`_
244  section of the Linux kernel guidelines.
245
246  .. Note::
247
248     All developers must ensure that they have read and understood the
249     Developer's Certificate of Origin section of the documentation prior
250     to applying the signoff and submitting a patch.
251
252* The signoff must be a real name and not an alias or nickname.
253  More than one signoff is allowed.
254
255* The text of the commit message should be wrapped at 72 characters.
256
257* When fixing a regression, it is required to reference the id of the commit
258  which introduced the bug, and put the original author of that commit on CC.
259  You can generate the required lines using the following git alias, which prints
260  the commit SHA and the author of the original code::
261
262     git config alias.fixline "log -1 --abbrev=12 --format='Fixes: %h (\"%s\")%nCc: %ae'"
263
264  The output of ``git fixline <SHA>`` must then be added to the commit message::
265
266     doc: fix some parameter description
267
268     Update the docs, fixing description of some parameter.
269
270     Fixes: abcdefgh1234 ("doc: add some parameter")
271     Cc: author@example.com
272
273     Signed-off-by: Alex Smith <alex.smith@example.com>
274
275* When fixing an error or warning it is useful to add the error message and instructions on how to reproduce it.
276
277* Use correct capitalization, punctuation and spelling.
278
279In addition to the ``Signed-off-by:`` name the commit messages can also have
280tags for who reported, suggested, tested and reviewed the patch being
281posted. Please refer to the `Tested, Acked and Reviewed by`_ section.
282
283Patch Fix Related Issues
284~~~~~~~~~~~~~~~~~~~~~~~~
285
286`Coverity <https://scan.coverity.com/projects/dpdk-data-plane-development-kit>`_
287is a tool for static code analysis.
288It is used as a cloud-based service used to scan the DPDK source code,
289and alert developers of any potential defects in the source code.
290When fixing an issue found by Coverity, the patch must contain a Coverity issue ID
291in the body of the commit message. For example::
292
293
294     doc: fix some parameter description
295
296     Update the docs, fixing description of some parameter.
297
298     Coverity issue: 12345
299     Fixes: abcdefgh1234 ("doc: add some parameter")
300     Cc: author@example.com
301
302     Signed-off-by: Alex Smith <alex.smith@example.com>
303
304
305`Bugzilla <https://bugs.dpdk.org>`_
306is a bug- or issue-tracking system.
307Bug-tracking systems allow individual or groups of developers
308effectively to keep track of outstanding problems with their product.
309When fixing an issue raised in Bugzilla, the patch must contain
310a Bugzilla issue ID in the body of the commit message.
311For example::
312
313    doc: fix some parameter description
314
315    Update the docs, fixing description of some parameter.
316
317    Bugzilla ID: 12345
318    Fixes: abcdefgh1234 ("doc: add some parameter")
319    Cc: author@example.com
320
321    Signed-off-by: Alex Smith <alex.smith@example.com>
322
323Patch for Stable Releases
324~~~~~~~~~~~~~~~~~~~~~~~~~
325
326All fix patches to the main branch that are candidates for backporting
327should also be CCed to the `stable@dpdk.org <https://mails.dpdk.org/listinfo/stable>`_
328mailing list.
329In the commit message body the Cc: stable@dpdk.org should be inserted as follows::
330
331     doc: fix some parameter description
332
333     Update the docs, fixing description of some parameter.
334
335     Fixes: abcdefgh1234 ("doc: add some parameter")
336     Cc: stable@dpdk.org
337
338     Signed-off-by: Alex Smith <alex.smith@example.com>
339
340For further information on stable contribution you can go to
341:doc:`Stable Contribution Guide <stable>`.
342
343Patch Dependencies
344~~~~~~~~~~~~~~~~~~
345
346Sometimes a patch or patchset can depend on another one.
347To help the maintainers and automation tasks, please document this dependency in commit log or cover letter
348with the following syntax:
349
350``Depends-on: series-NNNNN ("Title of the series")`` or ``Depends-on: patch-NNNNN ("Title of the patch")``
351
352Where ``NNNNN`` is patchwork ID for patch or series::
353
354     doc: fix some parameter description
355
356     Update the docs, fixing description of some parameter.
357
358     Signed-off-by: Alex Smith <alex.smith@example.com>
359     ---
360     Depends-on: series-10000 ("Title of the series")
361
362Creating Patches
363----------------
364
365It is possible to send patches directly from git but for new contributors it is recommended to generate the
366patches with ``git format-patch`` and then when everything looks okay, and the patches have been checked, to
367send them with ``git send-email``.
368
369Here are some examples of using ``git format-patch`` to generate patches:
370
371.. code-block:: console
372
373   # Generate a patch from the last commit.
374   git format-patch -1
375
376   # Generate a patch from the last 3 commits.
377   git format-patch -3
378
379   # Generate the patches in a directory.
380   git format-patch -3 -o ~/patch/
381
382   # Add a cover letter to explain a patchset.
383   git format-patch -3 -o ~/patch/ --cover-letter
384
385   # Add a prefix with a version number.
386   git format-patch -3 -o ~/patch/ -v 2
387
388
389Cover letters are useful for explaining a patchset and help to generate a logical threading to the patches.
390Smaller notes can be put inline in the patch after the ``---`` separator, for example::
391
392   Subject: [PATCH] fm10k/base: add FM10420 device ids
393
394   Add the device ID for Boulder Rapids and Atwood Channel to enable
395   drivers to support those devices.
396
397   Signed-off-by: Alex Smith <alex.smith@example.com>
398   ---
399
400   ADD NOTES HERE.
401
402    drivers/net/fm10k/base/fm10k_api.c  | 6 ++++++
403    drivers/net/fm10k/base/fm10k_type.h | 6 ++++++
404    2 files changed, 12 insertions(+)
405   ...
406
407Version 2 and later of a patchset should also include a short log of the changes so the reviewer knows what has changed.
408This can be added to the cover letter or the annotations.
409For example::
410
411   ---
412   v3:
413   * Fixed issued with version.map.
414
415   v2:
416   * Added i40e support.
417   * Renamed ethdev functions from rte_eth_ieee15888_*() to rte_eth_timesync_*()
418     since 802.1AS can be supported through the same interfaces.
419
420
421.. _contrib_checkpatch:
422
423Checking the Patches
424--------------------
425
426Patches should be checked for formatting and syntax issues using the ``checkpatches.sh`` script in the ``devtools``
427directory of the DPDK repo.
428This uses the Linux kernel development tool ``checkpatch.pl`` which  can be obtained by cloning, and periodically,
429updating the Linux kernel sources.
430
431The path to the original Linux script must be set in the environment variable ``DPDK_CHECKPATCH_PATH``.
432
433Spell checking of commonly misspelled words is enabled
434by default if installed in ``/usr/share/codespell/dictionary.txt``.
435A different dictionary path can be specified
436in the environment variable ``DPDK_CHECKPATCH_CODESPELL``.
437
438There is a DPDK script to build an adjusted dictionary
439from the multiple codespell dictionaries::
440
441   git clone https://github.com/codespell-project/codespell.git
442   devtools/build-dict.sh codespell/ > codespell-dpdk.txt
443
444Environment variables required by the development tools,
445are loaded from the following files, in order of preference::
446
447   .develconfig
448   ~/.config/dpdk/devel.config
449   /etc/dpdk/devel.config.
450
451Once the environment variable is set, the script can be run as follows::
452
453   devtools/checkpatches.sh ~/patch/
454
455The script usage is::
456
457   checkpatches.sh [-h] [-q] [-v] [-nX|-r range|patch1 [patch2] ...]
458
459Then the git logs should be checked using the ``check-git-log.sh`` script.
460
461The script usage is::
462
463   check-git-log.sh [-h] [-nX|-r range]
464
465For both of the above scripts, the -n option is used to specify a number of commits from HEAD,
466and the -r option allows the user specify a ``git log`` range.
467
468.. _contrib_check_compilation:
469
470Checking Compilation
471--------------------
472
473Compilation of patches is to be tested with ``devtools/test-meson-builds.sh`` script.
474
475The script internally checks for dependencies, then builds for several
476combinations of compilation configuration.
477By default, each build will be put in a subfolder of the current working directory.
478However, if it is preferred to place the builds in a different location,
479the environment variable ``DPDK_BUILD_TEST_DIR`` can be set to that desired location.
480For example, setting ``DPDK_BUILD_TEST_DIR=__builds`` will put all builds
481in a single subfolder called "__builds" created in the current directory.
482Setting ``DPDK_BUILD_TEST_DIR`` to an absolute directory path e.g. ``/tmp`` is also supported.
483
484
485.. _integrated_abi_check:
486
487Checking ABI compatibility
488--------------------------
489
490By default, ABI compatibility checks are disabled.
491
492To enable them, a reference version must be selected via the environment
493variable ``DPDK_ABI_REF_VERSION``. Contributors should ordinarily reference the
494git tag of the most recent release of DPDK in ``DPDK_ABI_REF_VERSION``.
495
496The ``devtools/test-meson-builds.sh`` script then build this reference version
497in a temporary directory and store the results in a subfolder of the current
498working directory.
499The environment variable ``DPDK_ABI_REF_DIR`` can be set so that the results go
500to a different location.
501
502Sample::
503
504   DPDK_ABI_REF_VERSION=v19.11 DPDK_ABI_REF_DIR=/tmp ./devtools/test-meson-builds.sh
505
506
507Sending Patches
508---------------
509
510Patches should be sent to the mailing list using ``git send-email``.
511You can configure an external SMTP with something like the following::
512
513   [sendemail]
514       smtpuser = name@domain.com
515       smtpserver = smtp.domain.com
516       smtpserverport = 465
517       smtpencryption = ssl
518
519See the `Git send-email <https://git-scm.com/docs/git-send-email>`_ documentation for more details.
520
521The patches should be sent to ``dev@dpdk.org``.
522If the patches are a change to existing files then you should send them TO the maintainer(s) and CC ``dev@dpdk.org``.
523The appropriate maintainer can be found in the ``MAINTAINERS`` file::
524
525   git send-email --to maintainer@some.org --cc dev@dpdk.org 000*.patch
526
527Script ``get-maintainer.sh`` can be used to select maintainers automatically::
528
529  git send-email --to-cmd ./devtools/get-maintainer.sh --cc dev@dpdk.org 000*.patch
530
531New additions can be sent without a maintainer::
532
533   git send-email --to dev@dpdk.org 000*.patch
534
535You can test the emails by sending it to yourself or with the ``--dry-run`` option.
536
537If the patch is in relation to a previous email thread you can add it to the same thread using the Message ID::
538
539   git send-email --to dev@dpdk.org --in-reply-to <1234-foo@bar.com> 000*.patch
540
541The Message ID can be found in the raw text of emails or at the top of each Patchwork patch,
542`for example <https://patches.dpdk.org/patch/7646/>`_.
543Shallow threading (``--thread --no-chain-reply-to``) is preferred for a patch series.
544
545Once submitted your patches will appear on the mailing list and in Patchwork.
546
547Experienced committers may send patches directly with ``git send-email`` without the ``git format-patch`` step.
548The options ``--annotate`` and ``confirm = always`` are recommended for checking patches before sending.
549
550
551Backporting patches for Stable Releases
552~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
553
554Sometimes a maintainer or contributor wishes, or can be asked, to send a patch
555for a stable release rather than mainline.
556In this case the patch(es) should be sent to ``stable@dpdk.org``,
557not to ``dev@dpdk.org``.
558
559Given that there are multiple stable releases being maintained at the same time,
560please specify exactly which branch(es) the patch is for
561using ``git send-email --subject-prefix='PATCH 16.11' ...``
562and also optionally in the cover letter or in the annotation.
563
564
565The Review Process
566------------------
567
568Patches are reviewed by the community, relying on the experience and
569collaboration of the members to double-check each other's work. There are a
570number of ways to indicate that you have checked a patch on the mailing list.
571
572
573Tested, Acked and Reviewed by
574~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
575
576To indicate that you have interacted with a patch on the mailing list you
577should respond to the patch in an email with one of the following tags:
578
579 * Reviewed-by:
580 * Acked-by:
581 * Tested-by:
582 * Reported-by:
583 * Suggested-by:
584
585The tag should be on a separate line as follows::
586
587   tag-here: Name Surname <email@address.com>
588
589Each of these tags has a specific meaning. In general, the DPDK community
590follows the kernel usage of the tags. A short summary of the meanings of each
591tag is given here for reference:
592
593.. _statement: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#reviewer-s-statement-of-oversight
594
595``Reviewed-by:`` is a strong statement_ that the patch is an appropriate state
596for merging without any remaining serious technical issues. Reviews from
597community members who are known to understand the subject area and to perform
598thorough reviews will increase the likelihood of the patch getting merged.
599
600``Acked-by:`` is a record that the person named was not directly involved in
601the preparation of the patch but wishes to signify and record their acceptance
602and approval of it.
603
604``Tested-by:`` indicates that the patch has been successfully tested (in some
605environment) by the person named.
606
607``Reported-by:`` is used to acknowledge person who found or reported the bug.
608
609``Suggested-by:`` indicates that the patch idea was suggested by the named
610person.
611
612
613
614Steps to getting your patch merged
615~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
616
617The more work you put into the previous steps the easier it will be to get a
618patch accepted. The general cycle for patch review and acceptance is:
619
620#. Submit the patch.
621
622#. Check the automatic test reports in the coming hours.
623
624#. Wait for review comments. While you are waiting review some other patches.
625
626#. Fix the review comments and submit a ``v n+1`` patchset::
627
628      git format-patch -3 -v 2
629
630#. Update Patchwork to mark your previous patches as "Superseded".
631
632#. If the patch is deemed suitable for merging by the relevant maintainer(s) or other developers they will ``ack``
633   the patch with an email that includes something like::
634
635      Acked-by: Alex Smith <alex.smith@example.com>
636
637   **Note**: When acking patches please remove as much of the text of the patch email as possible.
638   It is generally best to delete everything after the ``Signed-off-by:`` line.
639
640#. Having the patch ``Reviewed-by:`` and/or ``Tested-by:`` will also help the patch to be accepted.
641
642#. If the patch isn't deemed suitable based on being out of scope or conflicting with existing functionality
643   it may receive a ``nack``.
644   In this case you will need to make a more convincing technical argument in favor of your patches.
645
646#. In addition a patch will not be accepted if it doesn't address comments from a previous version with fixes or
647   valid arguments.
648
649#. It is the responsibility of a maintainer to ensure that patches are reviewed and to provide an ``ack`` or
650   ``nack`` of those patches as appropriate.
651
652#. Once a patch has been acked by the relevant maintainer, reviewers may still comment on it for a further
653   two weeks. After that time, the patch should be merged into the relevant git tree for the next release.
654   Additional notes and restrictions:
655
656   * Patches should be acked by a maintainer at least two days before the release merge
657     deadline, in order to make that release.
658   * For patches acked with less than two weeks to go to the merge deadline, all additional
659     comments should be made no later than two days before the merge deadline.
660   * After the appropriate time for additional feedback has passed, if the patch has not yet
661     been merged to the relevant tree by the committer, it should be treated as though it had,
662     in that any additional changes needed to it must be addressed by a follow-on patch, rather
663     than rework of the original.
664   * Trivial patches may be merged sooner than described above at the tree committer's
665     discretion.
666