diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-05-17 14:55:09 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2023-05-18 17:28:07 -0700 |
commit | 2d5153526f929838b0912ded26862840f72745f4 (patch) | |
tree | e13169b17caa92b0d6afc1ed6e63f99f675243ef /drivers/dax/bus.h | |
parent | e764f12208b99ac7892c4e3f6bf88d71ca71036f (diff) |
dax: fix missing-prototype warnings
dev_dax_probe declaration for this function was removed with the only
caller outside of device.c. Mark it static to avoid a W=1
warning:
drivers/dax/device.c:399:5: error: no previous prototype for 'dev_dax_probe'
Similarly, run_dax() causes a warning, but this one is because the
declaration needs to be included:
drivers/dax/super.c:337:6: error: no previous prototype for 'run_dax'
Fixes: 83762cb5c7c4 ("dax: Kill DEV_DAX_PMEM_COMPAT")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230517125532.931157-1-arnd@kernel.org
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dax/bus.h')
-rw-r--r-- | drivers/dax/bus.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/dax/bus.h b/drivers/dax/bus.h index 8cd79ab34292..43f490e9ce65 100644 --- a/drivers/dax/bus.h +++ b/drivers/dax/bus.h @@ -49,13 +49,6 @@ void dax_driver_unregister(struct dax_device_driver *dax_drv); void kill_dev_dax(struct dev_dax *dev_dax); bool static_dev_dax(struct dev_dax *dev_dax); -/* - * While run_dax() is potentially a generic operation that could be - * defined in include/linux/dax.h we don't want to grow any users - * outside of drivers/dax/ - */ -void run_dax(struct dax_device *dax_dev); - #define MODULE_ALIAS_DAX_DEVICE(type) \ MODULE_ALIAS("dax:t" __stringify(type) "*") #define DAX_DEVICE_MODALIAS_FMT "dax:t%d" |