summaryrefslogtreecommitdiffstats
path: root/arch/openrisc/mm
diff options
context:
space:
mode:
authorMike Rapoport <rppt@linux.ibm.com>2021-05-09 11:11:03 +0200
committerStafford Horne <shorne@gmail.com>2021-05-09 23:22:43 +0200
commit371dcaee1ade4b1eefd541ae6ee048b5ce15b37c (patch)
tree3e2960db8e4be651240052d0dc10361b8d48fb8f /arch/openrisc/mm
parentopenrisc: mm/init.c: remove unused memblock_region variable in map_ram() (diff)
downloadlinux-371dcaee1ade4b1eefd541ae6ee048b5ce15b37c.tar.xz
linux-371dcaee1ade4b1eefd541ae6ee048b5ce15b37c.zip
openrisc: mm/init.c: remove unused variable 'end' in paging_init()
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>
Diffstat (limited to 'arch/openrisc/mm')
-rw-r--r--arch/openrisc/mm/init.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/openrisc/mm/init.c b/arch/openrisc/mm/init.c
index f3fa02b8838a..6e38ec96cab8 100644
--- a/arch/openrisc/mm/init.c
+++ b/arch/openrisc/mm/init.c
@@ -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");
@@ -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();