diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-26 15:55:05 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2021-08-27 01:52:03 +0200 |
commit | 1b7646014e0d838b06be7288e2dec3262948cc56 (patch) | |
tree | 3323d33079113b8f20a18f0749e1c287fa5e1884 /include | |
parent | dm: use fs_dax_get_by_bdev instead of dax_get_by_host (diff) | |
download | linux-1b7646014e0d838b06be7288e2dec3262948cc56.tar.xz linux-1b7646014e0d838b06be7288e2dec3262948cc56.zip |
dax: mark dax_get_by_host static
And move the code around a bit to avoid a forward declaration.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/20210826135510.6293-5-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dax.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/dax.h b/include/linux/dax.h index b52f084aa643..379739b55408 100644 --- a/include/linux/dax.h +++ b/include/linux/dax.h @@ -41,7 +41,6 @@ struct dax_operations { extern struct attribute_group dax_attribute_group; #if IS_ENABLED(CONFIG_DAX) -struct dax_device *dax_get_by_host(const char *host); struct dax_device *alloc_dax(void *private, const char *host, const struct dax_operations *ops, unsigned long flags); void put_dax(struct dax_device *dax_dev); @@ -73,10 +72,6 @@ static inline bool daxdev_mapping_supported(struct vm_area_struct *vma, return dax_synchronous(dax_dev); } #else -static inline struct dax_device *dax_get_by_host(const char *host) -{ - return NULL; -} static inline struct dax_device *alloc_dax(void *private, const char *host, const struct dax_operations *ops, unsigned long flags) { |