From: Kefeng Wang Date: Thu, 8 Jul 2021 01:09:00 +0000 (-0700) Subject: sh: convert to setup_initial_init_mm() X-Git-Tag: accepted/tizen/unified/20230118.172025~6863^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7cce365988e771c179c0b2a4e8e4763fdd233fd;p=platform%2Fkernel%2Flinux-rpi.git sh: convert to setup_initial_init_mm() Use setup_initial_init_mm() helper to simplify code. Link: https://lkml.kernel.org/r/20210608083418.137226-15-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang Cc: Yoshinori Sato Cc: Rich Felker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 4144be6..1fcb665 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c @@ -294,10 +294,7 @@ void __init setup_arch(char **cmdline_p) if (!MOUNT_ROOT_RDONLY) root_mountflags &= ~MS_RDONLY; - init_mm.start_code = (unsigned long) _text; - init_mm.end_code = (unsigned long) _etext; - init_mm.end_data = (unsigned long) _edata; - init_mm.brk = (unsigned long) _end; + setup_initial_init_mm(_text, _etext, _edata, _end); code_resource.start = virt_to_phys(_text); code_resource.end = virt_to_phys(_etext)-1;