summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBaoquan He <bhe@redhat.com>2024-03-25 17:56:46 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-04-26 06:56:11 +0300
commit0b52663f7547520fbf54e2c07f61f8bd1b5cb6eb (patch)
treecbe0ca02f35dc25f3cf07b63d05e49060cdb0b89 /include
parent90e796e22e35af0d19874c36fa4a22709aec1659 (diff)
downloadlinux-0b52663f7547520fbf54e2c07f61f8bd1b5cb6eb.tar.xz
mm/mm_init.c: remove arch_reserved_kernel_pages()
Since the current calculation of calc_nr_kernel_pages() has taken into consideration of kernel reserved memory, no need to have arch_reserved_kernel_pages() any more. Link: https://lkml.kernel.org/r/20240325145646.1044760-7-bhe@redhat.com Signed-off-by: Baoquan He <bhe@redhat.com> Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mm.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 22ae6ab621da..dd47ba7a1c04 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -3261,9 +3261,6 @@ static inline void show_mem(void)
extern long si_mem_available(void);
extern void si_meminfo(struct sysinfo * val);
extern void si_meminfo_node(struct sysinfo *val, int nid);
-#ifdef __HAVE_ARCH_RESERVED_KERNEL_PAGES
-extern unsigned long arch_reserved_kernel_pages(void);
-#endif
extern __printf(3, 4)
void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...);