Re: [PATCH v3 1/3] rust: add a wrapper for the `num_possible_cpus` C function

From: Andreas Hindborg

Date: Wed Sep 30 2026 - 07:45:25 EST


Miguel Ojeda <miguel.ojeda.sandonis@xxxxxxxxx> writes:

> On Wed, Sep 30, 2026 at 9:46 AM Andreas Hindborg <a.hindborg@xxxxxxxxxx> wrote:
>>
>> Yes, this one is independent. At v1 I had 2 patches adding helpers, that
>> was the only thing relating them. I thought it was better to lump them,
>> but maybe not?
>
> Thanks for clarifying!
>
> By the way, do you think the new header is worth it instead of using
> the existing `cpu.c` one? If we do that, then we should probably add
> it under their `MAINTAINERS` file.

The helpers should go in cpu.c, that makes sense. Not sure why I put in
a separate file, maybe cpu.c was not present when I sent v1.

Do you mind moving the code when applying or do you want a new version?

Best regards,
Andreas Hindborg