]> git.itanic.dy.fi Git - linux-stable/commit
drm/hisilicon/hibmc: Allow to be built if COMPILE_TEST is enabled
authorJavier Martinez Canillas <javierm@redhat.com>
Thu, 16 Dec 2021 21:09:36 +0000 (22:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:10:33 +0000 (11:10 +0200)
commitbac7328fc0d7b30b80f85e8cc64e5c26044f48a7
tree2673bda2b3946954ef1b4796936431c0a1232887
parentb3b41d4d95d3822b2e459ecbc80d030ea6aec5e7
drm/hisilicon/hibmc: Allow to be built if COMPILE_TEST is enabled

[ Upstream commit a0f25a6bb319aa05e04dcf51707c97c2881b4f47 ]

The commit feeb07d0ca5a ("drm/hisilicon/hibmc: Make CONFIG_DRM_HISI_HIBMC
depend on ARM64") made the driver Kconfig symbol to depend on ARM64 since
it only supports that architecture and loading the module on others would
lead to incorrect video modes being used.

But it also prevented the driver to be built on other architectures which
is useful to have compile test coverage when doing subsystem wide changes.

Make the dependency instead to be (ARM64 || COMPILE_TEST), so the driver
is buildable when the CONFIG_COMPILE_TEST option is enabled.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20211216210936.3329977-1-javierm@redhat.com
Stable-dep-of: d8a79c030549 ("drm/hisilicon: Add depends on MMU")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/hisilicon/hibmc/Kconfig