Re: [PATCH v12 03/25] cxl: Remove ifdef blocks of CONFIG_PCIEAER_CXL from core/pci.c

From: Cheatham, Benjamin
Date: Fri Oct 03 2025 - 16:11:46 EST


[snip]

> diff --git a/drivers/cxl/core/core.h b/drivers/cxl/core/core.h
> index 1fb66132b777..9f4eb7e2feba 100644
> --- a/drivers/cxl/core/core.h
> +++ b/drivers/cxl/core/core.h
> @@ -144,8 +144,20 @@ int cxl_pci_get_bandwidth(struct pci_dev *pdev, struct access_coordinate *c);
> int cxl_port_get_switch_dport_bandwidth(struct cxl_port *port,
> struct access_coordinate *c);
>
> +#ifdef CONFIG_CXL_RAS
> int cxl_ras_init(void);
> void cxl_ras_exit(void);
> +#else
> +static inline int cxl_ras_init(void)
> +{
> + return 0;
> +}
> +
> +static inline void cxl_ras_exit(void)
> +{
> +}
> +#endif // CONFIG_CXL_RAS

Nit: Comment style is wrong for this file, should be /* CONFIG_CXL_RAS */

With that:
Reviewed-by: Ben Cheatham <benjamin.cheatham@xxxxxxx>