Skip to content

Commit

Permalink
openrisc: Remove unused tlb_init function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stffrdhrn committed Aug 21, 2023
1 parent f390155 commit c03b12a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions arch/openrisc/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
9 changes: 0 additions & 9 deletions arch/openrisc/mm/tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(); */
}

0 comments on commit c03b12a

Please sign in to comment.