Re: [PATCH] RDMA/hfi: add a judgment on the availability of cpumask

From: Leon Romanovsky
Date: Tue Apr 04 2023 - 04:02:56 EST


On Tue, Apr 04, 2023 at 03:01:58PM +0800, xiaolinkui wrote:
> Thanks for your reply.
>
> When CONFIG_CPUMASK_OFFSTACK=y, "ret" will be false if diff==NULL.
>
> However, when CONFIG_CPUMASK_OFFSTACK=n, these two are not necessarily
> equivalent.

And what is the problem with that? cpumask_* API is built to handle
correctly this mode.

Reminder: please don't top post.

>
> Thanks