2023-04-12 18:25:20

by Alex Williamson

[permalink] [raw]
Subject: [PATCH] cdx: Allow build with COMPILE_TEST

Increase compile test coverage.

Signed-off-by: Alex Williamson <[email protected]>
---
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


2023-04-14 12:21:39

by Nipun Gupta

[permalink] [raw]
Subject: RE: [PATCH] cdx: Allow build with COMPILE_TEST



> -----Original Message-----
> From: Alex Williamson <[email protected]>
> Sent: Wednesday, April 12, 2023 11:47 PM
> To: Gupta, Nipun <[email protected]>; Agarwal, Nikhil
> <[email protected]>
> Cc: [email protected]; [email protected]
> 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 <[email protected]>
> ---
> 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