Skip to content

Commit

Permalink
openrisc: mm/init.c: remove unused variable 'end' in paging_init()
Browse files Browse the repository at this point in the history
A build with W=1 enabled produces the following warning:

  CC      arch/openrisc/mm/init.o
arch/openrisc/mm/init.c: In function 'paging_init':
arch/openrisc/mm/init.c:131:16: warning: variable 'end' set but not used [-Wunused-but-set-variable]
  131 |  unsigned long end;
      |                ^~~

Remove the unused variable 'end'.

Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
  • Loading branch information
rppt authored and stffrdhrn committed May 9, 2021
1 parent 4eff124 commit 371dcae
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/openrisc/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ void __init paging_init(void)
{
extern void tlb_init(void);

unsigned long end;
int i;

printk(KERN_INFO "Setting up paging and PTEs.\n");
Expand All @@ -144,8 +143,6 @@ void __init paging_init(void)
*/
current_pgd[smp_processor_id()] = init_mm.pgd;

end = (unsigned long)__va(max_low_pfn * PAGE_SIZE);

map_ram();

zone_sizes_init();
Expand Down

0 comments on commit 371dcae

Please sign in to comment.