Skip to content

Commit ffd0bbf

Browse files
baolin-wangandersson
authored andcommitted
hwspinlock: Allow drivers to be built with COMPILE_TEST
Allow drivers to be built with COMPILE_TEST. Signed-off-by: Baolin Wang <[email protected]> Link: https://lore.kernel.org/r/5a95c3de07ef020a4e2f2776fa5adb00637ee387.1581324976.git.baolin.wang7@gmail.com Signed-off-by: Bjorn Andersson <[email protected]>
1 parent bb6d3fb commit ffd0bbf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/hwspinlock/Kconfig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ menuconfig HWSPINLOCK
99
config HWSPINLOCK_OMAP
1010
tristate "OMAP Hardware Spinlock device"
1111
depends on HWSPINLOCK
12-
depends on ARCH_OMAP4 || SOC_OMAP5 || SOC_DRA7XX || SOC_AM33XX || SOC_AM43XX || ARCH_K3
12+
depends on ARCH_OMAP4 || SOC_OMAP5 || SOC_DRA7XX || SOC_AM33XX || SOC_AM43XX || ARCH_K3 || COMPILE_TEST
1313
help
1414
Say y here to support the OMAP Hardware Spinlock device (firstly
1515
introduced in OMAP4).
@@ -19,7 +19,7 @@ config HWSPINLOCK_OMAP
1919
config HWSPINLOCK_QCOM
2020
tristate "Qualcomm Hardware Spinlock device"
2121
depends on HWSPINLOCK
22-
depends on ARCH_QCOM
22+
depends on ARCH_QCOM || COMPILE_TEST
2323
select MFD_SYSCON
2424
help
2525
Say y here to support the Qualcomm Hardware Mutex functionality, which
@@ -31,7 +31,7 @@ config HWSPINLOCK_QCOM
3131
config HWSPINLOCK_SIRF
3232
tristate "SIRF Hardware Spinlock device"
3333
depends on HWSPINLOCK
34-
depends on ARCH_SIRF
34+
depends on ARCH_SIRF || COMPILE_TEST
3535
help
3636
Say y here to support the SIRF Hardware Spinlock device, which
3737
provides a synchronisation mechanism for the various processors
@@ -42,7 +42,7 @@ config HWSPINLOCK_SIRF
4242

4343
config HWSPINLOCK_SPRD
4444
tristate "SPRD Hardware Spinlock device"
45-
depends on ARCH_SPRD
45+
depends on ARCH_SPRD || COMPILE_TEST
4646
depends on HWSPINLOCK
4747
help
4848
Say y here to support the SPRD Hardware Spinlock device.
@@ -51,7 +51,7 @@ config HWSPINLOCK_SPRD
5151

5252
config HWSPINLOCK_STM32
5353
tristate "STM32 Hardware Spinlock device"
54-
depends on MACH_STM32MP157
54+
depends on MACH_STM32MP157 || COMPILE_TEST
5555
depends on HWSPINLOCK
5656
help
5757
Say y here to support the STM32 Hardware Spinlock device.
@@ -61,7 +61,7 @@ config HWSPINLOCK_STM32
6161
config HSEM_U8500
6262
tristate "STE Hardware Semaphore functionality"
6363
depends on HWSPINLOCK
64-
depends on ARCH_U8500
64+
depends on ARCH_U8500 || COMPILE_TEST
6565
help
6666
Say y here to support the STE Hardware Semaphore functionality, which
6767
provides a synchronisation mechanism for the various processor on the

0 commit comments

Comments
 (0)