diff mbox series

coresight: Add explicit architecture dependency

Message ID 20191024120420.48893-1-broonie@kernel.org (mailing list archive)
State Mainlined
Commit f08d688223b04e16d259fea547ae15ecc6c44293
Headers show
Series coresight: Add explicit architecture dependency | expand

Commit Message

Mark Brown Oct. 24, 2019, 12:04 p.m. UTC
Coresight hardware is only likely to appear on Arm systems and currently
the core code has Arm-specific barrier operations in it so can't be
built anywhere else so add an explicit dependency saying so.  This will
make no practical difference currently due to the way subsystems are
referenced, the subsystem is only pulled in on arm and arm64, so mainly
serves as documentation in case someone wants to increase build
coverage.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/hwtracing/coresight/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Mathieu Poirier Oct. 24, 2019, 5:37 p.m. UTC | #1
On Thu, Oct 24, 2019 at 01:04:20PM +0100, Mark Brown wrote:
> Coresight hardware is only likely to appear on Arm systems and currently
> the core code has Arm-specific barrier operations in it so can't be
> built anywhere else so add an explicit dependency saying so.  This will
> make no practical difference currently due to the way subsystems are
> referenced, the subsystem is only pulled in on arm and arm64, so mainly
> serves as documentation in case someone wants to increase build
> coverage.
> 
> Signed-off-by: Mark Brown <broonie@kernel.org>
> ---
>  drivers/hwtracing/coresight/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/hwtracing/coresight/Kconfig b/drivers/hwtracing/coresight/Kconfig
> index 7a9f5fb08330..6ff30e25af55 100644
> --- a/drivers/hwtracing/coresight/Kconfig
> +++ b/drivers/hwtracing/coresight/Kconfig
> @@ -4,6 +4,7 @@
>  #
>  menuconfig CORESIGHT
>  	bool "CoreSight Tracing Support"
> +	depends on ARM || ARM64

Very true - applied.

Thanks,
Mathieu

>  	depends on OF || ACPI
>  	select ARM_AMBA
>  	select PERF_EVENTS
> -- 
> 2.20.1
>
diff mbox series

Patch

diff --git a/drivers/hwtracing/coresight/Kconfig b/drivers/hwtracing/coresight/Kconfig
index 7a9f5fb08330..6ff30e25af55 100644
--- a/drivers/hwtracing/coresight/Kconfig
+++ b/drivers/hwtracing/coresight/Kconfig
@@ -4,6 +4,7 @@ 
 #
 menuconfig CORESIGHT
 	bool "CoreSight Tracing Support"
+	depends on ARM || ARM64
 	depends on OF || ACPI
 	select ARM_AMBA
 	select PERF_EVENTS