aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/ioport.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-08-18 11:05:54 +0200
committerJason Gunthorpe <jgg@mellanox.com>2019-08-20 09:39:41 -0300
commit0c385190392d8c7128fb7517b3c676e19c7b8808 (patch)
treea4ac48e3483737db04c0ec73ea663e873b8f6a6e /include/linux/ioport.h
parentmm/mmu_notifiers: check if mmu notifier callbacks are allowed to fail (diff)
downloadwireguard-linux-0c385190392d8c7128fb7517b3c676e19c7b8808.tar.xz
wireguard-linux-0c385190392d8c7128fb7517b3c676e19c7b8808.zip
resource: add a not device managed request_free_mem_region variant
Factor out the guts of devm_request_free_mem_region so that we can implement both a device managed and a manually release version as tiny wrappers around it. Link: https://lore.kernel.org/r/20190818090557.17853-2-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Dan Williams <dan.j.williams@intel.com> Tested-by: Bharata B Rao <bharata@linux.ibm.com> Reviewed-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/linux/ioport.h')
-rw-r--r--include/linux/ioport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ioport.h b/include/linux/ioport.h
index 5b6a7121c9f0..7bddddfc76d6 100644
--- a/include/linux/ioport.h
+++ b/include/linux/ioport.h
@@ -297,6 +297,8 @@ static inline bool resource_overlaps(struct resource *r1, struct resource *r2)
struct resource *devm_request_free_mem_region(struct device *dev,
struct resource *base, unsigned long size);
+struct resource *request_free_mem_region(struct resource *base,
+ unsigned long size, const char *name);
#endif /* __ASSEMBLY__ */
#endif /* _LINUX_IOPORT_H */