diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2023-06-30 14:22:52 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-08-18 10:12:02 -0700 |
commit | 527ed4f7d902d362471a93e1a4afb604c18ceb48 (patch) | |
tree | 490748146dd6f8a433fdbbcadb746290e7368b8a /include/linux/mm.h | |
parent | 626e98cb0366e66bdc2088918aecabee1fc6c4b2 (diff) | |
download | linux-starfive-527ed4f7d902d362471a93e1a4afb604c18ceb48.tar.gz linux-starfive-527ed4f7d902d362471a93e1a4afb604c18ceb48.tar.bz2 linux-starfive-527ed4f7d902d362471a93e1a4afb604c18ceb48.zip |
mm: remove arguments of show_mem()
All callers of show_mem() pass 0 and NULL, so we can remove the two
arguments by directly calling __show_mem(0, NULL, MAX_NR_ZONES - 1) in
show_mem().
Link: https://lkml.kernel.org/r/20230630062253.189440-1-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>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 6d150990e35c..8c3e3eec9008 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -3068,9 +3068,9 @@ extern void mem_init(void); extern void __init mmap_init(void); extern void __show_mem(unsigned int flags, nodemask_t *nodemask, int max_zone_idx); -static inline void show_mem(unsigned int flags, nodemask_t *nodemask) +static inline void show_mem(void) { - __show_mem(flags, nodemask, MAX_NR_ZONES - 1); + __show_mem(0, NULL, MAX_NR_ZONES - 1); } extern long si_mem_available(void); extern void si_meminfo(struct sysinfo * val); |