# Re: \[PATCH v3 resend 01/15\] mm: add setup\_initial\_init\_mm() helper

- From: Souptick Joarder \<hidden\>
- Date: 2021-06-08 15:14:41 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/06/1406622
- Thread: https://ratatoskr.run/linux-s390/2021/06/1406122/t.md

```text
On Tue, Jun 8, 2021 at 8:27 PM Christophe Leroy
[ref] wrote:
>
>
>
> Le 08/06/2021 à 16:53, Souptick Joarder a écrit :
> > On Tue, Jun 8, 2021 at 1:56 PM Kefeng Wang [ref] wrote:
> >>
> >> Add setup_initial_init_mm() helper to setup kernel text,
> >> data and brk.
> >>
> >> Cc: <redacted>
> >> Cc: <redacted>
> >> Cc: <redacted>
> >> Cc: <redacted>
> >> Cc: <redacted>
> >> Cc: <redacted>
> >> Cc: <redacted>
> >> Cc: <redacted>
> >> Cc: <redacted>
> >> Cc: <redacted>
> >> Cc: x86@kernel.org
> >> Signed-off-by: Kefeng Wang <redacted>
> >> ---
> >>   include/linux/mm.h | 3 +++
> >>   mm/init-mm.c       | 9 +++++++++
> >>   2 files changed, 12 insertions(+)
> >>
> >> diff --git a/include/linux/mm.h b/include/linux/mm.h
> >> index c274f75efcf9..02aa057540b7 100644
> >> --- a/include/linux/mm.h
> >> +++ b/include/linux/mm.h
> >> @@ -244,6 +244,9 @@ int __add_to_page_cache_locked(struct page *page, struct address_space *mapping,
> >>
> >>   #define lru_to_page(head) (list_entry((head)->prev, struct page, lru))
> >>
> >> +void setup_initial_init_mm(void *start_code, void *end_code,
> >> +                          void *end_data, void *brk);
> >> +
> >
> > Gentle query -> is there any limitation to add inline functions in
> > setup_arch() functions ?
>
> Kefeng just followed comment from Mike I guess, see
> https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20210604070633.32363-2-wangkefeng.wang@huawei.com/#2696253

Ok.
>
> Christophe
>
```
