arm: create_mapping function to remove unused return values
Subsystems (2)
PATCH 1/1 arm: create_mapping function to remove unused return values
Change the return value to void to reduce eax register execution.
Signed-off-by Li kunyu <[email protected]>
--- arch/arm/mm/kasan_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/mm/kasan_init.c +1 -2
@@ -187,7 +187,7 @@ static void __init clear_pgds(unsigned long start,pmd_clear (pmd_off_k (start)); } -static int __init create_mapping (void *start,void *end) +static void __init create_mapping (void *start,void *end) {void *shadow_start, *shadow_end;
@@ -199,7 +199,6 @@ static int __init create_mapping(void *start, void *end)kasan_pgd_populate ((unsigned long )shadow_start &PAGE_MASK ,PAGE_ALIGN ((unsigned long )shadow_end), false); -return 0 ; }void __init kasan_init (void )
Signature · 1 line
2.18.2
Quoted 30 lines · Li kunyu
Change the return value to void to reduce eax register execution.
Signed-off-by Li kunyu <[email protected]>--- arch/arm/mm/kasan_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)arch/arm/mm/kasan_init.c +1
-3@@ -187,7 +187,7 @@ static void __init clear_pgds(unsigned long start,pmd_clear (pmd_off_k (start)); } -static int __init create_mapping (void *start,void *end) +static void __init create_mapping (void *start,void *end) {void *shadow_start, *shadow_end;@@ -199,7 +199,6 @@ static int __init create_mapping(void *start, void *end)kasan_pgd_populate ((unsigned long )shadow_start &PAGE_MASK ,PAGE_ALIGN ((unsigned long )shadow_end), false); -return 0 ; }void __init kasan_init (void ) --
Quoted 1 line
2.18.2
Reviewed-by Andrey Konovalov <[email protected]>