diff options
author | 2023-03-21 19:05:11 +0200 | |
---|---|---|
committer | 2023-04-05 19:42:54 -0700 | |
commit | d5d2c02a4980c2e22037679457bf2d921b86a503 (patch) | |
tree | e5ce79f82aa94b6aeb3bc7e223a39768718cc82b /mm/slab.h | |
parent | mm: move mem_init_print_info() to mm_init.c (diff) | |
download | linux-d5d2c02a4980c2e22037679457bf2d921b86a503.tar.gz linux-d5d2c02a4980c2e22037679457bf2d921b86a503.tar.bz2 linux-d5d2c02a4980c2e22037679457bf2d921b86a503.zip |
mm: move kmem_cache_init() declaration to mm/slab.h
kmem_cache_init() is called only from mm_core_init(), there is no need to
declare it in include/linux/slab.h
Move kmem_cache_init() declaration to mm/slab.h
Link: https://lkml.kernel.org/r/20230321170513.2401534-13-rppt@kernel.org
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Doug Berger <opendmb@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/slab.h')
-rw-r--r-- | mm/slab.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/slab.h b/mm/slab.h index 43966aa5fadf..3f8df2244f5a 100644 --- a/mm/slab.h +++ b/mm/slab.h @@ -4,6 +4,7 @@ /* * Internal slab definitions */ +void __init kmem_cache_init(void); /* Reuses the bits in struct page */ struct slab { |