lkml.org 
[lkml]   [2022]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: + mm-reduce-noise-in-show_mem-for-lowmem-allocations-update-fix.patch added to mm-unstable branch
On Tue 30-08-22 19:57:43, Andrew Morton wrote:
> From: Andrew Morton <akpm@linux-foundation.org>
> Subject: mm-reduce-noise-in-show_mem-for-lowmem-allocations-update-fix
> Date: Tue Aug 30 06:53:22 PM PDT 2022
>
> fix build, remove unneeded __show_mem() arg
>
> lib/show_mem.c: In function '__show_mem':
> lib/show_mem.c:17:9: error: too many arguments to function 'show_free_areas'
> 17 | show_free_areas(filter, nodemask, max_zone_idx);
> | ^~~~~~~~~~~~~~~
> In file included from lib/show_mem.c:8:
> ./include/linux/mm.h:1842:28: note: declared here
> 1842 | static void __maybe_unused show_free_areas(unsigned int flags, nodemask_t *nodemask)
> | ^~~~~~~~~~~~~~~
>
> Cc: Christoph Hellwig <hch@infradead.org>
> Cc: Dan Carpenter <dan.carpenter@oracle.com>
> Cc: Johannes Weiner <hannes@cmpxchg.org>
> Cc: Mel Gorman <mgorman@suse.de>
> Cc: Michal Hocko <mhocko@suse.com>
> Cc: Vlastimil Babka <vbabka@suse.cz>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

This should be addressed by
---
diff --git a/lib/show_mem.c b/lib/show_mem.c
index ade71096e241..0d7585cde2a6 100644
--- a/lib/show_mem.c
+++ b/lib/show_mem.c
@@ -14,7 +14,7 @@ void __show_mem(unsigned int filter, nodemask_t *nodemask, int max_zone_idx)
unsigned long total = 0, reserved = 0, highmem = 0;

printk("Mem-Info:\n");
- show_free_areas(filter, nodemask, max_zone_idx);
+ __show_free_areas(filter, nodemask, max_zone_idx);

for_each_online_pgdat(pgdat) {
int zoneid;
--
Michal Hocko
SUSE Labs

\
 
 \ /
  Last update: 2022-08-31 09:59    [W:0.022 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site