Skip to content
Commit f12be1a1 authored by Alison Schofield's avatar Alison Schofield Committed by Greg Kroah-Hartman
Browse files

cxl/region: Move cxl_dpa_to_region() work to the region driver

[ Upstream commit b98d0426

 ]

This helper belongs in the region driver as it is only useful
with CONFIG_CXL_REGION. Add a stub in core.h for when the region
driver is not built.

Signed-off-by: default avatarAlison Schofield <alison.schofield@intel.com>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/05e30f788d62b3dd398aff2d2ea50a6aaa7c3313.1714496730.git.alison.schofield@intel.com
Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
Stable-dep-of: 285f2a08

 ("cxl/region: Avoid null pointer dereference in region lookup")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3b758696
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment