Skip to content

Commit eff5d31

Browse files
committed
PM / devfreq: rk3399_dmc: Add COMPILE_TEST and HAVE_ARM_SMCCC dependency
To build test, add COMPILE_TEST depedency to both ARM_RK3399_DMC_DEVFREQ and DEVFREQ_EVENT_ROCKCHIP_DFI configuration. And ARM_RK3399_DMC_DEVFREQ used the SMCCC interface so that add HAVE_ARM_SMCCC dependency to prevent the build break. Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
1 parent f0c7921 commit eff5d31

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎drivers/devfreq/Kconfig‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ config ARM_TEGRA20_DEVFREQ
125125

126126
config ARM_RK3399_DMC_DEVFREQ
127127
tristate "ARM RK3399 DMC DEVFREQ Driver"
128-
depends on ARCH_ROCKCHIP
128+
depends on (ARCH_ROCKCHIP && HAVE_ARM_SMCCC) || \
129+
(COMPILE_TEST && HAVE_ARM_SMCCC)
129130
select DEVFREQ_EVENT_ROCKCHIP_DFI
130131
select DEVFREQ_GOV_SIMPLE_ONDEMAND
131132
select PM_DEVFREQ_EVENT

‎drivers/devfreq/event/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ config DEVFREQ_EVENT_EXYNOS_PPMU
3434

3535
config DEVFREQ_EVENT_ROCKCHIP_DFI
3636
tristate "ROCKCHIP DFI DEVFREQ event Driver"
37-
depends on ARCH_ROCKCHIP
37+
depends on ARCH_ROCKCHIP || COMPILE_TEST
3838
help
3939
This add the devfreq-event driver for Rockchip SoC. It provides DFI
4040
(DDR Monitor Module) driver to count ddr load.

0 commit comments

Comments
 (0)