summaryrefslogtreecommitdiffstats
path: root/drivers/cxl
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2022-12-03 09:14:41 -0800
committerDan Williams <dan.j.williams@intel.com>2022-12-05 12:33:20 -0800
commit397cd265815eae562685d9832dc8b61c927c1cfb (patch)
treea17e672e9af99bf44550a5f54e9085edc2313a40 /drivers/cxl
parent02fedf1466567424c336cd11cf368dcf78f2af33 (diff)
downloadlinux-397cd265815eae562685d9832dc8b61c927c1cfb.tar.bz2
cxl/regs: Fix sparse warning
The 0day robot belatedly points out that @addr is not properly tagged as an iomap pointer: "drivers/cxl/core/regs.c:332:14: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@" Fixes: 1168271ca054 ("cxl/acpi: Extract component registers of restricted hosts from RCRB") Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Robert Richter <rrichter@amd.com> Reviewed-by: Alison Schofield <alison.schofield@intel.com> Link: https://lore.kernel.org/r/167008768190.2516013.11918622906007677341.stgit@dwillia2-xfh.jf.intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl')
-rw-r--r--drivers/cxl/core/regs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cxl/core/regs.c b/drivers/cxl/core/regs.c
index dfce37d11df1..1476a0299c9b 100644
--- a/drivers/cxl/core/regs.c
+++ b/drivers/cxl/core/regs.c
@@ -337,8 +337,8 @@ resource_size_t cxl_rcrb_to_component(struct device *dev,
enum cxl_rcrb which)
{
resource_size_t component_reg_phys;
+ void __iomem *addr;
u32 bar0, bar1;
- void *addr;
u16 cmd;
u32 id;