Re: [PATCH v5 06/20] rust: add `alloc` crate
From: Miguel Ojeda
Date: Thu Mar 31 2022 - 09:20:09 EST
Hi Greg,
On Thu, Mar 31, 2022 at 2:42 PM Greg Kroah-Hartman
<gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
>
> This is a huge patch. Why not break it into 2, one that adds what is
> upstream, and then the second adds the "stuff on top" that you need for
> the kernel. Otherwise it's hard to know what is, and is not, upstream
> for us to be able to review from a kernel point of view.
That is a good idea, will do.
There are some files from upstream that we do not need, so they are
already deleted here (e.g. collections), thus what I will do is send
the first patch without those already and then another patch with the
modifications/additions we did. If you prefer to see the deleted files
in an intermediate step, I can also do that.
> I think you are trying to do this with the "kernel" keyword, but if so,
> why are you picking a "since" of 1.0? None of that is described in the
> changelog :(
Exactly, I used the "kernel" string to have the additions clearly
marked. The `stable`/`unstable` attributes are required in the
standard library -- here the "1.0" is just a placeholder.
I will expand a bit on this in the split patches approach that you
suggest above.
Thanks for taking a look!
Cheers,
Miguel