kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
Cc: James Browning <jamesbrowning137@gmail.com>,
	kernelnewbies@kernelnewbies.org
Subject: Re: Confused about which branch to patch against
Date: Sun, 27 Sep 2020 09:27:25 +0300	[thread overview]
Message-ID: <20200927062725.GF2280698@unreal> (raw)
In-Reply-To: <499de2f7-a2b5-5323-38ff-a486fbc40a38@embeddedor.com>

On Tue, Sep 22, 2020 at 09:39:41PM -0500, Gustavo A. R. Silva wrote:
> Hi,
>
> On 9/22/20 21:08, James Browning wrote:
> > Hi all,
> >
> > After reading through the kernel documentation about submitting pathces,
> > and reading through the kernel newbies guide to submitting patches, I
> > still have some confusion.
> >
> > Should I be doing all of my patching against linux-next as opposed to
> > the mainline tree? I tried submitting a patch to some typos I found on
> > the mainline tree, but they were rejected because they had already been
> > fixed in linux-next.
>
> Yes; bleeding edge development happens in linux-next. Just notice that
> there is a new linux-next everyday. This is, linux-next is merely a daily
> merge of all the individual development '-next' trees.
>
> Don't get discouraged if your patches are not applied because someone
> else already sent a patch to fix the same issue. That certainly happens
> every now and then.
>
> I suggest you to start your journey by addressing issues in staging, first.
> Especially, typos and coding style issues. Also, this is a great resource:
>
> https://kernelnewbies.org/Outreachyfirstpatch
>
> Read it thoroughly. :)
>
> > I guess I dont really understand what patches become part of the next
> > mainline rc-x tree, and which patches become part of linux-next (which
> > from what I understand, doesn't get merged until the next merge window when the current kernel version is finished being stabalized).
>
> I encourage you to enroll in this course:
>
> https://training.linuxfoundation.org/training/a-beginners-guide-to-linux-kernel-development-lfd103/
>
> It's free and there is a section in the beginning that explains all
> about the differences between mainline, -rc, linux-next and stable
> trees and how they relate to each other.
>
> > Also, if I patch something in the linux-next tree, do I need to specify
> > which tree it is when I send the patch the maintainers?
>
> Not necessarily. However, some people explicitly ask you to add 'next' to the
> subject line. The networking people, in particular.
>
> In any case, you'll be safe by adding [next] to the subject line, as follows:
>
> [PATCH][next] subject

IMHO it looks clumsy, why don't [PATCH -next]?

>
> and the maintainers will know that's for their -next tree. Just make sure you
> CC all the file maintainers.
>
> I hope this helps.
>
> --
> Gustavo
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

      parent reply	other threads:[~2020-09-27  6:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-23  2:08 Confused about which branch to patch against James Browning
2020-09-23  2:28 ` James Browning
2020-09-23  2:39 ` Gustavo A. R. Silva
2020-09-23  2:53   ` James Browning
2020-09-27  6:27   ` Leon Romanovsky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200927062725.GF2280698@unreal \
    --to=leon@kernel.org \
    --cc=garsilva@embeddedor.com \
    --cc=jamesbrowning137@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).