Commit fa89248e authored by Robert Richter's avatar Robert Richter Committed by Dan Williams

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: default avatarRobert Richter <rrichter@amd.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarDavidlohr Bueso <dave@stgolabs.net>
Reviewed-by: default avatarDan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/20221018132341.76259-2-rrichter@amd.comSigned-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 1156b441
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#include <cxlmem.h> #include <cxlmem.h>
#include <cxlpci.h> #include <cxlpci.h>
#include "core.h"
/** /**
* DOC: cxl registers * DOC: cxl registers
* *
......
...@@ -218,8 +218,6 @@ int cxl_map_device_regs(struct pci_dev *pdev, ...@@ -218,8 +218,6 @@ int cxl_map_device_regs(struct pci_dev *pdev,
enum cxl_regloc_type; enum cxl_regloc_type;
int cxl_find_regblock(struct pci_dev *pdev, enum cxl_regloc_type type, int cxl_find_regblock(struct pci_dev *pdev, enum cxl_regloc_type type,
struct cxl_register_map *map); struct cxl_register_map *map);
void __iomem *devm_cxl_iomap_block(struct device *dev, resource_size_t addr,
resource_size_t length);
#define CXL_RESOURCE_NONE ((resource_size_t) -1) #define CXL_RESOURCE_NONE ((resource_size_t) -1)
#define CXL_TARGET_STRLEN 20 #define CXL_TARGET_STRLEN 20
......
Markdown is supported
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