From: Wei Yang <richard.weiyang@gmail.com>
To: Wei Yang <richard.weiyang@gmail.com>
Cc: rppt@kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH] memblock tests: fix implicit declaration of function 'numa_valid_node'
Date: Sat, 29 Jun 2024 01:39:02 +0000 [thread overview]
Message-ID: <20240629013902.eqx46qhtiauclxye@master> (raw)
In-Reply-To: <20240624015432.31134-1-richard.weiyang@gmail.com>
Mike,
Missed this one?
On Mon, Jun 24, 2024 at 01:54:32AM +0000, Wei Yang wrote:
>commit 8043832e2a12 ("memblock: use numa_valid_node() helper to check
>for invalid node ID") introduce a new helper numa_valid_node(), which is
>not defined in memblock tests.
>
>Let's add it in the corresponding header file.
>
>Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
>CC: Mike Rapoport (IBM) <rppt@kernel.org>
>---
> tools/include/linux/numa.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
>diff --git a/tools/include/linux/numa.h b/tools/include/linux/numa.h
>index 110b0e5d0fb0..c8b9369335e0 100644
>--- a/tools/include/linux/numa.h
>+++ b/tools/include/linux/numa.h
>@@ -13,4 +13,9 @@
>
> #define NUMA_NO_NODE (-1)
>
>+static inline bool numa_valid_node(int nid)
>+{
>+ return nid >= 0 && nid < MAX_NUMNODES;
>+}
>+
> #endif /* _LINUX_NUMA_H */
>--
>2.34.1
--
Wei Yang
Help you, Help me
next prev parent reply other threads:[~2024-06-29 1:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-24 1:54 Wei Yang
2024-06-29 1:39 ` Wei Yang [this message]
2024-07-05 8:28 ` Mike Rapoport
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=20240629013902.eqx46qhtiauclxye@master \
--to=richard.weiyang@gmail.com \
--cc=linux-mm@kvack.org \
--cc=rppt@kernel.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