[PATCH] cdx: Allow build with COMPILE_TEST

Alex Williamson posted 1 patch 2 years, 10 months ago
drivers/cdx/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] cdx: Allow build with COMPILE_TEST
Posted by Alex Williamson 2 years, 10 months ago
Increase compile test coverage.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
---
 drivers/cdx/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cdx/Kconfig b/drivers/cdx/Kconfig
index a08958485e31..8e3cca77ec64 100644
--- a/drivers/cdx/Kconfig
+++ b/drivers/cdx/Kconfig
@@ -7,7 +7,7 @@
 
 config CDX_BUS
 	bool "CDX Bus driver"
-	depends on OF && ARM64
+	depends on OF && (ARM64 || COMPILE_TEST)
 	help
 	  Driver to enable Composable DMA Transfer(CDX) Bus. CDX bus
 	  exposes Fabric devices which uses composable DMA IP to the
-- 
2.39.2
RE: [PATCH] cdx: Allow build with COMPILE_TEST
Posted by Gupta, Nipun 2 years, 10 months ago

> -----Original Message-----
> From: Alex Williamson <alex.williamson@redhat.com>
> Sent: Wednesday, April 12, 2023 11:47 PM
> To: Gupta, Nipun <Nipun.Gupta@amd.com>; Agarwal, Nikhil
> <nikhil.agarwal@amd.com>
> Cc: linux-kernel@vger.kernel.org; alex.williamson@redhat.com
> Subject: [PATCH] cdx: Allow build with COMPILE_TEST
> 
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
> 
> 
> Increase compile test coverage.
> 
> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
> ---
>  drivers/cdx/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/cdx/Kconfig b/drivers/cdx/Kconfig
> index a08958485e31..8e3cca77ec64 100644
> --- a/drivers/cdx/Kconfig
> +++ b/drivers/cdx/Kconfig
> @@ -7,7 +7,7 @@
> 
>  config CDX_BUS
>         bool "CDX Bus driver"
> -       depends on OF && ARM64
> +       depends on OF && (ARM64 || COMPILE_TEST)

Hi Alex,

There is work in progress on MSI for CDX bus which is dependent on
ARM64. So, the COMPILE_TEST would break once the MSI changes are
added. Is there any other alternative by which this can be enabled?

Thanks,
Nipun

>         help
>           Driver to enable Composable DMA Transfer(CDX) Bus. CDX bus
>           exposes Fabric devices which uses composable DMA IP to the
> --
> 2.39.2