Re: [PATCH] cxl: Include range.h in cxl.h
From: Ira Weiny
Date: Tue Jul 01 2025 - 12:22:50 EST
On Tue, 01 Jul 2025 07:33:31 -0700, Nathan Chancellor wrote:
> After commit aefeb286b960 ("libnvdimm: Don't use "proxy" headers"),
> range.h may not be implicitly included, resulting in a build error:
>
> In file included from drivers/cxl/core/features.c:8:
> drivers/cxl/cxl.h:365:22: error: field 'hpa_range' has incomplete type
> 365 | struct range hpa_range;
> | ^~~~~~~~~
> drivers/cxl/cxl.h:562:22: error: field 'hpa_range' has incomplete type
> 562 | struct range hpa_range;
> | ^~~~~~~~~
> drivers/cxl/cxl.h:570:22: error: field 'hpa_range' has incomplete type
> 570 | struct range hpa_range;
> | ^~~~~~~~~
> drivers/cxl/cxl.h:803:22: error: array type has incomplete element type 'struct range'
> 803 | struct range dvsec_range[2];
> | ^~~~~~~~~~~
>
> [...]
Applied, thanks!
[1/1] cxl: Include range.h in cxl.h
commit: 9f97e61bde6a91a429f48da1a461488a15b01813
Best regards,
--
Ira Weiny <ira.weiny@xxxxxxxxx>