summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/panthor
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@collabora.com>2024-03-04 10:08:11 +0100
committerBoris Brezillon <boris.brezillon@collabora.com>2024-03-11 10:50:37 +0100
commiteb1dc10a6ee3559310436ab62db93b72310a2a18 (patch)
treec3e9ec13b8d3c0f0de16fb2f0d4ac53ae38af507 /drivers/gpu/drm/panthor
parent9c86b03863844ce69f99aa66404c79492ec9e208 (diff)
downloadlwn-eb1dc10a6ee3559310436ab62db93b72310a2a18.tar.gz
lwn-eb1dc10a6ee3559310436ab62db93b72310a2a18.zip
drm/panthor: Explicitly include mm.h for the {virt, __phys)_to_pfn() defs
Something on arm[64] must be including <asm/page.h>, but things fail to compile on sparc64. Make sure this header is included (through linux/mm.h) so this driver can be compile-tested on all supported architectures. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202403031142.Vl4pW7X6-lkp@intel.com/ Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Liviu Dudau <liviu.dudau@arm.com> Reviewed-by: Steven Price <steven.price@arm.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240304090812.3941084-3-boris.brezillon@collabora.com
Diffstat (limited to 'drivers/gpu/drm/panthor')
-rw-r--r--drivers/gpu/drm/panthor/panthor_device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panthor/panthor_device.c b/drivers/gpu/drm/panthor/panthor_device.c
index bfe8da4a6e4c..69deb8e17778 100644
--- a/drivers/gpu/drm/panthor/panthor_device.c
+++ b/drivers/gpu/drm/panthor/panthor_device.c
@@ -4,6 +4,7 @@
/* Copyright 2023 Collabora ltd. */
#include <linux/clk.h>
+#include <linux/mm.h>
#include <linux/platform_device.h>
#include <linux/pm_domain.h>
#include <linux/pm_runtime.h>