cdx: Allow build with COMPILE_TEST

Message ID 20230412181658.529415-1-alex.williamson@redhat.com
State New
Headers
Series cdx: Allow build with COMPILE_TEST |

Commit Message

Alex Williamson April 12, 2023, 6:16 p.m. UTC
  Increase compile test coverage.

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

Comments

Gupta, Nipun April 14, 2023, 12:20 p.m. UTC | #1
> -----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
  

Patch

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