From: Will Deacon <will@kernel.org>
To: linux-arm-kernel@lists.infradead.org,
Zhengyuan Liu <liuzhengyuan@tj.kylinos.cn>
Cc: catalin.marinas@arm.com, gshan@redhat.com,
kernel-team@android.com, Will Deacon <will@kernel.org>
Subject: Re: [PATCH v2] arm64/mm: return cpu_all_mask when node is NUMA_NO_NODE
Date: Mon, 21 Sep 2020 23:14:51 +0100 [thread overview]
Message-ID: <160072230172.1794761.1703213720191022338.b4-ty@kernel.org> (raw)
In-Reply-To: <20200921023936.21846-1-liuzhengyuan@tj.kylinos.cn>
On Mon, 21 Sep 2020 10:39:36 +0800, Zhengyuan Liu wrote:
> The @node passed to cpumask_of_node() can be NUMA_NO_NODE, in that
> case it will trigger the following WARN_ON(node >= nr_node_ids) due to
> mismatched data types of @node and @nr_node_ids. Actually we should
> return cpu_all_mask just like most other architectures do if passed
> NUMA_NO_NODE.
>
> Also add a similar check to the inline cpumask_of_node() in numa.h.
Applied to arm64 (for-next/misc), thanks!
[1/1] arm64/mm: return cpu_all_mask when node is NUMA_NO_NODE
https://git.kernel.org/arm64/c/a194c5f2d2b3
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
prev parent reply other threads:[~2020-09-21 22:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-21 2:39 [PATCH v2] arm64/mm: return cpu_all_mask when node is NUMA_NO_NODE Zhengyuan Liu
2020-09-21 22:14 ` Will Deacon [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=160072230172.1794761.1703213720191022338.b4-ty@kernel.org \
--to=will@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=gshan@redhat.com \
--cc=kernel-team@android.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=liuzhengyuan@tj.kylinos.cn \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.