diff options
Diffstat (limited to 'drivers/dax/dax-private.h')
-rw-r--r-- | drivers/dax/dax-private.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/dax/dax-private.h b/drivers/dax/dax-private.h index dbd077653b5c..620c3f4eefe7 100644 --- a/drivers/dax/dax-private.h +++ b/drivers/dax/dax-private.h | |||
@@ -16,6 +16,15 @@ | |||
16 | #include <linux/device.h> | 16 | #include <linux/device.h> |
17 | #include <linux/cdev.h> | 17 | #include <linux/cdev.h> |
18 | 18 | ||
19 | /* private routines between core files */ | ||
20 | struct dax_device; | ||
21 | struct dax_device *inode_dax(struct inode *inode); | ||
22 | struct inode *dax_inode(struct dax_device *dax_dev); | ||
23 | |||
24 | /* temporary until devm_create_dax_dev moves to bus.c */ | ||
25 | extern const struct attribute_group *dax_attribute_groups[]; | ||
26 | void unregister_dev_dax(void *dev); | ||
27 | |||
19 | /** | 28 | /** |
20 | * struct dax_region - mapping infrastructure for dax devices | 29 | * struct dax_region - mapping infrastructure for dax devices |
21 | * @id: kernel-wide unique region for a memory range | 30 | * @id: kernel-wide unique region for a memory range |
@@ -45,4 +54,9 @@ struct dev_dax { | |||
45 | struct dax_device *dax_dev; | 54 | struct dax_device *dax_dev; |
46 | struct device dev; | 55 | struct device dev; |
47 | }; | 56 | }; |
57 | |||
58 | static inline struct dev_dax *to_dev_dax(struct device *dev) | ||
59 | { | ||
60 | return container_of(dev, struct dev_dax, dev); | ||
61 | } | ||
48 | #endif | 62 | #endif |