openrisc: Remove unused tlb_init function
authorStafford Horne <shorne@gmail.com>
Sun, 20 Aug 2023 19:57:14 +0000 (20:57 +0100)
committerStafford Horne <shorne@gmail.com>
Mon, 21 Aug 2023 07:15:25 +0000 (08:15 +0100)
When compiling with W=1 enabling -Wmissing-prototypes the compiler
warns:

  arch/openrisc/mm/tlb.c:188:13: error: no previous prototype for 'tlb_init' [-Werror=missing-prototypes]

This function is not implemented or used so remove it.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Closes: https://lore.kernel.org/linux-kernel/20230810141947.1236730-17-arnd@kernel.org/
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/mm/init.c
arch/openrisc/mm/tlb.c

index d531ab82be128da382da99ff8f3dbb4855647938..1dcd78c8f0e99b89a66f00eb476f0b1f9057d40a 100644 (file)
@@ -123,8 +123,6 @@ static void __init map_ram(void)
 
 void __init paging_init(void)
 {
-       extern void tlb_init(void);
-
        int i;
 
        printk(KERN_INFO "Setting up paging and PTEs.\n");
index e2f2a3c3bb224a612f8473c1b340ada4f7cd27d2..3115f2e4f864f8ff78b1fefafa408232effcae98 100644 (file)
@@ -182,12 +182,3 @@ void destroy_context(struct mm_struct *mm)
        flush_tlb_mm(mm);
 
 }
-
-/* called once during VM initialization, from init.c */
-
-void __init tlb_init(void)
-{
-       /* Do nothing... */
-       /* invalidate the entire TLB */
-       /* flush_tlb_all(); */
-}