Re: [PATCH v17 10/19] cxl: Build register block helpers into the kernel
From: Srirangan Madhavan
Date: Sat Dec 05 2026 - 03:15:33 EST
On 11/13/26 10:02 AM, Dave Jiang wrote:
This patch does what the first sentence claims, but then a bunch of misc stuff tagged along with it. Please keep commits to one logical change per commit.
Move the bar and bar_offset changes to when they are needed.
Move cxl_dvsec_hdm_count_valid() to where it's being used.
the 'struct pci_dev' forward declare, is this needed?
Also the exports can use EXPORT_SYMBOL_FOR_MODULES(..., "cxl_core") I think?
DJ
Hi Dave,
Done in v18. Patch 10 now only builds the register helpers into the
kernel. The BAR/offset fields and cxl_dvsec_hdm_count_valid() moved to
patch 11, where they are first used, and the exports use
EXPORT_SYMBOL_FOR_MODULES(..., "cxl_core").
https://lore.kernel.org/linux-cxl/20261205041453.3946529-1-smadhavan@xxxxxxxxxx/
--
Regards,
Srirangan