ARM: Remove leftover of fixmap_page_table
PATCH 1/1 ARM: Remove leftover of fixmap_page_table
fixmap_page_table was removed by commit 836a24183273 (ARM: expand fixmap region to 3MB), but some traces are still there - get rid of them.
--- arch/arm/include/asm/highmem.h | 1 - 1 file changed, 1 deletion(-)
arch/arm/include/asm/highmem.h +0 -1
@@ -18,7 +18,6 @@ }while (0 ) extern pte_t *pkmap_page_table; -extern pte_t *fixmap_page_table;extern void *kmap_high (struct page *page);extern void kunmap_high (struct page *page);
Signature · 1 line
2.0.0
PATCH 1/1 ARM: entry: Remove dead code in sys_mmap2
We support page size of 4K only, remove dead code.
--- arch/arm/kernel/entry-common.S | 9 --------- 1 file changed, 9 deletions(-)
arch/arm/kernel/entry-common.S +0 -9
@@ -371,17 +371,8 @@ ENDPROC(sys_fstatfs64_wrapper) * offset, we return EINVAL. */ sys_mmap2: -#if PAGE_SHIFT > 12 - tst r5, #PGOFF_MASK - moveq r5, r5, lsr #PAGE_SHIFT - 12 - streq r5, [sp, #4] - beq sys_mmap_pgoff - mov r0, #-EINVAL - ret lr -#else str r5, [sp, #4] b sys_mmap_pgoff -#endif ENDPROC(sys_mmap2) #ifdef CONFIG_OABI_COMPAT
Signature · 1 line
2.0.0
PATCH 1/1 ARM: entry: Remove dead code in sys_mmap2
Quoted 20 lines · Vladimir Murzin
We support page size of 4K only, remove dead code.
Signed-off-by Vladimir Murzin <[email protected]>--- arch/arm/kernel/entry-common.S | 9 --------- 1 file changed, 9 deletions(-)arch/arm/kernel/entry-common.S +0
-4@@ -371,17 +371,8 @@ ENDPROC(sys_fstatfs64_wrapper) * offset, we return EINVAL. */ sys_mmap2: -#if PAGE_SHIFT > 12 - tst r5, #PGOFF_MASK - moveq r5, r5, lsr #PAGE_SHIFT - 12 - streq r5, [sp, #4]
arch/arm/kernel/entry-common.S ENDPROC(sys_fstatfs64_wrapper) · line 378
Quoted 10 lines
arch/arm/kernel/entry-common.S +0
-5- beq sys_mmap_pgoff - mov r0, #-EINVAL - ret lr -#else str r5, [sp, #4] b sys_mmap_pgoff -#endif ENDPROC(sys_mmap2) #ifdef CONFIG_OABI_COMPAT
Ok for patch tracker?
Vladimir
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Russell King - ARM Linux
maintainerPATCH 1/1 ARM: entry: Remove dead code in sys_mmap2
Quoted 29 lines · Vladimir Murzin
Quoted 28 lines · Vladimir Murzin
We support page size of 4K only, remove dead code.
Signed-off-by Vladimir Murzin <[email protected]>--- arch/arm/kernel/entry-common.S | 9 --------- 1 file changed, 9 deletions(-)arch/arm/kernel/entry-common.S +0
-9@@ -371,17 +371,8 @@ ENDPROC(sys_fstatfs64_wrapper) * offset, we return EINVAL. */ sys_mmap2: -#if PAGE_SHIFT > 12 - tst r5, #PGOFF_MASK - moveq r5, r5, lsr #PAGE_SHIFT - 12 - streq r5, [sp, #4] - beq sys_mmap_pgoff - mov r0, #-EINVAL - ret lr -#else str r5, [sp, #4] b sys_mmap_pgoff -#endif ENDPROC(sys_mmap2)
Quoted 4 lines
arch/arm/kernel/entry-common.S ENDPROC(sys_fstatfs64_wrapper) · line 378
Quoted 2 lines
arch/arm/kernel/entry-common.S +0
-0#ifdef CONFIG_OABI_COMPATOk for patch tracker?
Yep.
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up
PATCH 1/1 ARM: mm: Remove dead code in mem_init()
In reply to Vladimir MurzinThe code in question checks memory constrains to set default policy for overcommit; however we support page size of 4K only thus condition is always evaluated to false. Remove that dead code.
--- arch/arm/mm/init.c | 10 ---------- 1 file changed, 10 deletions(-)
arch/arm/mm/init.c +0 -10
@@ -580,16 +580,6 @@ void __init mem_init(void)BUILD_BUG_ON (PKMAP_BASE +LAST_PKMAP *PAGE_SIZE >PAGE_OFFSET );BUG_ON (PKMAP_BASE +LAST_PKMAP *PAGE_SIZE >PAGE_OFFSET );#endif - -if (PAGE_SIZE >=16384 &&get_num_physpages () <=128 ) { -extern int sysctl_overcommit_memory; -/* -* On a machine this small we won't get -* anywhere without overcommit, so turn -* it on by default. -*/ - sysctl_overcommit_memory =OVERCOMMIT_ALWAYS ; - } }#ifdef CONFIG_STRICT_KERNEL_RWX
Signature · 1 line
2.0.0
PATCH 1/1 ARM: mm: Remove dead code in mem_init()
Quoted 21 lines · Vladimir Murzin
The code in question checks memory constrains to set default policy for overcommit; however we support page size of 4K only thus condition is always evaluated to false. Remove that dead code.
Signed-off-by Vladimir Murzin <[email protected]>--- arch/arm/mm/init.c | 10 ---------- 1 file changed, 10 deletions(-)arch/arm/mm/init.c +0
-3@@ -580,16 +580,6 @@ void __init mem_init(void)BUILD_BUG_ON (PKMAP_BASE +LAST_PKMAP *PAGE_SIZE >PAGE_OFFSET );BUG_ON (PKMAP_BASE +LAST_PKMAP *PAGE_SIZE >PAGE_OFFSET );#endif - -if (PAGE_SIZE >=16384 &&get_num_physpages () <=128 ) { -extern int sysctl_overcommit_memory;
arch/arm/mm/init.c void __init mem_init(void) · line 585
Quoted 10 lines
arch/arm/mm/init.c +0
-7-/* -* On a machine this small we won't get -* anywhere without overcommit, so turn -* it on by default. -*/ - sysctl_overcommit_memory =OVERCOMMIT_ALWAYS ; - } }#ifdef CONFIG_STRICT_KERNEL_RWX
Ok for patch tracker?
Vladimir
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Russell King - ARM Linux
maintainerPATCH 1/1 ARM: mm: Remove dead code in mem_init()
Quoted 30 lines · Vladimir Murzin
Quoted 29 lines · Vladimir Murzin
The code in question checks memory constrains to set default policy for overcommit; however we support page size of 4K only thus condition is always evaluated to false. Remove that dead code.
Signed-off-by Vladimir Murzin <[email protected]>--- arch/arm/mm/init.c | 10 ---------- 1 file changed, 10 deletions(-)arch/arm/mm/init.c +0
-10@@ -580,16 +580,6 @@ void __init mem_init(void)BUILD_BUG_ON (PKMAP_BASE +LAST_PKMAP *PAGE_SIZE >PAGE_OFFSET );BUG_ON (PKMAP_BASE +LAST_PKMAP *PAGE_SIZE >PAGE_OFFSET );#endif - -if (PAGE_SIZE >=16384 &&get_num_physpages () <=128 ) { -extern int sysctl_overcommit_memory; -/* -* On a machine this small we won't get -* anywhere without overcommit, so turn -* it on by default. -*/ - sysctl_overcommit_memory =OVERCOMMIT_ALWAYS ; - } }
Quoted 4 lines
arch/arm/mm/init.c void __init mem_init(void) · line 585
Quoted 2 lines
arch/arm/mm/init.c +0
-0#ifdef CONFIG_STRICT_KERNEL_RWX Ok for patch tracker?
Yep.
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up
PATCH 1/1 ARM: Remove leftover of fixmap_page_table
In reply to Vladimir MurzinQuoted 15 lines · Vladimir Murzin
fixmap_page_tablewas removed by commit836a24183273(ARM: expand fixmap region to 3MB), but some traces are still there - get rid of them.Signed-off-by Vladimir Murzin <[email protected]>--- arch/arm/include/asm/highmem.h | 1 - 1 file changed, 1 deletion(-)arch/arm/include/asm/highmem.h +0
-0
arch/arm/include/asm/highmem.h line 23
Quoted 7 lines
arch/arm/include/asm/highmem.h +0
-1@@ -18,7 +18,6 @@ }while (0 ) extern pte_t *pkmap_page_table; -extern pte_t *fixmap_page_table;extern void *kmap_high (struct page *page);extern void kunmap_high (struct page *page);
Ok for patch tracker?
Vladimir
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
Russell King - ARM Linux
maintainerPATCH 1/1 ARM: Remove leftover of fixmap_page_table
Quoted 17 lines · Vladimir Murzin
Quoted 16 lines · Vladimir Murzin
fixmap_page_tablewas removed by commit836a24183273(ARM: expand fixmap region to 3MB), but some traces are still there - get rid of them.Signed-off-by Vladimir Murzin <[email protected]>--- arch/arm/include/asm/highmem.h | 1 - 1 file changed, 1 deletion(-)arch/arm/include/asm/highmem.h +0
-0@@ -18,7 +18,6 @@ }while (0 )
Quoted 8 lines
arch/arm/include/asm/highmem.h line 23
Quoted 6 lines
arch/arm/include/asm/highmem.h +0
-1extern pte_t *pkmap_page_table; -extern pte_t *fixmap_page_table;extern void *kmap_high (struct page *page);extern void kunmap_high (struct page *page);Ok for patch tracker?
Yep.
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up