Lines Matching full:patch
48 Describe your problem. Whether your patch is a one-line bug fix or
77 The maintainer will thank you if you write your patch description in a
81 Solve only one problem per patch. If your description starts to get
82 long, that's a sign that you probably need to split up your patch.
85 When you submit or resubmit a patch or patch series, include the
86 complete patch description and justification for it. Don't just
87 say that this is version N of the patch (series). Don't expect the
88 subsystem maintainer to refer back to earlier patch versions or referenced
89 URLs to find the patch description and put that into the patch.
90 I.e., the patch (series) and its description should be self-contained.
92 probably didn't even receive earlier versions of the patch.
95 instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy
116 can be found on the web, add 'Link:' tags pointing to it. If the patch is a
133 patch as submitted.
135 In case your patch fixes a bug, use the 'Closes:' tag with a URL referencing
145 If your patch fixes a bug in a specific commit, e.g. you found an issue using
171 Separate each **logical change** into a separate patch.
179 group those changes into a single patch. Thus a single logical change
180 is contained within a single patch.
182 The point to remember is that each patch should make an easily understood
183 change that can be verified by reviewers. Each patch should be justifiable
186 If one patch depends on another patch in order for a change to be
187 complete, that is OK. Simply note **"this patch depends on patch X"**
188 in your patch description.
191 ensure that the kernel builds and runs properly after each patch in the
193 splitting your patch series at any point; they will not thank you if you
196 If you cannot condense your patch set into a smaller set of patches,
204 Check your patch for basic style violations, details of which can be
207 the reviewers time and will get your patch rejected, probably
212 the same patch which moves it. This clearly delineates the act of
217 Check your patches with the patch style checker prior to submission
228 patch.
231 Select the recipients for your patch
235 any patch to code that they maintain; look through the MAINTAINERS file and the
258 If you have a patch that fixes an exploitable security bug, send that patch
260 to allow distributors to get the patch out to users; in such cases,
261 obviously, the patch should not be sent to any public lists. See also
269 into the sign-off area of your patch (note, NOT an email recipient). You
274 maintainer (as listed in the MAINTAINERS file) a man-pages patch, or at
297 Be wary of your editor's word-wrap corrupting your patch,
298 if you choose to cut-n-paste your patch.
300 Do not attach the patch as a MIME attachment, compressed or not.
315 Your patch will almost certainly get comments from reviewers on ways in
316 which the patch can be improved, in the form of a reply to your email. You must
327 version, add a ``patch changelog`` to the cover letter or to individual patches
330 Notify people that commented on your patch about new versions by adding them to
367 busy people and may not get to your patch right away.
376 It's also ok to resend the patch or the patch series after a couple of
379 [PATCH Vx RESEND] sub/sys: Condensed patch summary
382 patch or patch series - "RESEND" only applies to resubmission of a
383 patch or patch series which have not been modified in any way from the
387 Include PATCH in the subject
391 convention to prefix your subject line with [PATCH]. This lets Linus
407 patch, which certifies that you wrote it or otherwise have the right to
408 pass it on as an open-source patch. The rules are pretty simple: if you
452 people handling and transporting the patch, but were not involved in its
453 development. SoB chains should reflect the **real** route a patch took
462 development of the patch, or that he/she was in the patch's delivery path.
465 patch but wishes to signify and record their approval of it then they can
466 ask to have an Acked-by: line added to the patch's changelog.
469 maintainer neither contributed to nor forwarded the patch.
472 has at least reviewed the patch and has indicated acceptance. Hence patch
477 Acked-by: does not necessarily indicate acknowledgement of the entire patch.
478 For example, if a patch affects multiple subsystems and has an Acked-by: from
484 If a person has had the opportunity to comment on a patch, but has not
485 provided such comments, you may optionally add a ``Cc:`` tag to the patch.
488 patch. This tag documents that potentially interested parties
491 Co-developed-by: states that the patch was co-created by multiple developers;
493 attributed by the From: tag) when several people work on a single patch. Since
497 chronological history of the patch insofar as possible, regardless of whether
499 Signed-off-by: must always be that of the developer submitting the patch.
504 Example of a patch submitted by the From: author::
514 Example of a patch submitted by a Co-developed-by: author::
534 available on the web. The Link: tag can be used instead of Closes: if the patch
539 A Tested-by: tag indicates that the patch has been successfully tested (in
544 Reviewed-by:, instead, indicates that the patch has been reviewed and found
552 (a) I have carried out a technical review of this patch to
556 (b) Any problems, concerns, or questions relating to the patch
565 (d) While I have reviewed the patch and believe it to be sound, I
570 A Reviewed-by tag is a statement of opinion that the patch is an
573 offer a Reviewed-by tag for a patch. This tag serves to give credit to
575 done on the patch. Reviewed-by: tags, when supplied by reviewers known to
577 increase the likelihood of your patch getting into the kernel.
581 next versions. However if the patch has changed substantially in following
584 in the patch changelog (after the '---' separator).
586 A Suggested-by: tag indicates that the patch idea is suggested by the person
593 A Fixes: tag indicates that the patch fixes an issue in a previous commit. It
597 method for indicating a bug fixed by the patch. See :ref:`describe_changes`
602 patch candidates. For more information, please read
607 The canonical patch format
610 This section describes how the patch itself should be formatted. Note
611 that, if you have your patches stored in a ``git`` repository, proper patch
612 formatting can be had with ``git format-patch``. The tools cannot create
615 The canonical patch subject line is::
617 Subject: [PATCH 001/123] subsystem: summary phrase
619 The canonical patch message body contains the following:
621 - A ``from`` line specifying the patch author, followed by an empty
622 line (only needed if the person sending the patch is not the author).
625 be copied to the permanent changelog to describe this patch.
636 - The actual patch (``diff`` output).
647 describe the patch which that email contains. The ``summary
649 phrase`` for every patch in a whole patch series (where a ``patch
653 globally-unique identifier for that patch. It propagates all the way
655 developer discussions which refer to the patch. People will want to
657 patch. It will also be the only thing that people may quickly see
663 characters, and it must describe both what the patch changes, as well
664 as why the patch might be necessary. It is challenging to be both
669 brackets: "Subject: [PATCH <tag>...] <summary phrase>". The tags are
670 not considered part of the summary phrase, but describe how the patch
672 the multiple versions of the patch have been sent out in response to
676 If there are four patches in a patch series the individual patches may
679 they have reviewed or applied all of the patches in the patch series.
683 Subject: [PATCH 2/5] ext2: improve scalability of bitmap searching
684 Subject: [PATCH v2 01/27] x86: fix eflags tracking
685 Subject: [PATCH v2] sub/sys: Condensed patch summary
686 Subject: [PATCH v2 M/N] sub/sys: Condensed patch summary
691 From: Patch Author <author@example.com>
694 patch in the permanent changelog. If the ``from`` line is missing,
696 the patch author in the changelog.
701 this patch. Including symptoms of the failure which the patch addresses
704 patch. The text should be written in such detail so that when read
706 details to grasp the reasoning for **why** the patch was created.
708 If a patch fixes a compile failure, it may not be necessary to include
710 someone searching for the patch can find it. As in the ``summary
714 patch handling tools where the changelog message ends.
727 example of such comments might be ``patch changelogs`` which describe
728 what has changed between the v1 and v2 version of the patch.
731 the changelog from the rest of the patch. The version information is
736 patch::
748 See more details on the proper patch format in the following
778 It can be helpful to manually add In-Reply-To: headers to a patch
779 (e.g., when using ``git send-email``) to associate the patch with
781 the bug report. However, for a multi-patch series, it is generally
783 series. This way multiple versions of the patch don't become an
786 the cover email text) to link to an earlier version of the patch series.
802 If you are using ``git format-patch`` to generate your patches, you can
813 $ git format-patch --base=auto --cover-letter -o outgoing/ master
814 outgoing/0000-cover-letter.patch
815 outgoing/0001-First-Commit.patch
818 When you open ``outgoing/0000-cover-letter.patch`` for editing, you will
823 $ git checkout -b patch-review [base-commit-id]
824 Switched to a new branch 'patch-review'
829 Please see ``man git-format-patch`` for more information about this
839 letter or in the first patch of the series and it should be placed
850 Andrew Morton, "The perfect patch" (tpp).
853 Jeff Garzik, "Linux kernel patch submission format".
854 <https://web.archive.org/web/20180829112450/http://linux.yyz.us/patch-format.html>
869 NO!!!! No more huge patch bombs to linux-kernel@vger.kernel.org people!
874 Linus Torvalds's mail on the canonical patch format: