From: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>,
Mike Rapoport <rppt@kernel.org>,
Yuquan Wang <wangyuquan1236@phytium.com.cn>
Cc: Linux-MM <linux-mm@kvack.org>
Subject: error: call to undeclared function 'numa_add_reserved_memblk'
Date: Wed, 16 Apr 2025 15:38:42 +0200 [thread overview]
Message-ID: <CANiq72mHkzLMZj=tBtMqq6N_uvt9AAtShXyVPq5rA3xaFWguMA@mail.gmail.com> (raw)
Hi Andrew, Mike, Yuquan,
In a LoongArch defconfig+Rust build, I got:
drivers/acpi/numa/srat.c:467:6: error: call to undeclared function
'numa_add_reserved_memblk'; ISO C99 and later do not support implicit
function declarations [-Wimplicit-function-declaration]
467 | if (numa_add_reserved_memblk(node, start, end) < 0) {
| ^
I guess commit 8579eee90756 ("mm: numa_memblks: introduce
numa_add_reserved_memblk()") needs a `depends on` or `select` for
`NUMA_MEMBLKS`.
I hope that helps!
Cheers,
Miguel
reply other threads:[~2025-04-16 13:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CANiq72mHkzLMZj=tBtMqq6N_uvt9AAtShXyVPq5rA3xaFWguMA@mail.gmail.com' \
--to=miguel.ojeda.sandonis@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=rppt@kernel.org \
--cc=wangyuquan1236@phytium.com.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox