summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorDan Williams <djbw@kernel.org>2026-08-03 17:18:00 -0500
committerDave Jiang <dave.jiang@intel.com>2026-08-05 13:46:43 -0700
commit59a37f9200688916650e1d60774c90f023c79b57 (patch)
tree517109017933d28fc6a3b3f78e82bb00800bbb58 /tools/lib/python
parent6625ca499c3131ef63be3215f8f942d7a097ea3a (diff)
downloadlinux-59a37f9200688916650e1d60774c90f023c79b57.tar.gz
linux-59a37f9200688916650e1d60774c90f023c79b57.zip
cxl: Tighten CPER kfifo registration API and symbol visibility
Tighten the CPER protocol error kfifo registration API and symbol visibility. 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. 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. 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. 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(). Co-developed-by: Terry Bowman <terry.bowman@amd.com> Signed-off-by: Terry Bowman <terry.bowman@amd.com> Signed-off-by: Dan Williams <djbw@kernel.org> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Alison Schofield <alison.schofield@intel.com> Link: https://patch.msgid.link/20260803221810.3685703-5-terry.bowman@amd.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions