2022-04-25 13:27:22

by Linus Torvalds

[permalink] [raw]
Subject: Re: page_alloc.c:(.init.text+0xa7c): undefined reference to `vmalloc_huge'

On Mon, Apr 25, 2022 at 1:10 AM Naresh Kamboju
<[email protected]> wrote:
>
> # CONFIG_MMU is not set

I just sent the stupid and straightforward patch in

https://lore.kernel.org/all/CAHk-=wi5DYKbFE4j-jC2HGsKVuf1RpZbEiYt4tSXuxGKiN9oJg@mail.gmail.com/

but then I thought maybe the alias patch is as simple as the attached.

So does either (or both) of these patches work?

Linus


Attachments:
patch.diff (407.00 B)

2022-04-25 14:59:50

by Naresh Kamboju

[permalink] [raw]
Subject: Re: page_alloc.c:(.init.text+0xa7c): undefined reference to `vmalloc_huge'

Hi Linus,

On Mon, 25 Apr 2022 at 13:58, Linus Torvalds
<[email protected]> wrote:
>
> On Mon, Apr 25, 2022 at 1:10 AM Naresh Kamboju
> <[email protected]> wrote:
> >
> > # CONFIG_MMU is not set
>
> I just sent the stupid and straightforward patch in
>
> https://lore.kernel.org/all/CAHk-=wi5DYKbFE4j-jC2HGsKVuf1RpZbEiYt4tSXuxGKiN9oJg@mail.gmail.com/
>
> but then I thought maybe the alias patch is as simple as the attached.
>
> So does either (or both) of these patches work?

Yes.
I have tested these two patches and both the way the build passes.

Tested-by: Linux Kernel Functional Testing <[email protected]>

- Naresh
>
> Linus