On Wed, Apr 02, 2025 at 10:49:06AM -0400, Steven Rostedt wrote:
> From: Steven Rostedt <[email protected]>
> 
> The code to map the physical memory retrieved by memmap currently
> allocates an array of pages to cover the physical memory and then calls
> vmap() to map it to a virtual address. Instead of using this temporary
> array of struct page descriptors, simply use vmap_page_range() that can
> directly map the contiguous physical memory to a virtual address.
> 
> Link: 
> https://lore.kernel.org/all/CAHk-=whuofvucfjrt7e0ah+gv41elms4wjqxhdnui6giddf...@mail.gmail.com/
> 
> Suggested-by: Linus Torvalds <[email protected]>
> Signed-off-by: Steven Rostedt (Google) <[email protected]>
> ---
>  kernel/trace/trace.c | 33 ++++++++++++++++-----------------
...
> +     area = get_vm_area(size, VM_IOREMAP);

non-MMU builds (xtensa:nommu_kc705_defconfig):

kernel/trace/trace.o:(.init.literal+0x250): undefined reference to `get_vm_area'

Guenter

Reply via email to