drm/omap: add CONFIG_MMU dependency
Subsystems (3)
PATCH 1/1 drm/omap: add CONFIG_MMU dependency
From: Arnd Bergmann <[email protected]>
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.
--- drivers/gpu/drm/omapdrm/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/omapdrm/Kconfig +1 -0
@@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config DRM_OMAP tristate "OMAP DRM" + depends on MMU depends on DRM && OF depends on ARCH_OMAP2PLUS || (COMPILE_TEST && PAGE_SIZE_LESS_THAN_64KB) select DRM_KMS_HELPER
Signature · 1 line
2.39.2
Tomi Valkeinen
maintainerHi,
Quoted 9 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
Compile-testing with
CONFIG_MMUdisabled 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'
Quoted 4 lines
Avoid this by adding a
Kconfigdependency.Fixes dc6fcaaba5a5 ("drm/omap: Allow build with COMPILE_TEST=y")Signed-off-by Arnd Bergmann <[email protected]>
Thanks, applying to drm-misc-fixes.
Tomi
Quoted 16 lines
--- drivers/gpu/drm/omapdrm/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/omapdrm/Kconfig +1
-0@@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config DRM_OMAP tristate "OMAP DRM" + depends on MMU depends on DRM && OF depends on ARCH_OMAP2PLUS || (COMPILE_TEST && PAGE_SIZE_LESS_THAN_64KB) select DRM_KMS_HELPER