* + mmmemory_hotplug-drop-unneeded-locking-fix.patch added to -mm tree
@ 2021-06-01 4:44 akpm
2021-06-01 4:59 ` Anshuman Khandual
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2021-06-01 4:44 UTC (permalink / raw)
To: akpm, anshuman.khandual, david, mhocko, mm-commits, osalvador,
pasha.tatashin, vbabka
The patch titled
Subject: mmmemory_hotplug-drop-unneeded-locking-fix
has been added to the -mm tree. Its filename is
mmmemory_hotplug-drop-unneeded-locking-fix.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mmmemory_hotplug-drop-unneeded-locking-fix.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mmmemory_hotplug-drop-unneeded-locking-fix.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mmmemory_hotplug-drop-unneeded-locking-fix
remove now-unused locals
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Pavel Tatashin <pasha.tatashin@soleen.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/memory_hotplug.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
--- a/mm/memory_hotplug.c~mmmemory_hotplug-drop-unneeded-locking-fix
+++ a/mm/memory_hotplug.c
@@ -397,7 +397,7 @@ void __ref remove_pfn_range_from_zone(st
{
const unsigned long end_pfn = start_pfn + nr_pages;
struct pglist_data *pgdat = zone->zone_pgdat;
- unsigned long pfn, cur_nr_pages, flags;
+ unsigned long pfn, cur_nr_pages;
/* Poison struct pages because they are now uninitialized again. */
for (pfn = start_pfn; pfn < end_pfn; pfn += cur_nr_pages) {
@@ -630,7 +630,6 @@ void __ref move_pfn_range_to_zone(struct
{
struct pglist_data *pgdat = zone->zone_pgdat;
int nid = pgdat->node_id;
- unsigned long flags;
clear_zone_contiguous(zone);
@@ -727,8 +726,6 @@ struct zone *zone_for_pfn_range(int onli
*/
void adjust_present_page_count(struct zone *zone, long nr_pages)
{
- unsigned long flags;
-
zone->present_pages += nr_pages;
zone->zone_pgdat->node_present_pages += nr_pages;
}
_
Patches currently in -mm which might be from akpm@linux-foundation.org are
mm.patch
mm-slub-kunit-add-a-kunit-test-for-slub-debugging-functionality-fix-2.patch
mm-gup-pack-has_pinned-in-mmf_has_pinned-checkpatch-fixes.patch
mm-memcg-optimize-user-context-object-stock-access-checkpatch-fixes.patch
mm-memcg-slab-create-a-new-set-of-kmalloc-cg-n-caches-v5-fix.patch
binfmt-remove-in-tree-usage-of-map_executable-fix.patch
mm-mmap-introduce-unlock_range-for-code-cleanup-fix.patch
powerpc-mm-book3s64-update-tlb-flush-routines-to-take-a-page-walk-cache-flush-argument-fix.patch
mm-mremap-use-range-flush-that-does-tlb-and-page-walk-cache-flush-fix.patch
mm-rename-the-global-section-array-to-mem_sections-fix.patch
mm-rename-the-global-section-array-to-mem_sections-fix-fix.patch
mm-page_alloc-convert-per-cpu-list-protection-to-local_lock-fix-checkpatch-fixes.patch
mm-memory-failure-use-a-mutex-to-avoid-memory_failure-races-fix.patch
mm-memory_hotplug-disable-memmap_on_memory-when-hugetlb_free_vmemmap-enabled-fix.patch
mm-userfaultfd-fix-uffd-wp-special-cases-for-fork-fix.patch
mm-thp-check-total_mapcount-instead-of-page_mapcount-fix-fix-fix.patch
nommu-remove-__gfp_highmem-in-vmalloc-vzalloc-checkpatch-fixes.patch
mm-madvise-introduce-madv_populate_readwrite-to-prefault-page-tables-checkpatch-fixes.patch
mmmemory_hotplug-drop-unneeded-locking-fix.patch
mm-rmap-make-try_to_unmap-void-function-fix.patch
mm-rmap-make-try_to_unmap-void-function-fix-fix.patch
mm-early_ioremap-add-prototype-for-early_memremap_pgprot_adjust-fix.patch
kernelh-split-out-panic-and-oops-helpers-fix.patch
lib-math-rational-add-kunit-test-cases-fix.patch
lib-decompressors-remove-set-but-not-used-variabled-level-fix.patch
ipc-utilc-use-binary-search-for-max_idx-fix.patch
linux-next-pre.patch
linux-next-post.patch
linux-next-rejects.patch
linux-next-git-rejects.patch
mm-introduce-memfd_secret-system-call-to-create-secret-memory-areas-fix.patch
module-add-printk-formats-to-add-module-build-id-to-stacktraces-fix.patch
module-add-printk-formats-to-add-module-build-id-to-stacktraces-fix-fix.patch
kernel-forkc-export-kernel_thread-to-modules.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: + mmmemory_hotplug-drop-unneeded-locking-fix.patch added to -mm tree
2021-06-01 4:44 + mmmemory_hotplug-drop-unneeded-locking-fix.patch added to -mm tree akpm
@ 2021-06-01 4:59 ` Anshuman Khandual
0 siblings, 0 replies; 2+ messages in thread
From: Anshuman Khandual @ 2021-06-01 4:59 UTC (permalink / raw)
To: akpm, david, mhocko, mm-commits, osalvador, pasha.tatashin, vbabka
On 6/1/21 10:14 AM, akpm@linux-foundation.org wrote:
> The patch titled
> Subject: mmmemory_hotplug-drop-unneeded-locking-fix
> has been added to the -mm tree. Its filename is
> mmmemory_hotplug-drop-unneeded-locking-fix.patch
>
> This patch should soon appear at
> https://ozlabs.org/~akpm/mmots/broken-out/mmmemory_hotplug-drop-unneeded-locking-fix.patch
> and later at
> https://ozlabs.org/~akpm/mmotm/broken-out/mmmemory_hotplug-drop-unneeded-locking-fix.patch
>
> Before you just go and hit "reply", please:
> a) Consider who else should be cc'ed
> b) Prefer to cc a suitable mailing list as well
> c) Ideally: find the original patch on the mailing list and do a
> reply-to-all to that, adding suitable additional cc's
>
> *** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
>
> The -mm tree is included into linux-next and is updated
> there every 3-4 working days
>
> ------------------------------------------------------
> From: Andrew Morton <akpm@linux-foundation.org>
> Subject: mmmemory_hotplug-drop-unneeded-locking-fix
>
> remove now-unused locals
>
> Cc: Anshuman Khandual <anshuman.khandual@arm.com>
> Cc: David Hildenbrand <david@redhat.com>
> Cc: Michal Hocko <mhocko@suse.com>
> Cc: Oscar Salvador <osalvador@suse.de>
> Cc: Pavel Tatashin <pasha.tatashin@soleen.com>
> Cc: Vlastimil Babka <vbabka@suse.cz>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> mm/memory_hotplug.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> --- a/mm/memory_hotplug.c~mmmemory_hotplug-drop-unneeded-locking-fix
> +++ a/mm/memory_hotplug.c
> @@ -397,7 +397,7 @@ void __ref remove_pfn_range_from_zone(st
> {
> const unsigned long end_pfn = start_pfn + nr_pages;
> struct pglist_data *pgdat = zone->zone_pgdat;
> - unsigned long pfn, cur_nr_pages, flags;
> + unsigned long pfn, cur_nr_pages;
>
> /* Poison struct pages because they are now uninitialized again. */
> for (pfn = start_pfn; pfn < end_pfn; pfn += cur_nr_pages) {
> @@ -630,7 +630,6 @@ void __ref move_pfn_range_to_zone(struct
> {
> struct pglist_data *pgdat = zone->zone_pgdat;
> int nid = pgdat->node_id;
> - unsigned long flags;
>
> clear_zone_contiguous(zone);
>
> @@ -727,8 +726,6 @@ struct zone *zone_for_pfn_range(int onli
> */
> void adjust_present_page_count(struct zone *zone, long nr_pages)
> {
> - unsigned long flags;
> -
> zone->present_pages += nr_pages;
> zone->zone_pgdat->node_present_pages += nr_pages;
> }
> _
Yeah indeed. Without this patch, there are some build warnings.
mm/memory_hotplug.c: In function ‘remove_pfn_range_from_zone’:
mm/memory_hotplug.c:516:35: warning: unused variable ‘flags’ [-Wunused-variable]
unsigned long pfn, cur_nr_pages, flags;
^~~~~
mm/memory_hotplug.c: In function ‘move_pfn_range_to_zone’:
mm/memory_hotplug.c:749:16: warning: unused variable ‘flags’ [-Wunused-variable]
unsigned long flags;
^~~~~
mm/memory_hotplug.c: In function ‘adjust_present_page_count’:
mm/memory_hotplug.c:846:16: warning: unused variable ‘flags’ [-Wunused-variable]
unsigned long flags;
^~~~~
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-01 4:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01 4:44 + mmmemory_hotplug-drop-unneeded-locking-fix.patch added to -mm tree akpm
2021-06-01 4:59 ` Anshuman Khandual
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).