cxl/core: Remove duplicate declaration of devm_cxl_iomap_block()
authorRobert Richter <rrichter@amd.com>
Tue, 18 Oct 2022 13:23:29 +0000 (15:23 +0200)
committerDan Williams <dan.j.williams@intel.com>
Mon, 14 Nov 2022 18:37:08 +0000 (10:37 -0800)
commitfa89248e669d589cdb895517e75cdead8d8ba5c0
treee8e6583f3200a4d0cbbcbba0822398856963795c
parent1156b4418db01b1d5a332bc399817d029acd2ec8
cxl/core: Remove duplicate declaration of devm_cxl_iomap_block()

The function devm_cxl_iomap_block() is only used in the core
code. There are two declarations in header files of it, in
drivers/cxl/core/core.h and drivers/cxl/cxl.h. Remove its unused
declaration in drivers/cxl/cxl.h.

Fixing build error in regs.c found by kernel test robot by including
"core.h" there.

Signed-off-by: Robert Richter <rrichter@amd.com>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/20221018132341.76259-2-rrichter@amd.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/regs.c
drivers/cxl/cxl.h