From: David Hildenbrand <david@redhat.com>
To: Oscar Salvador <osalvador@suse.de>,
Andrew Morton <akpm@linux-foundation.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>,
Michal Hocko <mhocko@kernel.org>,
Anshuman Khandual <anshuman.khandual@arm.com>,
Vlastimil Babka <vbabka@suse.cz>,
Pavel Tatashin <pasha.tatashin@soleen.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 3/3] mm,memory_hotplug: Remove unneeded declarations
Date: Wed, 2 Jun 2021 20:38:00 +0200 [thread overview]
Message-ID: <87f5c05b-f107-26b9-8c5d-d2394bee2002@redhat.com> (raw)
In-Reply-To: <20210602091457.17772-4-osalvador@suse.de>
On 02.06.21 11:14, Oscar Salvador wrote:
> include/linux/memory_hotplug.h has the following declarations:
>
> extern int zone_grow_free_lists(struct zone *zone, unsigned long new_nr_pages);
> extern int zone_grow_waitqueues(struct zone *zone, unsigned long nr_pages);
> extern int add_one_highpage(struct page *page, int pfn, int bad_ppro);
>
> These declarations were added by the following commit:
>
> commit 3947be1969a9ce455ec30f60ef51efb10e4323d1
> Author: Dave Hansen <haveblue@us.ibm.com>
> Date: Sat Oct 29 18:16:54 2005 -0700
>
> [PATCH] memory hotplug: sysfs and add/remove functions
>
> It seems that zone_grow_free_lists() and zone_grow_waitqueues() were
> never used, and add_one_highpage() was always declared as static in
> arch/i386/mm/init.c and later on in arch/x86/mm/init_32.c, and was
> later removed in:
>
> commit 5e7ccf8635c93b493f7d378a57ce300fbe1484e8
> Author: Jiang Liu <liuj97@gmail.com>
> Date: Mon Apr 29 15:07:12 2013 -0700
>
> mm/x86: use free_highmem_page() to free highmem pages into buddy system
>
> So remove these declarations.
>
> Signed-off-by: Oscar Salvador <osalvador@suse.de>
> ---
> include/linux/memory_hotplug.h | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/include/linux/memory_hotplug.h b/include/linux/memory_hotplug.h
> index 0d837ce6ec11..9a19e97d4f1a 100644
> --- a/include/linux/memory_hotplug.h
> +++ b/include/linux/memory_hotplug.h
> @@ -80,9 +80,6 @@ struct range mhp_get_pluggable_range(bool need_mapping);
> /*
> * Zone resizing functions
> */
> -extern int zone_grow_free_lists(struct zone *zone, unsigned long new_nr_pages);
> -extern int zone_grow_waitqueues(struct zone *zone, unsigned long nr_pages);
> -extern int add_one_highpage(struct page *page, int pfn, int bad_ppro);
> extern void adjust_present_page_count(struct zone *zone, long nr_pages);
> /* VM interface that may be used by firmware interface */
> extern int mhp_init_memmap_on_memory(unsigned long pfn, unsigned long nr_pages,
>
Right, that's a blast from the past. Thanks!
Reviewed-by: David Hildenbrand <david@redhat.com>
--
Thanks,
David / dhildenb
prev parent reply other threads:[~2021-06-02 18:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-02 9:14 [PATCH v2 0/3] Memory hotplug locking cleanup Oscar Salvador
2021-06-02 9:14 ` [PATCH v2 1/3] mm,page_alloc: Use {get,put}_online_mems() to get stable zone's values Oscar Salvador
2021-06-02 18:37 ` David Hildenbrand
2021-06-02 19:45 ` Oscar Salvador
2021-06-03 8:38 ` Oscar Salvador
2021-06-03 12:45 ` Michal Hocko
2021-06-04 7:41 ` Oscar Salvador
2021-06-07 7:52 ` Oscar Salvador
2021-06-07 8:49 ` David Hildenbrand
2021-06-07 10:23 ` Oscar Salvador
2021-06-08 10:42 ` Oscar Salvador
2021-06-08 15:00 ` David Hildenbrand
2021-06-09 9:42 ` David Hildenbrand
2021-06-07 8:42 ` Michal Hocko
2021-06-03 2:32 ` [mm,page_alloc] [confidence: ] acb5758bf4: BUG:sleeping_function_called_from_invalid_context_at_include/linux/percpu-rwsem.h kernel test robot
2021-06-02 9:14 ` [PATCH v2 2/3] mm,memory_hotplug: Drop unneeded locking Oscar Salvador
2021-06-03 12:52 ` Michal Hocko
2021-06-02 9:14 ` [PATCH v2 3/3] mm,memory_hotplug: Remove unneeded declarations Oscar Salvador
2021-06-02 18:38 ` David Hildenbrand [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=87f5c05b-f107-26b9-8c5d-d2394bee2002@redhat.com \
--to=david@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=anshuman.khandual@arm.com \
--cc=dave.hansen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
--cc=osalvador@suse.de \
--cc=pasha.tatashin@soleen.com \
--cc=vbabka@suse.cz \
/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;
as well as URLs for NNTP newsgroup(s).