Commit 4808595
committed
tracing: Hide get_vm_area() from MMUless builds
The function get_vm_area() is not defined for non-MMU builds and causes a
build error if it is used. Hide the map_pages() function around a:
#ifdef CONFIG_MMU
to keep it from being compiled when CONFIG_MMU is not set.
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Link: https://lore.kernel.org/[email protected]
Reported-by: Guenter Roeck <[email protected]>
Tested-by: Guenter Roeck <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Fixes: 394f3f0 ("tracing: Use vmap_page_range() to map memmap ring buffer")
Signed-off-by: Steven Rostedt (Google) <[email protected]>1 parent 0af2f6b commit 4808595
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9806 | 9806 | | |
9807 | 9807 | | |
9808 | 9808 | | |
| 9809 | + | |
9809 | 9810 | | |
9810 | 9811 | | |
9811 | 9812 | | |
| |||
9828 | 9829 | | |
9829 | 9830 | | |
9830 | 9831 | | |
| 9832 | + | |
| 9833 | + | |
| 9834 | + | |
| 9835 | + | |
| 9836 | + | |
| 9837 | + | |
9831 | 9838 | | |
9832 | 9839 | | |
9833 | 9840 | | |
| |||
0 commit comments