summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2025-04-07 19:01:11 +0300
committerSteven Rostedt (Google) <rostedt@goodmis.org>2025-04-07 19:02:11 +0300
commit4808595a9922e89726ec5611d7749b63966b7fa8 (patch)
tree608d23a603a6da12f7bf2ce7897ea34dc2867e4d /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
parent0af2f6be1b4281385b618cb86ad946eded089ac8 (diff)
downloadlinux-4808595a9922e89726ec5611d7749b63966b7fa8.tar.xz
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 <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://lore.kernel.org/20250407120111.2ccc9319@gandalf.local.home Reported-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Guenter Roeck <linux@roeck-us.net> Closes: https://lore.kernel.org/all/4f8ece8b-8862-4f7c-8ede-febd28f8a9fe@roeck-us.net/ Fixes: 394f3f02de531 ("tracing: Use vmap_page_range() to map memmap ring buffer") Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions