cxl: Fix compile warning for cxl_security_ops extern
authorDave Jiang <dave.jiang@intel.com>
Mon, 22 Apr 2024 17:06:15 +0000 (10:06 -0700)
committerDave Jiang <dave.jiang@intel.com>
Tue, 30 Apr 2024 17:43:48 +0000 (10:43 -0700)
commit3381586a40b93d04cf311ba6ccc9858bee5d2fa2
tree0215533ee100e78347c2087bfc8a8bd82bf4b183
parente67572cd2204894179d89bd7b984072f19313b03
cxl: Fix compile warning for cxl_security_ops extern

Jonathan reported he has observed compiler warning when using running with
W=1 C=1 for cxl_security_ops that is declared as an extern in cxl/pmem.c.
Move to cxl.h to make it visible to all cxl sources.

Suggested-by: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Tested-by: Alison Schofield <alison.schofield@intel.com>
Link: https://lore.kernel.org/linux-cxl/167771196186.3285982.18283746206612049722.stgit@djiang5-mobl3.local/
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/cxl.h
drivers/cxl/pmem.c