mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
mm: make show_free_areas() static
All callers of show_free_areas() pass 0 and NULL, so we can directly use show_mem() instead of show_free_areas(0, NULL), which could make show_free_areas() a static function. Link: https://lkml.kernel.org/r/20230630062253.189440-2-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Christophe Leroy <christophe.leroy@csgroup.eu> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Matthew Wilcox <willy@infradead.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
527ed4f7d9
commit
1279aa0656
@@ -2236,18 +2236,6 @@ extern void pagefault_out_of_memory(void);
|
||||
#define offset_in_thp(page, p) ((unsigned long)(p) & (thp_size(page) - 1))
|
||||
#define offset_in_folio(folio, p) ((unsigned long)(p) & (folio_size(folio) - 1))
|
||||
|
||||
/*
|
||||
* Flags passed to show_mem() and show_free_areas() to suppress output in
|
||||
* various contexts.
|
||||
*/
|
||||
#define SHOW_MEM_FILTER_NODES (0x0001u) /* disallowed nodes */
|
||||
|
||||
extern void __show_free_areas(unsigned int flags, nodemask_t *nodemask, int max_zone_idx);
|
||||
static void __maybe_unused show_free_areas(unsigned int flags, nodemask_t *nodemask)
|
||||
{
|
||||
__show_free_areas(flags, nodemask, MAX_NR_ZONES - 1);
|
||||
}
|
||||
|
||||
/*
|
||||
* Parameter block passed down to zap_pte_range in exceptional cases.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user