Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mips: drop paging_init()

All three variants of paging_init() on MIPS are wrappers for
pagetable_init().

Instead of having three identical wrappers, call pagetable_init() directly
from setup_arch() and remove the unnecessary paging_init() functions.

Link: https://lkml.kernel.org/r/20260111082105.290734-26-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Alex Shi <alexs@kernel.org>
Cc: Andreas Larsson <andreas@gaisler.com>
Cc: "Borislav Petkov (AMD)" <bp@alien8.de>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: David Hildenbrand <david@kernel.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Guo Ren <guoren@kernel.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Helge Deller <deller@gmx.de>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Klara Modin <klarasmodin@gmail.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Magnus Lindholm <linmag7@gmail.com>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Pratyush Yadav <pratyush@kernel.org>
Cc: Richard Weinberger <richard@nod.at>
Cc: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Stafford Horne <shorne@gmail.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Vineet Gupta <vgupta@kernel.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Mike Rapoport (Microsoft) and committed by
Andrew Morton
5dea3949 4267739c

+3 -20
-2
arch/mips/include/asm/pgalloc.h
··· 101 101 102 102 #endif /* __PAGETABLE_PUD_FOLDED */ 103 103 104 - extern void pagetable_init(void); 105 - 106 104 #endif /* _ASM_PGALLOC_H */
+1 -1
arch/mips/include/asm/pgtable.h
··· 56 56 (virt_to_page((void *)(empty_zero_page + (((unsigned long)(vaddr)) & zero_page_mask)))) 57 57 #define __HAVE_COLOR_ZERO_PAGE 58 58 59 - extern void paging_init(void); 59 + extern void pagetable_init(void); 60 60 61 61 /* 62 62 * Conversion functions: convert a page and protection to a page entry,
+2 -2
arch/mips/kernel/setup.c
··· 614 614 * kernel but generic memory management system is still entirely uninitialized. 615 615 * 616 616 * o bootmem_init() 617 - * o paging_init() 617 + * o pagetable_init() 618 618 * o dma_contiguous_reserve() 619 619 * 620 620 * At this stage the bootmem allocator is ready to use. ··· 778 778 prefill_possible_map(); 779 779 780 780 cpu_cache_init(); 781 - paging_init(); 781 + pagetable_init(); 782 782 783 783 memblock_dump_all(); 784 784
-5
arch/mips/loongson64/numa.c
··· 160 160 max_zone_pfns[ZONE_NORMAL] = max_low_pfn; 161 161 } 162 162 163 - void __init paging_init(void) 164 - { 165 - pagetable_init(); 166 - } 167 - 168 163 /* All PCI device belongs to logical Node-0 */ 169 164 int pcibus_to_node(struct pci_bus *bus) 170 165 {
-5
arch/mips/mm/init.c
··· 415 415 #endif 416 416 } 417 417 418 - void __init paging_init(void) 419 - { 420 - pagetable_init(); 421 - } 422 - 423 418 #ifdef CONFIG_64BIT 424 419 static struct kcore_list kcore_kseg0; 425 420 #endif
-5
arch/mips/sgi-ip27/ip27-memory.c
··· 410 410 { 411 411 max_zone_pfns[ZONE_NORMAL] = max_low_pfn; 412 412 } 413 - 414 - void __init paging_init(void) 415 - { 416 - pagetable_init(); 417 - }