Lines Matching refs:patch
58 generated by diff(1). When creating your patch, make sure to create it
65 To create a patch for a single file, it is often sufficient to do:
74 diff -up $SRCTREE/$MYFILE{.orig,} > /tmp/patch
76 To create a patch for multiple files, you should unpack a "vanilla",
85 linux-3.19-vanilla $MYSRC > /tmp/patch
89 patch.
91 Make sure your patch does not include any extra files which do not
92 belong in a patch submission. Make sure to review your patch -after-
98 very important if you want your patch accepted.
109 Describe your problem. Whether your patch is a one-line bug fix or
138 The maintainer will thank you if you write your patch description in a
142 Solve only one problem per patch. If your description starts to get
143 long, that's a sign that you probably need to split up your patch.
146 When you submit or resubmit a patch or patch series, include the
147 complete patch description and justification for it. Don't just
148 say that this is version N of the patch (series). Don't expect the
149 subsystem maintainer to refer back to earlier patch versions or referenced
150 URLs to find the patch description and put that into the patch.
151 I.e., the patch (series) and its description should be self-contained.
153 probably didn't even receive earlier versions of the patch.
156 instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy
160 If the patch fixes a logged bug entry, refer to that bug entry by
161 number and URL. If the patch follows from a mailing list discussion,
169 patch as submitted.
187 If your patch fixes a bug in a specific commit, e.g. you found an issue using
204 Separate each _logical change_ into a separate patch.
212 group those changes into a single patch. Thus a single logical change
213 is contained within a single patch.
215 The point to remember is that each patch should make an easily understood
216 change that can be verified by reviewers. Each patch should be justifiable
219 If one patch depends on another patch in order for a change to be
220 complete, that is OK. Simply note "this patch depends on patch X"
221 in your patch description.
224 ensure that the kernel builds and runs properly after each patch in the
226 splitting your patch series at any point; they will not thank you if you
229 If you cannot condense your patch set into a smaller set of patches,
237 Check your patch for basic style violations, details of which can be
239 the reviewers time and will get your patch rejected, probably
244 the same patch which moves it. This clearly delineates the act of
249 Check your patches with the patch style checker prior to submission
260 patch.
263 5) Select the recipients for your patch.
266 You should always copy the appropriate subsystem maintainer(s) on any patch
274 of your patch set. linux-kernel@vger.kernel.org functions as a list of
277 list; your patch will probably get more attention there. Please do not
292 If you have a patch that fixes an exploitable security bug, send that patch
294 to allow distributors to get the patch out to users; in such cases,
295 obviously, the patch should not be sent to any public lists.
302 into the sign-off area of your patch (note, NOT an email recipient). You
312 maintainer (as listed in the MAINTAINERS file) a man-pages patch, or at
330 Any fix by the author/maintainer of the file (ie. patch monkey
344 WARNING: Be wary of your editor's word-wrap corrupting your patch,
345 if you choose to cut-n-paste your patch.
347 Do not attach the patch as a MIME attachment, compressed or not.
363 maintainers. If your patch, uncompressed, exceeds 300 kB in size,
364 it is preferred that you store your patch on an Internet-accessible
365 server, and provide instead a URL (link) pointing to your patch. But note
366 that if your patch exceeds 300 kB, it almost certainly needs to be broken up
372 Your patch will almost certainly get comments from reviewers on ways in
373 which the patch can be improved. You must respond to those comments;
389 busy people and may not get to your patch right away.
418 patch, which certifies that you wrote it or otherwise have the right to
419 pass it on as an open-source patch. The rules are pretty simple: if you
482 to insert an indication of the origin of a patch at the top of the commit
492 And here's what might appear in an older kernel once a patch is backported:
509 development of the patch, or that he/she was in the patch's delivery path.
512 patch but wishes to signify and record their approval of it then they can
513 ask to have an Acked-by: line added to the patch's changelog.
516 maintainer neither contributed to nor forwarded the patch.
519 has at least reviewed the patch and has indicated acceptance. Hence patch
524 Acked-by: does not necessarily indicate acknowledgement of the entire patch.
525 For example, if a patch affects multiple subsystems and has an Acked-by: from
531 If a person has had the opportunity to comment on a patch, but has not
532 provided such comments, you may optionally add a "Cc:" tag to the patch.
535 patch. This tag documents that potentially interested parties
547 A Tested-by: tag indicates that the patch has been successfully tested (in
552 Reviewed-by:, instead, indicates that the patch has been reviewed and found
559 (a) I have carried out a technical review of this patch to
563 (b) Any problems, concerns, or questions relating to the patch
572 (d) While I have reviewed the patch and believe it to be sound, I
577 A Reviewed-by tag is a statement of opinion that the patch is an
580 offer a Reviewed-by tag for a patch. This tag serves to give credit to
582 done on the patch. Reviewed-by: tags, when supplied by reviewers known to
584 increase the likelihood of your patch getting into the kernel.
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 #2 above for more details.
600 14) The canonical patch format
603 This section describes how the patch itself should be formatted. Note
604 that, if you have your patches stored in a git repository, proper patch
605 formatting can be had with "git format-patch". The tools cannot create
608 The canonical patch subject line is:
612 The canonical patch message body contains the following:
614 - A "from" line specifying the patch author (only needed if the person
615 sending the patch is not the author).
620 be copied to the permanent changelog to describe this patch.
629 - The actual patch (diff output).
640 describe the patch which that email contains. The "summary
642 phrase" for every patch in a whole patch series (where a "patch
646 globally-unique identifier for that patch. It propagates all the way
648 developer discussions which refer to the patch. People will want to
650 patch. It will also be the only thing that people may quickly see
656 characters, and it must describe both what the patch changes, as well
657 as why the patch might be necessary. It is challenging to be both
663 not considered part of the summary phrase, but describe how the patch
665 the multiple versions of the patch have been sent out in response to
667 comments. If there are four patches in a patch series the individual
671 the patch series.
684 patch in the permanent changelog. If the "from" line is missing,
686 the patch author in the changelog.
691 have led to this patch. Including symptoms of the failure which the
692 patch addresses (kernel log messages, oops messages, etc.) is
694 looking for the applicable patch. If a patch fixes a compile failure,
696 enough that it is likely that someone searching for the patch can find
700 The "---" marker line serves the essential purpose of marking for patch
708 here. A good example of such comments might be "patch changelogs"
710 patch.
718 See more details on the proper patch format in the following
724 It can be helpful to manually add In-Reply-To: headers to a patch
725 (e.g., when using "git send email") to associate the patch with
727 the bug report. However, for a multi-patch series, it is generally
729 series. This way multiple versions of the patch don't become an
732 the cover email text) to link to an earlier version of the patch series.
744 the pull request as the cover letter for a normal posting of the patch
759 themselves, and a diffstat showing the overall effect of the patch series.
773 Once you have prepared a patch series in git that you wish to have somebody
794 Andrew Morton, "The perfect patch" (tpp).
797 Jeff Garzik, "Linux kernel patch submission format".
798 <http://linux.yyz.us/patch-format.html>
808 NO!!!! No more huge patch bombs to linux-kernel@vger.kernel.org people!
814 Linus Torvalds's mail on the canonical patch format: