drm/omap: add CONFIG_MMU dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 19 Jul 2024 09:59:31 +0000 (11:59 +0200)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Mon, 5 Aug 2024 12:54:29 +0000 (15:54 +0300)
commitce4a995884ecedb98ba00e2e0b8ce94cde2060ce
tree50089b71faa1fedff5d524dd6154938ffea92ce8
parent62b45bab010d1b0cea6166f818f1cd0666a6d8d8
drm/omap: add CONFIG_MMU dependency

Compile-testing with CONFIG_MMU disabled causes a link error in omapdrm:

arm-linux-gnueabi-ld: drivers/gpu/drm/omapdrm/omap_gem.o: in function `omap_gem_fault_2d':
omap_gem.c:(.text+0x36e): undefined reference to `vmf_insert_mixed'
arm-linux-gnueabi-ld: drivers/gpu/drm/omapdrm/omap_gem.o: in function `omap_gem_fault':
omap_gem.c:(.text+0x74a): undefined reference to `vmf_insert_mixed'

Avoid this by adding a Kconfig dependency.

Fixes: dc6fcaaba5a5 ("drm/omap: Allow build with COMPILE_TEST=y")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240719095942.3841009-1-arnd@kernel.org
drivers/gpu/drm/omapdrm/Kconfig