Skip to content

Commit b0671a5

Browse files
Nicolas FrattaroliUlf Hansson
authored andcommitted
pmdomain: mediatek: mtk-mfg: select MAILBOX in Kconfig
The mtk-mfg pmdomain driver calls common mailbox framework functions. If the common mailbox framework is not selected in the kernel's configuration, the build runs into a linker error, as the symbols are absent. The hardware mailbox Kconfig system, MAILBOX, has no dependencies of its own. It's therefore safe to "select" it rather than use "depend on". Declare this "select" dependency in the Kconfig for the driver. Fixes: 1ff1f0d ("pmdomain: mediatek: Add support for MFlexGraphics") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202510301311.TcOCnZ1s-lkp@intel.com/ Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent f08e7a4 commit b0671a5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/pmdomain/mediatek/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ config MTK_MFG_PM_DOMAIN
3232
depends on PM
3333
depends on OF
3434
depends on COMMON_CLK
35+
select MAILBOX
3536
select PM_GENERIC_DOMAINS
3637
imply MTK_GPUEB_MBOX
3738
help

0 commit comments

Comments
 (0)