OSDN Git Service

mm: make show_free_areas() static
authorKefeng Wang <wangkefeng.wang@huawei.com>
Fri, 30 Jun 2023 06:22:53 +0000 (14:22 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 18 Aug 2023 17:12:02 +0000 (10:12 -0700)
commit1279aa0656bbebbeecbd3bec0dd50faf35e5db38
tree0e15099dd738cb00c799ed33f91e12da9061b0c9
parent527ed4f7d902d362471a93e1a4afb604c18ceb48
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>
arch/sparc/kernel/setup_32.c
include/linux/mm.h
mm/internal.h
mm/nommu.c
mm/show_mem.c