Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <wangkefeng.wang@huawei.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Kefeng Wang and committed by
Linus Torvalds
f7cce365 638cd5a3

+1 -4
+1 -4
arch/sh/kernel/setup.c
··· 294 294 295 295 if (!MOUNT_ROOT_RDONLY) 296 296 root_mountflags &= ~MS_RDONLY; 297 - init_mm.start_code = (unsigned long) _text; 298 - init_mm.end_code = (unsigned long) _etext; 299 - init_mm.end_data = (unsigned long) _edata; 300 - init_mm.brk = (unsigned long) _end; 297 + setup_initial_init_mm(_text, _etext, _edata, _end); 301 298 302 299 code_resource.start = virt_to_phys(_text); 303 300 code_resource.end = virt_to_phys(_etext)-1;