Re: [PATCH v19 04/14] cxl: Tighten CPER kfifo registration API and symbol visibility
[email protected] Mon, 03 Aug 2026 22:30:48 +0000
| Newsgroups | org.kernel.vger.linux-pci,org.kernel.vger.linux-cxl |
|---|---|
| Message-ID | <[email protected]> |
> From: Dan Williams <[email protected]> >=20 > Tighten the CPER protocol error kfifo registration API and symbol > visibility. >=20 > Use EXPORT_SYMBOL_FOR_MODULES() instead of EXPORT_SYMBOL_NS_GPL() for > the CPER kfifo registration symbols. This names the consuming module > explicitly and gives compile-time enforcement. >=20 > Drop the work_struct argument from the unregister path. Change the > WARN_ONCE condition to a NULL check since there is no caller pointer > to compare against anymore. >=20 > Return void from the registration helpers whose result callers ignore. > cxl_cper_register_work() keeps its int return as the only one consumed by > a caller. Flag double registration with WARN_ONCE() inside the lock > instead of returning an error. >=20 > Change cxl_ras_init() to void because there is one consumer and one > producer so the error return was unnecessary. Remove the now-dead error > check in cxl_core_init(). >=20 > Co-developed-by: Terry Bowman <[email protected]> > Signed-off-by: Terry Bowman <[email protected]> > Signed-off-by: Dan Williams <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20260803221810.3685= [email protected]?part=3D4