On Tue 30-08-22 19:57:43, Andrew Morton wrote: > From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> > 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@xxxxxxxxxxxxx> > Cc: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Cc: Johannes Weiner <hannes@xxxxxxxxxxx> > Cc: Mel Gorman <mgorman@xxxxxxx> > Cc: Michal Hocko <mhocko@xxxxxxxx> > Cc: Vlastimil Babka <vbabka@xxxxxxx> > Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> 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