From: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
To: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Ben Dooks <ben.dooks@codethink.co.uk>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
akpm@linux-foundation.org, david@kernel.org
Subject: Re: [PATCH] mm/khugepaged: make khugepaged_collapse_control static
Date: Wed, 14 Jan 2026 09:27:48 +0000 [thread overview]
Message-ID: <5ade8187-87ca-4f04-8c65-1d27acc001d9@lucifer.local> (raw)
In-Reply-To: <10ebbce4-1b83-4eb2-99f3-738a0e613958@arm.com>
Andrew - just to avoid confusion - this patch should be ignored, is an
accidentally sent duplicate and was already sent by a previous submitter
see [0].
Cheers, Lorenzo
On Wed, Jan 14, 2026 at 10:50:19AM +0530, Anshuman Khandual wrote:
> On 12/01/26 9:48 PM, Ben Dooks wrote:
> > Make khugepaged_collapse_control as it is not exported.
> > Fixes the following sparse warning:
> >
> > mm/khugepaged.c:829:25: warning: symbol 'khugepaged_collapse_control' was not declared. Should it be static?
> >
> > Fixes: 34d6b470ab9cf ("mm/khugepaged: add struct collapse_control")
> > Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
> > ---
> > mm/khugepaged.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/mm/khugepaged.c b/mm/khugepaged.c
> > index 97d1b2824386..c9bd0df632bd 100644
> > --- a/mm/khugepaged.c
> > +++ b/mm/khugepaged.c
> > @@ -826,7 +826,7 @@ static void khugepaged_alloc_sleep(void)
> > remove_wait_queue(&khugepaged_wait, &wait);
> > }
> >
> > -struct collapse_control khugepaged_collapse_control = {
> > +static struct collapse_control khugepaged_collapse_control = {
> > .is_khugepaged = true,
> > };
> >
>
> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
[0]: https://lore.kernel.org/linux-mm/49229782-acf5-4e33-b317-63399deb6f6d@lucifer.local/
next prev parent reply other threads:[~2026-01-14 9:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-12 16:18 Ben Dooks
2026-01-14 5:20 ` Anshuman Khandual
2026-01-14 9:27 ` Lorenzo Stoakes [this message]
2026-01-12 16:18 Ben Dooks
2026-01-12 16:22 ` Ben Dooks
2026-01-12 16:33 ` Lorenzo Stoakes
2026-01-13 9:26 ` Ben Dooks
2026-01-13 9:50 ` Lorenzo Stoakes
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=5ade8187-87ca-4f04-8c65-1d27acc001d9@lucifer.local \
--to=lorenzo.stoakes@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=anshuman.khandual@arm.com \
--cc=ben.dooks@codethink.co.uk \
--cc=david@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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