Skip to content

Commit c03b12a

Browse files
committed
openrisc: Remove unused tlb_init function
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>
1 parent f390155 commit c03b12a

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

arch/openrisc/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@ static void __init map_ram(void)
123123

124124
void __init paging_init(void)
125125
{
126-
extern void tlb_init(void);
127-
128126
int i;
129127

130128
printk(KERN_INFO "Setting up paging and PTEs.\n");

arch/openrisc/mm/tlb.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,3 @@ void destroy_context(struct mm_struct *mm)
182182
flush_tlb_mm(mm);
183183

184184
}
185-
186-
/* called once during VM initialization, from init.c */
187-
188-
void __init tlb_init(void)
189-
{
190-
/* Do nothing... */
191-
/* invalidate the entire TLB */
192-
/* flush_tlb_all(); */
193-
}

0 commit comments

Comments
 (0)